1 | # Changelog
|
2 |
|
3 | ## Emojis
|
4 |
|
5 | - New Features -> :zap:
|
6 | - Enhancements -> :star2:
|
7 | - Breaking Changes -> :boom:
|
8 | - Bugs -> :beetle:
|
9 | - Pull Requests -> :book:
|
10 | - Documents -> :mortar_board:
|
11 | - Tests -> :eyeglasses:
|
12 |
|
13 | ---
|
14 |
|
15 | ## [v0.9.0](https://github.com/foxifyjs/odin/releases/tag/v0.9.0) - *(2019-01-07)*
|
16 |
|
17 | - :zap: Added `iterate` method to `DB`, `Odin` & relational methods
|
18 | - :zap: Added `unset` method to `DB`
|
19 | - :zap: Added `delete` method to `Odin` instance
|
20 | - :zap: Added `withTrashed` method to relational methods
|
21 | - :zap: Added `lean` method to relational methods
|
22 | - :boom: Method `restore` in `Odin` instance returns `number` now (it was `boolean` before)
|
23 | - :beetle: Fixed bug with `^.+_ids$` fields not casting to array of `ObjectId` while saving
|
24 |
|
25 | ## [v0.8.0](https://github.com/foxifyjs/odin/releases/tag/v0.8.0) - *(2018-12-27)*
|
26 |
|
27 | - :beetle: Fixed `embedMany` relation bug
|
28 | - :beetle: Fixed not applying `withTrashed` to relations
|
29 | - :boom: `Types` is now a peerDependency ([`@foxify/schema`](https://github.com/foxifyjs/schema)) which needs to be installed!
|
30 | - :eyeglasses: Added `embedMany` tests
|
31 | - :eyeglasses: Added `Node.js` version `11` to tests
|
32 |
|
33 | ## [v0.7.0](https://github.com/foxifyjs/odin/releases/tag/v0.7.0) - *(2018-12-14)*
|
34 |
|
35 | - :zap: Added `whereHas` method to models
|
36 | - :star2: Added deep relation compatibility to `has` & `whereHas`
|
37 |
|
38 | ## [v0.6.2](https://github.com/foxifyjs/odin/releases/tag/v0.6.2) - *(2018-12-07)*
|
39 |
|
40 | - :star2: Added more compatibility with [`Foxify`](https://github.com/foxifyjs/foxify) error handling
|
41 |
|
42 | ## [v0.6.0](https://github.com/foxifyjs/odin/releases/tag/v0.6.0) - *(2018-12-04)*
|
43 |
|
44 | - :zap: Added `has` to model queries (use with caution since it may have a negative impact on your performance)
|
45 |
|
46 | ## [v0.5.4](https://github.com/foxifyjs/odin/releases/tag/v0.5.4) - *(2018-12-03)*
|
47 |
|
48 | - :zap: Added `Collection` to create collection and indexes
|
49 |
|
50 | ## [v0.5.0](https://github.com/foxifyjs/odin/releases/tag/v0.5.0) - *(2018-12-01)*
|
51 |
|
52 | - :zap: Added deep relation loading ability
|
53 | - :zap: Added `lean` method to model queries to skip creating model instances
|
54 | - :star2: Improved model static method `toJsonSchema` functionality
|
55 | - :star2: Improved model hook `created`
|
56 |
|
57 | ## [v0.4.0](https://github.com/foxifyjs/odin/releases/tag/v0.4.0) - *(2018-11-16)*
|
58 |
|
59 | - :zap: Added `embedMany` relation
|
60 | - :star2: Improved `toJsonSchema` functionality
|
61 |
|
62 | ## [v0.3.0](https://github.com/foxifyjs/odin/releases/tag/v0.3.0) - *(2018-11-16)*
|
63 |
|
64 | - :zap: Added `toJsonSchema` static method to Model so you can easily use it with `Foxify` router schema option
|
65 | - :star2: Improved throwing validation error for `Foxify` usage
|
66 |
|
67 | ## [v0.2.0](https://github.com/foxifyjs/odin/releases/tag/v0.2.0) - *(2018-11-14)*
|
68 |
|
69 | - :zap: Added more advanced filtering ability to queries and joins
|
70 | - :zap: Added `numeral` to `String` schema type
|
71 | - :zap: Added `enum` to `String` schema type
|
72 |
|
73 | ## [v0.1.0](https://github.com/foxifyjs/odin/releases/tag/v0.1.0) - *(2018-10-20)*
|
74 |
|
75 | - :zap: Added model hook `created`
|
76 |
|
77 | ## [v0.1.0-beta.16](https://github.com/foxifyjs/odin/releases/tag/v0.1.0-beta.16) - *(2018-10-12)*
|
78 |
|
79 | - :beetle: Typescript bug fix
|
80 | - :eyeglasses: Added windows os
|
81 |
|
82 | ## [v0.1.0-beta.15](https://github.com/foxifyjs/odin/releases/tag/v0.1.0-beta.15) - *(2018-08-22)*
|
83 |
|
84 | - :beetle: `Model` schema bug fix
|
85 |
|
86 | ## [v0.1.0-beta.14](https://github.com/foxifyjs/odin/releases/tag/v0.1.0-beta.14) - *(2018-08-21)*
|
87 |
|
88 | - :beetle: `Model` none safe delete models query bug fix
|
89 | - :beetle: `GraphQL` error handling bug fix
|
90 |
|
91 | ## [v0.1.0-beta.13](https://github.com/foxifyjs/odin/releases/tag/v0.1.0-beta.13) - *(2018-08-21)*
|
92 |
|
93 | - :beetle: `GraphQL` query bug fix
|
94 |
|
95 | ## [v0.1.0-beta.12](https://github.com/foxifyjs/odin/releases/tag/v0.1.0-beta.12) - *(2018-08-21)*
|
96 |
|
97 | - :beetle: `Model` safe deleting bug fix
|
98 |
|
99 | ## [v0.1.0-beta.11](https://github.com/foxifyjs/odin/releases/tag/v0.1.0-beta.11) - *(2018-08-21)*
|
100 |
|
101 | - :beetle: `GraphQL` mutations bug fix
|
102 |
|
103 | ## [v0.1.0-beta.10](https://github.com/foxifyjs/odin/releases/tag/v0.1.0-beta.10) - *(2018-08-21)*
|
104 |
|
105 | - :beetle: `GraphQL` schema type `Date` bug fix
|
106 |
|
107 | ## [v0.1.0-beta.9](https://github.com/foxifyjs/odin/releases/tag/v0.1.0-beta.9) - *(2018-08-21)*
|
108 |
|
109 | - :star2: `UPDATED_AT` and `DELETED_AT` is applied
|
110 | - :beetle: `GraphQL` restore bug fix
|
111 |
|
112 | ## [v0.1.0-beta.8](https://github.com/foxifyjs/odin/releases/tag/v0.1.0-beta.8) - *(2018-08-21)*
|
113 |
|
114 | - :beetle: `GraphQL` query bug fix
|
115 |
|
116 | ## [v0.1.0-beta.7](https://github.com/foxifyjs/odin/releases/tag/v0.1.0-beta.7) - *(2018-08-21)*
|
117 |
|
118 | - :beetle: `GraphQL` query bug fix
|
119 |
|
120 | ## [v0.1.0-beta.6](https://github.com/foxifyjs/odin/releases/tag/v0.1.0-beta.6) - *(2018-08-21)*
|
121 |
|
122 | - :boom: `GraphQL` change insert single to create single (eq. `insert_user` => `create_user`)
|
123 | - :boom: `GraphQL` change `data` argument to `query`
|
124 |
|
125 | ## [v0.1.0-beta.5](https://github.com/foxifyjs/odin/releases/tag/v0.1.0-beta.5) - *(2018-08-16)*
|
126 |
|
127 | - :star2: Some enhancements
|
128 | - :eyeglasses: Added some tests
|
129 |
|
130 | ## [v0.1.0-beta.4](https://github.com/foxifyjs/odin/releases/tag/v0.1.0-beta.4) - *(2018-05-24)*
|
131 |
|
132 | - :zap: Added `morphOne` relation
|
133 | - :zap: Added `morphMany` relation
|
134 | - :star2: Improved `join` operation ([#1](https://github.com/foxifyjs/odin/issues/1))
|
135 | - :eyeglasses: Added some tests
|
136 |
|
137 | ## [v0.1.0-beta.2](https://github.com/foxifyjs/odin/releases/tag/v0.1.0-beta.2) - *(2018-05-18)*
|
138 |
|
139 | - :zap: Added `create` operation to relations
|
140 |
|
141 | ## [v0.1.0-beta.1](https://github.com/foxifyjs/odin/releases/tag/v0.1.0-beta.1) - *(2018-05-17)*
|
142 |
|
143 | - :tada: First Release
|