Joey Baker
adb1d71984
Chore(deps) update patches and minors
2016-10-20 17:20:22 -07:00
Joey Baker
a720e30a85
2.6.2
2016-09-08 13:27:20 -07:00
Joey Baker
518c4a4226
2.6.1
2016-09-08 13:27:10 -07:00
Joey Baker
8ee5661252
Test: only run src test files #oops
2016-09-08 13:24:08 -07:00
Joey Baker
85111c7dc8
2.6.0
2016-09-06 11:30:22 -07:00
Joey Baker
4558ad1327
Chore (deps) update minors and patches
...
Not strictly necessary, but kinda nice to prove we're up-to-date
2016-09-06 09:25:02 -07:00
Joey Baker
edccfb2316
Chore (deps) update Joi 7 → 9
...
Shouldn't impact us
2016-09-06 07:28:43 -07:00
Joey Baker
0d8ab9f02e
Chore (deps) update boom (major)
...
They just removed a method we don't use.
2016-09-06 07:28:43 -07:00
Joey Baker
03755f94c5
Test (CI) configure circle
2016-09-05 17:37:50 -07:00
Joey Baker
de0685c8bb
Chore: install and configure AVA
2016-09-05 17:10:58 -07:00
Joey Baker
38ccb3adf6
Chore (deps) update eslint (major)
...
Breaking changes shouldn't affect us
2016-09-05 15:43:48 -07:00
Joey Baker
506d42f39a
2.5.4
2016-09-05 12:30:15 -07:00
Mahdi Dibaiee
79c6a81a3a
chore(version): bump version
2016-08-30 09:49:07 +04:30
Joey Baker
a9fa790ae9
Fix (deps): install babel-polyfill as optionalDep
...
We only require it if something else hasn't so this is a optionalDep.
2016-08-29 17:08:44 -07:00
Mahdi Dibaiee
6ad9df2db1
chore: bump version
2016-08-26 13:15:50 +04:30
Mahdi Dibaiee
9524e55690
chore(version): bump version
2016-08-04 10:38:18 +04:30
Mahdi Dibaiee
e5d72fd034
chore(version): bump version to 2.5.0, we have a new feature
2016-07-22 23:25:55 +04:30
Joey Baker
0416986896
Build: rm extraneous babel dep #oops
2016-07-22 09:52:21 -07:00
Mahdi Dibaiee
6c46ff68d0
fix(primaryKey): use model.primaryKey
instead of hardcoded id
for id
routes, fixes #9
2016-07-13 11:27:48 +04:30
Mahdi Dibaiee
29ee49fc62
fix(name): default name
parameter on options
object itself
2016-07-13 10:05:33 +04:30
Mahdi Dibaiee
d142e6c553
fix(options): take a name
parameter, same as the name
parameter used in hapi-sequelize
, fixes #8
2016-07-13 10:03:00 +04:30
Mahdi Dibaiee
fb06d9cd27
chore(version): bump version up
2016-07-13 09:59:55 +04:30
Mahdi Dibaiee
fe6881099f
Merge branch 'babel6' of github.com:Getable/hapi-sequelize-crud into babel6
2016-07-13 09:50:44 +04:30
Mahdi Dibaiee
6786b9b487
style: updated eslint config
2016-07-09 09:41:23 +04:30
Mahdi Dibaiee
aa06808ab2
chore(version): bump version to 2.1.1, two small patches were applied by @joeybaker
2016-07-09 09:14:18 +04:30
Joey Baker
e7bc048a46
Internal: upgrade to babel6
...
Upgrades to babel 6. The major win (aside from some minor
performance gains), is that this module can now be `npm link`ed into a
babel 6 code base.
2016-07-05 14:47:44 -07:00
Mahdi Dibaiee
07af23cb5a
chore(eslint): use eslint for a more consistent style throughout the code
2016-06-30 18:28:02 +04:30
Joey Baker
6958c49622
Build: install boom
2016-06-29 21:27:44 -07:00
Mahdi Dibaiee
1a87621ce9
chore(defaultConfig): bump version, thanks to @Istar-Eldritch
2016-06-05 21:34:30 +04:30
Mahdi Dibaiee
f8e1a27572
chore: add babel as dependency
2016-05-24 18:05:38 +04:30
Mahdi Dibaiee
7014e0e07d
fix(polyfill): load babel/polyfill if it's not already loaded
2016-05-11 08:55:32 +04:30
Mahdi Dibaiee
dd0084277b
fix: actually run destroyAll
:|
2016-05-07 10:41:30 +04:30
Mahdi Dibaiee
193aec9619
fix(crud): DELETE plural
2016-05-07 10:37:51 +04:30
Mahdi Dibaiee
973f63640c
fix(destroy): associative remove
methods require the instance, they don't accept queries, so fallback to manual destroy
2016-04-19 11:39:59 +04:30
Mahdi Dibaiee
544dc23723
fix(associate): associating one way is enough
...
fix(destroy): directly get a `destroy` method instead of find and destroy
2016-03-31 20:40:01 +04:30
Mahdi Dibaiee
afb08670e8
fix(associate): it seems sometimes associations don't resolve or reject, causing a hang
2016-03-13 14:56:16 +03:30
Mahdi Dibaiee
dc5a010408
fix(crud): typo
2016-03-12 11:05:04 +03:30
Mahdi Dibaiee
5551d416a8
fix(crud): single instance requests were failing, not taking id into account
2016-03-12 10:52:47 +03:30
Mahdi Dibaiee
097a9adcf3
fix(one-to-many): raw parameters are removed
2016-03-12 09:58:05 +03:30
Mahdi Dibaiee
11291f0e08
refactor: minimize repeated code by re-using parseInclude
, parseWhere
and getMethod
...
feat(include): ability to specify multiple includes, as an array
2016-03-10 10:48:30 +03:30
Mahdi Dibaiee
00e8e89767
fix(query): use qs
for querystring parsing
2016-03-02 12:13:27 +03:30
Mahdi Dibaiee
45d991d1e9
fix: one-to-one associations didn't work properly
2016-02-07 15:52:09 +03:30
Mahdi Dibaiee
5db3bb4eb3
feat(operators): ability to use sequelize operators in queries
2016-02-01 16:46:30 +03:30
Mahdi Dibaiee
6cfe877884
feat(include): include query parameter, passed to sequelize query
...
fix(associations): one-to-many associations -> destroyScope and get
2016-01-29 11:30:39 +03:30
Mahdi Dibaiee
aebff50d0b
fix(one-to-one): should not require an id for the second model, because there is only one anyways
2016-01-24 15:07:31 +03:30
Mahdi Dibaiee
5e0eeccbac
feat(associate): routes to associate objects with each other
2016-01-20 12:47:47 +03:30
Mahdi Dibaiee
e647922678
chore: include build directory in package.json files
2016-01-19 11:23:01 +03:30
Mahdi Dibaiee
14a36434f7
fix(associations): request.query should apply to second model's where
...
feat(associations): scope queries on associations
2016-01-19 10:37:56 +03:30
Mahdi Dibaiee
25366a5c89
chore: configure ghooks to run grunt pre-commit
2016-01-19 10:08:27 +03:30
Mahdi Dibaiee
52ad030d0d
feat(associations): many-to-many associations
...
fix(associations): fix association queries, must use `include` instead of ForeignKey
fix(error): error decorator was missing await, which prevented it from catching errors
fix(error): console.error the error
refactor(crud): don't use `request.models[name]`, use the model directly
chore: README added
2016-01-19 10:03:29 +03:30