Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

model handel meta attribute #1622

Open
wants to merge 1,449 commits into
base: 0.12.x
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
1449 commits
Select commit Hold shift + click to select a range
e4d2d1d
Handle cases where an attribute has a name matching another attribute…
sgress454 Aug 7, 2017
856b73b
Transform column names in criteria for _all_ joins, and avoid double-…
sgress454 Aug 8, 2017
5372ebd
Default sort to empty array instead of "sort by primary key"
sgress454 Aug 9, 2017
745d8d8
0.13.1-0
sgress454 Aug 11, 2017
6f5ff0a
Fix code that removes unneeded conjucts/disjuncts
sgress454 Aug 21, 2017
b40a31b
Merge branch 'master' into fix-for-4105
sgress454 Aug 21, 2017
97f0bcb
0.13.1-1
sgress454 Aug 21, 2017
bf8966d
Trim undefined conjuncts/disjuncts from AND/OR predicate arrays.
mikermcneil Aug 21, 2017
d6571a3
Use a more consistent approach to trim undefined conjuncts/disjuncts.
mikermcneil Aug 21, 2017
dbcfa96
0.13.1-2
mikermcneil Aug 22, 2017
3345b27
Update boilerplate
mikermcneil Aug 22, 2017
d8c23fc
Intermediate commit: Very first pass at setting up .archive() by copy…
mikermcneil Sep 5, 2017
ea462b7
Implement first complete pass at .archive(), minus actually looking u…
mikermcneil Sep 5, 2017
805dece
Add note about streaming optimization.
mikermcneil Sep 5, 2017
aa18562
Change attr names for built-in Archived model for clarity, and add so…
mikermcneil Sep 5, 2017
5f01593
Added first pass at Archive model lookup.
mikermcneil Sep 5, 2017
c4272ff
Simplify spec and add more descriptive examples.
mikermcneil Sep 5, 2017
1521931
Expose .archive()
mikermcneil Sep 5, 2017
67f6987
Remove limit/skip/sort/select/omit (which were automatically added in…
mikermcneil Sep 5, 2017
92e9373
One last todo about defaulting the model setting
mikermcneil Sep 5, 2017
ebdbafb
refs https://github.com/balderdashy/sails/issues/4181
mikermcneil Sep 5, 2017
dda4dd7
Add `beforeCreate` and `afterCreate` support to `createEach` method.
sgress454 Sep 11, 2017
34fc39f
Merge branch 'patch-1' of https://github.com/ehmicky/waterline into e…
sgress454 Sep 21, 2017
a420ebc
Merge branch 'patch-1' of https://github.com/luislobo/waterline into …
sgress454 Sep 21, 2017
0c9fa44
Re-order changelog
sgress454 Sep 21, 2017
055f2eb
Merge pull request #1469 from lizheming/patch-1
sgress454 Sep 21, 2017
78444b7
Merge pull request #1467 from luislobo/fix-issue-required-model
sgress454 Sep 21, 2017
4cf46ac
Expand error message about improper use of replaceCollection/addToCol…
mikermcneil Sep 25, 2017
801fda3
Improve a couple of stack traces
mikermcneil Sep 25, 2017
79813bf
Fix bug where replaceCollection() didn't work if you were trying to c…
mikermcneil Sep 26, 2017
839e0f1
Fix typo in null out query caveat, and add more details
mikermcneil Sep 26, 2017
2450efa
More stack trace improvements
mikermcneil Sep 26, 2017
41cf661
Add consistency check in replaceCollection(), and add some notes abou…
mikermcneil Sep 26, 2017
f740419
0.13.1-3
sgress454 Sep 26, 2017
c192776
Tolerate special case: .replaceCollection([1,2], 'foos', []), even fo…
mikermcneil Sep 27, 2017
d29335e
Tweak assertion to jive with c1927762b87f307828efbfc56e7fda24e840f604
mikermcneil Sep 27, 2017
80c086b
Attempt to fix appveyor/windows tests (and bump parley dep while at i…
mikermcneil Sep 27, 2017
825bdb4
In .replaceCollection(): remove unnecessary async.each(), consolidati…
mikermcneil Sep 27, 2017
acb2f5e
Clarify comments
mikermcneil Sep 27, 2017
951c6cd
Split up queries and apply nin optimization.
mikermcneil Sep 27, 2017
7513123
Remove parallelization optimization (can't safely rely on FIFO execut…
mikermcneil Sep 27, 2017
241a567
Weave explicitness back in and remove now-unnecessary require() call.
mikermcneil Sep 27, 2017
56ec805
Avoid unnecessarily constructing '.meta' (optimization).
mikermcneil Sep 27, 2017
fab11ea
Make sure replaceCollection() is still O(2) for the 1..n case by doin…
mikermcneil Sep 27, 2017
9a11ffc
Get eslint off our backs
sgress454 Sep 27, 2017
f9b7157
Introduce the concept of a PropagationError.
mikermcneil Sep 27, 2017
164c002
Merge branch 'master' of github.com:balderdashy/waterline
mikermcneil Sep 27, 2017
dc40bd3
Make language in new propagation error message a bit less redundant.
mikermcneil Sep 27, 2017
eecbef0
Allow tests to run on Node 0.10 and 0.12, while still running on Wind…
sgress454 Sep 27, 2017
069ec38
Further improve error message (add recommendation of how you're suppo…
mikermcneil Sep 27, 2017
d540a37
Merge branch 'master' of github.com:balderdashy/waterline
mikermcneil Sep 27, 2017
eb2fdfb
For consistency with other modules, just use 'npm run custom-tests'
mikermcneil Sep 27, 2017
2792187
Add docs on broad classes of errors
mikermcneil Sep 27, 2017
3cd095d
Improve stack trace in .create().
mikermcneil Sep 28, 2017
a01b522
Merge branch 'master' into softdeletes
mikermcneil Sep 29, 2017
5e67af2
Add chainable .fetch() method as a shortcut for '.meta({fetch:true})'
mikermcneil Sep 29, 2017
403c527
Butter stack traces
mikermcneil Sep 30, 2017
57a96f0
More improvements to stack traces.
mikermcneil Sep 30, 2017
fe917da
Better stack traces when usage error occurs in findOrCreate()
mikermcneil Sep 30, 2017
57629cb
Add reference to more information on undefined keys in WHERE clause
mikermcneil Sep 30, 2017
da93058
Removed old commented out code after verifying it wasn't left on purp…
mikermcneil Sep 30, 2017
74bc97a
One day we'll be able to use 'await' in core utilities too, and not j…
mikermcneil Sep 30, 2017
06ead11
Do isPotentiallyDangerous check for vulnerable populates, even when n…
mikermcneil Sep 30, 2017
459cc3a
Now that the complexity of the default sort clause has been pushed of…
mikermcneil Sep 30, 2017
7f58b07
Expand 'isPotentiallyDangerous' warning a bit, and explicitly provide…
mikermcneil Sep 30, 2017
3b2f3b3
Add note about the 'select===false' check in fs3q
mikermcneil Sep 30, 2017
a4b3334
comment tweak
mikermcneil Sep 30, 2017
337b3d3
Track associations explicitly set to false in help-find util
mikermcneil Sep 30, 2017
7b0457c
Fix outlet leak I missed back in https://github.com/balderdashy/water…
mikermcneil Sep 30, 2017
56ed0e6
clarify that the false check is not necessarily important as part of …
mikermcneil Sep 30, 2017
4b18054
Improve error handling for one extreme edge case
mikermcneil Sep 30, 2017
900cadd
Initial pass at base value attachment
mikermcneil Sep 30, 2017
4bd614f
Backwards compat for old node.js releases (would have had to make the…
mikermcneil Sep 30, 2017
58770e7
Add tests for base value shimming after no-op in populates
mikermcneil Sep 30, 2017
239ec2f
Auto-set identity for provided adapter if it doesn't have one (in Wat…
mikermcneil Sep 30, 2017
3444ba6
Intermediate commit: Takes care of most of https://trello.com/c/VLXPv…
mikermcneil Sep 30, 2017
3423b01
Fix tests by removing munge-prevention for now
mikermcneil Sep 30, 2017
222804e
Pull 'meta' qk checks into their own section, and temporarily remove …
mikermcneil Sep 30, 2017
4ea52f8
Validate 'fetch'
mikermcneil Sep 30, 2017
65eff72
Rename meta key and model setting to allowMutatingArgs for clarity. …
mikermcneil Sep 30, 2017
a5889f6
Transform warnings state which model (#1528)
wulfsolter Sep 30, 2017
4d960d9
Setup for more nuanced object cloning, and a few tweaks to outdated c…
mikermcneil Oct 1, 2017
e4f9687
Merge branch 'master' of github.com:balderdashy/waterline
mikermcneil Oct 1, 2017
9ac17af
Extend the baseline nomenclature to include a concept of 'constraint …
mikermcneil Oct 1, 2017
d79ba64
Hook up 'meta' access all the way down to the normalizeConstraint() util
mikermcneil Oct 1, 2017
2635638
constraint => constraintRhs
mikermcneil Oct 1, 2017
5d89a0d
attrName -> constraintTarget
mikermcneil Oct 1, 2017
9d75368
allowMutatingArgs=>mutateArgs
mikermcneil Oct 1, 2017
463fd8d
Update comment
mikermcneil Oct 1, 2017
8feac14
Remove unused utility.
mikermcneil Oct 1, 2017
897b891
Add experimental support for 'deep targets' in constraints. (https://…
mikermcneil Oct 1, 2017
5df34d2
Dub 'comparator target' to stick with the whole deep targets thing.
mikermcneil Oct 1, 2017
bb810c2
Add stubs for tolerating dot notation in 'sort' clause.
mikermcneil Oct 1, 2017
4ab63f6
Minor tweak to error msg for clarity
mikermcneil Oct 1, 2017
c146516
An 'attribute' doesnt really contain any data-- the field of a record…
mikermcneil Oct 1, 2017
3e260f9
set up stub for deep targets in normalizeSortClause() utility
mikermcneil Oct 1, 2017
c6a1112
Remove mutateArgs model setting (only useful for optimizations anyway…
mikermcneil Oct 2, 2017
d94a441
First pass at experimental deep sort
mikermcneil Oct 2, 2017
59490c5
Bump eslint SVR to roadstead latest
mikermcneil Oct 2, 2017
7f43bee
Fix a few things I missed earlier when setting up deep sort (e.g. act…
mikermcneil Oct 2, 2017
fed1c20
Clone where clause when 'mutateArgs' is not enabled
mikermcneil Oct 2, 2017
cee3247
Always allow setting a value for collection attrs in the form of an a…
mikermcneil Oct 2, 2017
5482914
Add TODOs about removing subcriteria-sort-clause-munging for update/d…
mikermcneil Oct 2, 2017
0358aaf
Partially fix remaining issue with deep sort (all four spots need to …
mikermcneil Oct 2, 2017
de3fed6
Fix issue with deep sort where deep targets were showing up as 'undef…
mikermcneil Oct 2, 2017
f0337a2
Remove debugging stuff now that https://github.com/balderdashy/waterl…
mikermcneil Oct 2, 2017
d18f98f
Resolve merge conflicts
mikermcneil Oct 2, 2017
1e00704
Merge in the other notes about the naive cloneDeep
mikermcneil Oct 2, 2017
329f277
Add clarification about what mutateArgs is and isn't.
mikermcneil Oct 2, 2017
e73e53c
trivial
mikermcneil Oct 2, 2017
325a649
Intermediate commit before changing tack a bit: set up ontology for d…
mikermcneil Oct 2, 2017
b89b65b
Automatically inject default archive if it's in use.
mikermcneil Oct 2, 2017
0f54176
Construct actual waterline models 'wmds' (Note: we should make this s…
mikermcneil Oct 2, 2017
771b46b
Update notes and improve verbiage.
mikermcneil Oct 2, 2017
5fa3860
Clean up .initalize(), and improve errors
mikermcneil Oct 2, 2017
e0ca82f
Update tests.
mikermcneil Oct 3, 2017
cb7d2aa
Update comments
mikermcneil Oct 3, 2017
2f6c6dd
[patch] Add capitalized `globalId` to default archive model. (#1531)
sgress454 Oct 3, 2017
cc82ea8
[proposal] encryption at rest (#1530)
mikermcneil Oct 4, 2017
a781082
Add `columnType` to archive model attributes.
sgress454 Oct 4, 2017
30cbb9c
Use timestamp for Archive "createdAt" column
sgress454 Oct 4, 2017
d0bee1f
Add validation for custom archive models.
mikermcneil Oct 4, 2017
1b500de
Add .decrypt()
mikermcneil Oct 4, 2017
7c68bd4
edgiest of the edge cases
mikermcneil Oct 4, 2017
55146bc
edgiest of the edge cases (corrected)
mikermcneil Oct 4, 2017
598e9a7
0.13.1-4
mikermcneil Oct 5, 2017
6f3e1d4
Node 0.10/0.12/v4 compatibility fix.
mikermcneil Oct 5, 2017
cef2b90
0.13.1-5
mikermcneil Oct 5, 2017
fd080f3
Prevent using at-rest encryption in Node 4
mikermcneil Oct 5, 2017
66b4330
0.13.1-6
mikermcneil Oct 5, 2017
782548b
Note about anchor ruleset validations (https://trello.com/c/enYEApxe)
mikermcneil Oct 10, 2017
4fa3205
Further improve error messages
mikermcneil Oct 12, 2017
4d27c0e
Fix bug with using .replaceCollection() to clear out or remove associ…
mikermcneil Oct 12, 2017
6efcda1
Improve error message about bad pk type, particularly for users of mo…
mikermcneil Oct 12, 2017
52e61bc
0.13.1-7
mikermcneil Oct 12, 2017
5aa605a
Attempt at doing https://github.com/balderdashy/waterline/pull/1532/f…
mikermcneil Oct 13, 2017
fb8a1e4
Tweak previous commit to ensure a good error msg is shown
mikermcneil Oct 13, 2017
7aca522
Attempt at doing https://github.com/balderdashy/waterline/pull/1532/f…
mikermcneil Oct 13, 2017
d2cc874
0.13.1-8
mikermcneil Oct 14, 2017
7c71dbe
Don't apply `omit` criteria to join tables
sgress454 Oct 16, 2017
7d809e5
Minor tweak to error msg
mikermcneil Oct 21, 2017
27f472c
Same as https://github.com/node-machine/machine/commit/8c4c2d81005959…
mikermcneil Oct 28, 2017
1d747f6
Fix typos
rachaelshaw Nov 3, 2017
3311327
Enhance error message
rachaelshaw Nov 17, 2017
13a64fc
Take care of unhandled promise rejections in .stream() iteratees (fix…
mikermcneil Nov 21, 2017
1d0878d
Tolerate non-Errors to allow for special exit signals and compatibili…
mikermcneil Nov 21, 2017
86bccd6
0.13.1-9
mikermcneil Nov 21, 2017
e704ffb
Force bump to latest parley.
mikermcneil Nov 21, 2017
76dab58
Update eslint dep to 4, and update eslintrc.
mikermcneil Nov 28, 2017
c2ff1ca
Lint fix, and take care of a documentation todo
mikermcneil Nov 28, 2017
f6313b4
force bump deps to ensure latest anchor
mikermcneil Nov 28, 2017
47ffea6
update to use `await` and include subtle link to manifesto
mikermcneil Nov 28, 2017
0a93d56
Make toJSON overridable to avoid confusing behavior in userland code.
mikermcneil Dec 21, 2017
858fe59
Update LICENSE.md
rachaelshaw Jan 12, 2018
9a32b31
Add note re https://github.com/balderdashy/sails/issues/4302#issuecom…
mikermcneil Feb 7, 2018
8156b23
Fixes https://github.com/balderdashy/sails/issues/4302#issuecomment-3…
mikermcneil Feb 8, 2018
2c5ec51
0.13.1
mikermcneil Feb 8, 2018
6967d28
update copyright year
mikermcneil Mar 27, 2018
18c1b87
copyright year
mikermcneil Mar 27, 2018
b7ce757
Update waterline.js
mikermcneil Mar 27, 2018
347a180
0.13.2
mikermcneil Mar 28, 2018
18c0e69
0.13.3
mikermcneil Mar 28, 2018
2324f00
Add `create` method to datastore fixture, and test "no validation err…
sgress454 Apr 22, 2018
969ec2b
Fix test descriptions for `update`
sgress454 Apr 22, 2018
c1cf8c0
Add test cases for validations on primary key
sgress454 Apr 22, 2018
0e5af50
Hoist flag for determining whether or not to apply validation rules, …
sgress454 Apr 22, 2018
a612c17
Merge pull request #1554 from balderdashy/fix-sails-issue-4360
mikermcneil Apr 23, 2018
cfc141b
[PATCH] Fixes typo and swapped unit test description misplaced in fix…
luislobo Apr 23, 2018
dc47820
Merge pull request #1555 from luislobo/PATCH-fix-typos-and-test-descr…
mikermcneil Apr 23, 2018
257d87c
0.13.4
mikermcneil May 6, 2018
bc618d7
add link to drawing demonstrating how Waterline works underneath the …
mikermcneil May 12, 2018
dce4c0f
Stub out the spots where implementationSniffingTactic needs to apply
mikermcneil May 28, 2018
7fd0fed
Add implementation-sniffing to .stream()
mikermcneil May 29, 2018
cc758f4
0.13.5-0
mikermcneil May 29, 2018
24c32ca
Intermediate commit: initial setup of updateOne() method
mikermcneil Jul 4, 2018
2f861cf
Finish wiring up .updateOne()
mikermcneil Jul 4, 2018
35bf008
Set up destroyOne() and archiveOne(), and use an omen in the 'found t…
mikermcneil Jul 4, 2018
76d57c2
Error msg tweaks, plus slightly more meaningful error when attempting…
mikermcneil Jul 4, 2018
13e3af5
0.13.5-1
mikermcneil Jul 4, 2018
42c1da6
Dont use skipEncryption for archiveOne() and destroyOne() -- doesn't …
mikermcneil Jul 4, 2018
39a01b9
0.13.5-2
mikermcneil Jul 4, 2018
bb61402
Merge pull request #1567 from balderdashy/update-and-destroy-one
mikermcneil Jul 18, 2018
b3f18a6
0.13.5
mikermcneil Jul 18, 2018
90d7113
Allow one-off use of .meta({cascade}) and .meta({fetch}) to override …
mikermcneil Oct 15, 2018
59b3d90
Add note for future re: numericAttrName
mikermcneil Nov 19, 2018
2412446
update comment now that we have .updateOne, .destroyOne(), and .archi…
mikermcneil Nov 19, 2018
bd1e7de
minor clarifications
mikermcneil Nov 22, 2018
ae4827f
Remove unused extra arg
mikermcneil Nov 22, 2018
9dcb3ae
Improve usage error msg for attempts to do .findOne({})
mikermcneil Nov 26, 2018
90b8a0a
0.13.6
mikermcneil Nov 26, 2018
74deeba
trivial
mikermcneil Dec 17, 2018
d106796
Add failsafe to prevent accidentally interpreting bonkers arguments a…
mikermcneil Jan 29, 2019
92611e5
0.13.7-0
mikermcneil Jan 29, 2019
4c4ce9c
Tolerate certain Error instance-like objects from our database adapte…
mikermcneil Jan 29, 2019
8b134a1
0.13.7-1
mikermcneil Jan 29, 2019
fc6ff2e
Apply flaverr.parseError() to raw errors from db adapters (pseudo-des…
mikermcneil Jan 29, 2019
b4d35fe
0.13.7-2
mikermcneil Jan 29, 2019
cea8b59
Clarify expectations about the result of avg and sum
mikermcneil Jan 29, 2019
4ed02aa
example for clarity
mikermcneil Jan 30, 2019
d7551a4
0.14.0-0
mikermcneil Jan 30, 2019
6855de0
Fix copy/paste mistake
mikermcneil Jan 30, 2019
d1811c6
Made .stream() batch size configurable via batchSize meta key
mikermcneil Jan 30, 2019
dc19388
Avoid accidentally tripping assertion introduced in d1811c625e8561f92…
mikermcneil Jan 30, 2019
f220dac
Fail gracefully when attempting to chain .fetch() on updateOne/destro…
mikermcneil Jan 30, 2019
78d3440
0.14.0-1
mikermcneil Jan 30, 2019
b4f936b
tweak warning
mikermcneil Jan 30, 2019
6412bb3
one more clarification, lest someone think "this method" means .fetch()
mikermcneil Jan 30, 2019
5a2f3e3
Add support for customizing batch size via additional argument to .ea…
mikermcneil Jan 30, 2019
9cbbb19
0.14.0-2
mikermcneil Jan 30, 2019
9896677
Add better error message re https://github.com/balderdashy/sails/issu…
mikermcneil Feb 18, 2019
adae21f
0.14.0-3
mikermcneil Feb 18, 2019
dd26cd6
Link to computational complexity chart
mikermcneil Mar 29, 2019
e1fbed4
add rudimentary support for noSuchPhysicalModel footprint
mikermcneil Apr 11, 2019
258e107
remove couldNotParseNativeQuery footprint stub b/c there's no need to…
mikermcneil Apr 11, 2019
3326984
Remove the word 'ambiguous' from err msg because it was confusing peo…
mikermcneil Apr 11, 2019
90de3c7
Update ISSUE_TEMPLATE
mikermcneil Apr 17, 2019
3080fb5
remove issue template, now that we've consolidated everything in one …
mikermcneil Apr 17, 2019
1ee5c84
Add more info to error messages when using min/max as column names
Apr 26, 2019
a9f6cb4
Move language about min/max as column name underneath the example
rachaelshaw Apr 30, 2019
18ff235
Add the same info to the error messages for `sum`, `average` and `gro…
rachaelshaw Apr 30, 2019
f1fd3f8
Merge pull request #1600 from alxndrsn/min-max-error-clarification
rachaelshaw Apr 30, 2019
31c4298
Fix usage of assert.notEqual in createEach test
rachaelshaw Apr 30, 2019
a383451
Update versions in CI configuration files
rachaelshaw Apr 30, 2019
1d5a3dc
Merge pull request #1602 from balderdashy/fix-tests
rachaelshaw Apr 30, 2019
dbbf1a8
Include model name in findOne error message
Oct 15, 2019
764bcc6
Fix typo: Recursivly -> Recursively
Dec 3, 2019
bc95862
Merge pull request #1612 from alxndrsn/findoneerrormsg
rachaelshaw Jan 6, 2020
40c1610
Merge pull request #1614 from alxndrsn/typos
rachaelshaw Jan 6, 2020
e9500a6
0.14.0-4
mikermcneil May 29, 2020
641ddf3
Fix .archive() and .archiveOne() when using custom column names (#1616)
mikermcneil May 29, 2020
6272bd2
0.14.0-5
mikermcneil May 29, 2020
d84eb68
Update CHANGELOG.md
mikermcneil May 29, 2020
54de5b1
Reolved 'UpdateOne: Validation of encrypted attr'
OscarMeier Sep 21, 2020
dace84e
Merge pull request #1617 from OscarMeier/master
eashaw Mar 18, 2021
d14b727
0.14.0
eashaw Mar 18, 2021
6173700
Update url
alexjv89 Aug 16, 2021
7b467a4
Merge pull request #1620 from switchless-io/master
eashaw Aug 18, 2021
3b64561
validate datastore connectivity after registering it
bhargavkn Oct 14, 2021
d6aa8a6
Update waterline.js
eashaw Oct 15, 2021
80ba7d8
Update validate-datastore-connectivity.js
eashaw Oct 15, 2021
55d0bcd
Merge pull request #1621 from bhargavkn/feature-test-datastore-connec…
eashaw Oct 22, 2021
98e4b7c
0.15.0
eashaw Oct 22, 2021
3d7cced
update node version in travis test
eashaw Aug 5, 2022
3f2369e
Merge pull request #1625 from balderdashy/update-travis.yml
eashaw Aug 5, 2022
427a0ee
Update package.json
eashaw Aug 10, 2022
ad4b10d
Merge pull request #1626 from balderdashy/update-async-dependency
eashaw Aug 10, 2022
cf02582
0.15.1
eashaw Aug 10, 2022
2d96570
Fix .createEach() bug. (closes https://github.com/balderdashy/sails/i…
mikermcneil Dec 11, 2022
8b5a065
0.15.2
mikermcneil Dec 11, 2022
2bbd037
.createEach() : passing in multiple references to the same {}: Fix co…
mikermcneil Dec 11, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
10 changes: 9 additions & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
# editorconfig.org
# ╔═╗╔╦╗╦╔╦╗╔═╗╦═╗┌─┐┌─┐┌┐┌┌─┐┬┌─┐
# ║╣ ║║║ ║ ║ ║╠╦╝│ │ ││││├┤ ││ ┬
# o╚═╝═╩╝╩ ╩ ╚═╝╩╚═└─┘└─┘┘└┘└ ┴└─┘
#
# This file (`.editorconfig`) exists to help maintain consistent formatting
# throughout this package, the Sails framework, and the Node-Machine project.
#
# To review what each of these options mean, see:
# http://editorconfig.org/
root = true

[*]
Expand Down
73 changes: 64 additions & 9 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -1,15 +1,70 @@
{
"parser": "espree",
"extends": "eslint:recommended",
// ╔═╗╔═╗╦ ╦╔╗╔╔╦╗┬─┐┌─┐
// ║╣ ╚═╗║ ║║║║ ║ ├┬┘│
// o╚═╝╚═╝╩═╝╩╝╚╝ ╩ ┴└─└─┘
// A set of basic conventions (similar to .jshintrc) for use within any
// arbitrary JavaScript / Node.js package -- inside or outside Sails.js.
// For the master copy of this file, see the `.eslintrc` template file in
// the `sails-generate` package (https://www.npmjs.com/package/sails-generate.)
// Designed for ESLint v4.
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
// For more information about any of the rules below, check out the relevant
// reference page on eslint.org. For example, to get details on "no-sequences",
// you would visit `http://eslint.org/docs/rules/no-sequences`. If you're unsure
// or could use some advice, come by https://sailsjs.com/support.
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

"env": {
"node": true,
"mocha": true
"node": true
},

"parserOptions": {
"ecmaVersion": 5
// ^^This can be changed to `8` if this package doesn't need to support <= Node v6.
},

"globals": {
"Promise": true
// ^^Available since Node v4
},

"rules": {
"eqeqeq": [1, "smart"],
"no-multiple-empty-lines": [1, {"max": 2}],
"semi": [1, "always"],
"space-before-function-paren": [1, "never"],
"spaced-comment": [1, "always", {"exceptions": ["/"]}]
"callback-return": ["error", ["done", "proceed", "next", "onwards", "callback", "cb"]],
"camelcase": ["warn", {"properties": "always"}],
"comma-style": ["warn", "last"],
"curly": ["error"],
"eqeqeq": ["error", "always"],
"eol-last": ["warn"],
"handle-callback-err": ["error"],
"indent": ["warn", 2, {
"SwitchCase": 1,
"MemberExpression": "off",
"FunctionDeclaration": {"body":1, "parameters": "off"},
"FunctionExpression": {"body":1, "parameters": "off"},
"CallExpression": {"arguments":"off"},
"ArrayExpression": 1,
"ObjectExpression": 1,
"ignoredNodes": ["ConditionalExpression"]
}],
"linebreak-style": ["error", "unix"],
"no-dupe-keys": ["error"],
"no-duplicate-case": ["error"],
"no-extra-semi": ["warn"],
"no-labels": ["error"],
"no-mixed-spaces-and-tabs": ["error", "smart-tabs"],
"no-redeclare": ["warn"],
"no-return-assign": ["error", "always"],
"no-sequences": ["error"],
"no-trailing-spaces": ["warn"],
"no-undef": ["error"],
"no-unexpected-multiline": ["warn"],
"no-unused-vars": ["warn", {"caughtErrors":"all", "caughtErrorsIgnorePattern": "^unused($|[A-Z].*$)", "argsIgnorePattern": "^unused($|[A-Z].*$)", "varsIgnorePattern": "^unused($|[A-Z].*$)" }],
"no-use-before-define": ["error", {"functions":false}],
"one-var": ["warn", "never"],
"quotes": ["warn", "single", {"avoidEscape":false, "allowTemplateLiterals":true}],
"semi": ["error", "always"],
"semi-spacing": ["warn", {"before":false, "after":true}],
"semi-style": ["warn", "last"]
}

}
44 changes: 0 additions & 44 deletions .github/ISSUE_TEMPLATE

This file was deleted.

50 changes: 46 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,48 @@
# ┌─┐┬┌┬┐╦╔═╗╔╗╔╔═╗╦═╗╔═╗
# │ ┬│ │ ║║ ╦║║║║ ║╠╦╝║╣
# o└─┘┴ ┴ ╩╚═╝╝╚╝╚═╝╩╚═╚═╝
#
# This file (`.gitignore`) exists to signify to `git` that certain files
# and/or directories should be ignored for the purposes of version control.
#
# This is primarily useful for excluding temporary files of all sorts; stuff
# generated by IDEs, build scripts, automated tests, package managers, or even
# end-users (e.g. file uploads). `.gitignore` files like this also do a nice job
# at keeping sensitive credentials and personal data out of version control systems.
#

############################
# sails / node.js / npm
############################
node_modules
*.swp
*.swo
.dist
coverage/
.tmp
npm-debug.log
package-lock.json
.waterline
.node_history

############################
# editor & OS files
############################
*.swo
*.swp
*.swn
*.swm
*.seed
*.log
*.out
*.pid
lib-cov
.DS_STORE
*#
*\#
.\#*
*~
.idea
.netbeans
nbproject

############################
# misc
############################
dump.rdb
12 changes: 12 additions & 0 deletions .jshintrc
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@
// EVERYTHING ELSE:
//////////////////////////////////////////////////////////////////////

// Allow the use of ES6 features.
// (re ES7, see https://github.com/jshint/jshint/issues/2297)
"esversion": 6,

// Allow the use of `eval` and `new Function()`
// (we sometimes actually need to use these things)
"evil": true,
Expand Down Expand Up @@ -84,6 +88,14 @@
// read, albeit a bit less exciting)
"laxcomma": false,

// Do NOT allow avant garde use of commas in conditional statements.
// (this prevents accidentally writing code like:
// ```
// if (!_.contains(['+ci', '-ci', '∆ci', '+ce', '-ce', '∆ce']), change.verb) {...}
// ```
// See the problem in that code? Neither did we-- that's the problem!)
"nocomma": true,

// Strictly enforce the consistent use of single quotes.
// (this is a convention that was established primarily to make it easier
// to grep [or FIND+REPLACE in Sublime] particular string literals in
Expand Down
41 changes: 28 additions & 13 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -1,19 +1,34 @@
*#
.git
./.gitignore
./.jshintrc
./.editorconfig
./.travis.yml
./appveyor.yml
./example
./examples
./test
./tests
./.github

node_modules
ssl
npm-debug.log
.node_history
*.swo
*.swp
*.swn
*.swm
*.seed
*.log
*.out
*.pid
lib-cov
.DS_STORE
*#
*\#
.\#*
*~
.idea
.netbeans
nbproject
test
CONTRIBUTING.md
.git
.gitignore
.tmp
*.swo
*.swp
*.swn
*.swm
.jshintrc
.editorconfig
example
dump.rdb
33 changes: 24 additions & 9 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,26 @@
# # # # # # # # # # # # # # # # # # # # # # # # # # # # #
# ╔╦╗╦═╗╔═╗╦ ╦╦╔═╗ ┬ ┬┌┬┐┬ #
# ║ ╠╦╝╠═╣╚╗╔╝║╚═╗ └┬┘││││ #
# o ╩ ╩╚═╩ ╩ ╚╝ ╩╚═╝o ┴ ┴ ┴┴─┘ #
# #
# This file configures Travis CI. #
# (i.e. how we run the tests... mainly) #
# #
# https://docs.travis-ci.com/user/customizing-the-build #
# # # # # # # # # # # # # # # # # # # # # # # # # # # # #

language: node_js

node_js:
- "0.10"
- "0.12"
- "4"
after_script:
- npm run coverage && cat ./coverage/lcov.info | ./node_modules/.bin/codeclimate
addons:
code_climate:
repo_token: 351483555263cf9bcd2416c58b0e0ae6ca1b32438aa51bbab2c833560fb67cc0
sudo: false
- "10"
- "12"
- "14"
- "16"

branches:
only:
- master

notifications:
email:
- [email protected]
Loading