Skip to content

Commit

Permalink
Merge pull request #677 from dynamoosejs/2.0
Browse files Browse the repository at this point in the history
Version 2.0 Rewrite
  • Loading branch information
fishcharlie committed Feb 16, 2020
2 parents c23db81 + e255a96 commit 2040e2b
Show file tree
Hide file tree
Showing 121 changed files with 11,714 additions and 29,325 deletions.
24 changes: 0 additions & 24 deletions .circleci/config.yml

This file was deleted.

2 changes: 1 addition & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
docs
dist
manual_test
106 changes: 32 additions & 74 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,75 +1,33 @@
module.exports = {
'env': {
'es6': true,
'node': true
},
'extends': 'eslint:all',
'parserOptions': {
'ecmaVersion': 2018
},
'rules': {
'indent': [
'error',
2
],
'linebreak-style': [
'error',
'unix'
],
'quotes': [
'error',
'single'
],
'semi': [
'error',
'always'
],
'spaced-comment': ['error', 'always', {'exceptions': ['!']}],
'brace-style': ['error', '1tbs', {'allowSingleLine': true}],
'id-length': ['error', {'min': 1}],
'max-params': ['error', {'max': 5}],
'max-statements': ['error', {'max': 130}],
'max-lines': ['error', {'max': 3700}],
'complexity': ['error', {'max': 75}],
'max-lines-per-function': ['error', {'max': 3600}],
'max-statements-per-line': ['error', {'max': 6}],
'max-depth': ['error', {'max': 7}],
'max-len': ['error', {'code': 351}],
'no-console': 'off',
'one-var': 'off',
'padded-blocks': 'off',
'init-declarations': 'off',
'func-names': 'off',
'no-magic-numbers': 'off',
'no-underscore-dangle': 'off',
'camelcase': 'off',
'line-comment-position': 'off',
'no-inline-comments': 'off',
'new-cap': 'off',
'no-invalid-this': 'off',
'no-empty-function': 'off',
'handle-callback-err': 'off',
'multiline-ternary': 'off',
'no-continue': 'off',
'no-ternary': 'off',
'func-style': 'off',
'object-property-newline': 'off',
'array-element-newline': 'off',
'newline-per-chained-call': 'off',
'multiline-comment-style': 'off',
'capitalized-comments': 'off',
'function-paren-newline': 'off',
'dot-location': 'off',
'one-var-declaration-per-line': 'off',

// Higher priority to enable
'no-await-in-loop': 'off',
'guard-for-in': 'off',
'no-undefined': 'off',
'consistent-return': 'off',
'sort-keys': 'off',
'no-mixed-operators': 'off',
'no-param-reassign': 'off',
'no-warning-comments': 'off'
}
};
"env": {
"commonjs": true,
"es6": true,
"node": true
},
"extends": "eslint:recommended",
"globals": {
"Atomics": "readonly",
"SharedArrayBuffer": "readonly"
},
"parserOptions": {
"ecmaVersion": 2018
},
"rules": {
"indent": [
"error",
"tab"
],
"linebreak-style": [
"error",
"unix"
],
"quotes": [
"error",
"double"
],
"semi": [
"error",
"always"
]
}
};
75 changes: 0 additions & 75 deletions .github/ISSUE_TEMPLATE.md

This file was deleted.

48 changes: 0 additions & 48 deletions .github/PULL_REQUEST_TEMPLATE.md

This file was deleted.

27 changes: 27 additions & 0 deletions .github/actions/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: CI
on: [push]

jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Use Node.js
uses: actions/setup-node@v1
- run: npm install
- run: npm run lint
test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [8.x, 10.x, 12.x, 13.x]
steps:
- uses: actions/checkout@v1
- name: Use Node.js
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: npm install
- name: Setup DynamoDB Local
uses: rrainn/dynamodb-action@v1.0
- run: npm test
8 changes: 8 additions & 0 deletions .nycrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"exclude": [
"manual_test",
"test",
"coverage",
".eslintrc.js"
]
}
20 changes: 0 additions & 20 deletions .travis.yml

This file was deleted.

10 changes: 10 additions & 0 deletions BREAKING_CHANGES.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Breaking Changes

## 2.0 - incomplete list

- `scan.count()` has been removed, and `scan.counts()` has been renamed to `scan.count()`.
- Schema `default` value does not pass the model instance into `default` functions any more.
- `Model.update`
- `$LISTAPPEND` has been removed, and `$ADD` now includes the behavior of `$LISTAPPEND`
- `$DELETE` now maps to the correct underlying DynamoDB method instead of the previous behavior of mapping to `$REMOVE`
- `dynamoose.model` has been renamed to `dynamoose.Model`
14 changes: 14 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,19 @@
# Dynamoose Changelog

---

## Version 2.0.0 (Not Complete)

This is the working changelog for version 2.0.0. It is a full rewrite of Dynamoose from the ground up. It is very likely throughout this beta that breaking changes will occur.

Please comment or [contact me](https://charlie.fish/contact) if you have any questions about this release.

### General

- License changed from MIT to Unlicense

---

## [1.11.1](https://github.com/dynamoosejs/dynamoose/compare/v1.11.0...v1.11.1) (2019-09-05)


Expand Down

0 comments on commit 2040e2b

Please sign in to comment.