-
-
Notifications
You must be signed in to change notification settings - Fork 360
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #677 from dynamoosejs/2.0
Version 2.0 Rewrite
- Loading branch information
Showing
121 changed files
with
11,714 additions
and
29,325 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
docs | ||
dist | ||
manual_test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
] | ||
} | ||
}; |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"exclude": [ | ||
"manual_test", | ||
"test", | ||
"coverage", | ||
".eslintrc.js" | ||
] | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.