1 | # Change Log
|
2 |
|
3 | All notable changes to this project will be documented in this file.
|
4 | See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
5 |
|
6 | <a name="2.1.1"></a>
|
7 | ## [2.1.1](https://github.com/valor-software/ng2-dragula/compare/v2.1.0...v2.1.1) (2018-11-01)
|
8 |
|
9 |
|
10 | ### Bug Fixes
|
11 |
|
12 | * [@types](https://github.com/types)/dragula > MockDrake breakage. close [#912](https://github.com/valor-software/ng2-dragula/issues/912) close [#913](https://github.com/valor-software/ng2-dragula/issues/913) ([4897356](https://github.com/valor-software/ng2-dragula/commit/4897356))
|
13 |
|
14 |
|
15 |
|
16 |
|
17 | <a name="2.1.0"></a>
|
18 | # [2.1.0](https://github.com/valor-software/ng2-dragula/compare/v2.0.4...v2.1.0) (2018-09-06)
|
19 |
|
20 |
|
21 | ### Features
|
22 |
|
23 | * include sourceIndex and targetIndex in model events ([ea5fb03](https://github.com/valor-software/ng2-dragula/commit/ea5fb03))
|
24 |
|
25 |
|
26 |
|
27 |
|
28 | <a name="2.0.4"></a>
|
29 | ## [2.0.4](https://github.com/valor-software/ng2-dragula/compare/v2.0.3...v2.0.4) (2018-08-31)
|
30 |
|
31 |
|
32 | ### Bug Fixes
|
33 |
|
34 | * **package:** make NPMJS.com readme link to GH ([c0e7b1b](https://github.com/valor-software/ng2-dragula/commit/c0e7b1b))
|
35 |
|
36 |
|
37 |
|
38 |
|
39 | <a name="2.0.3"></a>
|
40 | ## [2.0.3](https://github.com/valor-software/ng2-dragula/compare/v2.0.2...v2.0.3) (2018-08-31)
|
41 |
|
42 | ### Bug Fixes
|
43 |
|
44 | * shouldn't include jasmine/testdouble typings in published module ([ceccf3a](https://github.com/valor-software/ng2-dragula/commit/ceccf3a)), closes [#896](https://github.com/valor-software/ng2-dragula/issues/896)
|
45 |
|
46 |
|
47 |
|
48 |
|
49 | <a name="2.0.2"></a>
|
50 | ## [2.0.2](https://github.com/valor-software/ng2-dragula/compare/v2.0.1...v2.0.2) (2018-07-25)
|
51 |
|
52 | ### Bug Fixes
|
53 |
|
54 | * directive should only emit, not save on removeModel ([59783f0](https://github.com/valor-software/ng2-dragula/commit/59783f0))
|
55 | * was doubling up on writes to drake.models, causing sometimes wrong model order ([f1b26cd](https://github.com/valor-software/ng2-dragula/commit/f1b26cd)), closes [#878](https://github.com/valor-software/ng2-dragula/issues/878)
|
56 |
|
57 |
|
58 |
|
59 |
|
60 | <a name="2.0.1"></a>
|
61 | ## [2.0.1](https://github.com/valor-software/ng2-dragula/compare/v2.0.0...v2.0.1) (2018-07-20)
|
62 |
|
63 |
|
64 | ### Bug Fixes
|
65 |
|
66 | * **types:** '[@types](https://github.com/types)/dragula' was a devDependency, not present in published version, closes [#876](https://github.com/valor-software/ng2-dragula/issues/876) ([eaef778](https://github.com/valor-software/ng2-dragula/commit/eaef778))
|
67 |
|
68 |
|
69 |
|
70 |
|
71 | <a name="2.0.0"></a>
|
72 | # [2.0.0](https://github.com/valor-software/ng2-dragula/compare/v1.5.0...v2.0.0) (2018-07-19)
|
73 |
|
74 | Version 2.0.0 is big. It has lots of breaking API changes are bundled into one
|
75 | release. (Thankfully, it also gains a hefty test suite.) Rather than reading all
|
76 | the changes here, maybe check out the [V2 migration
|
77 | guide](../../MIGRATION-v2.md).
|
78 |
|
79 | ### Bug Fixes
|
80 |
|
81 | * `@types/dragula` DragulaOptions.copy only taking boolean ([ec282c0](https://github.com/valor-software/ng2-dragula/commit/ec282c0))
|
82 | * build with Angular Package Format via ng-packagr ([c362bd8](https://github.com/valor-software/ng2-dragula/commit/c362bd8))
|
83 | * DragulaService.handleModels called twice (intro'd by c5b1d40) ([d4df88c](https://github.com/valor-software/ng2-dragula/commit/d4df88c))
|
84 | * dropModel event not ever firing if models is initially null/undefined. fix [#307](https://github.com/valor-software/ng2-dragula/issues/307) ([c5b1d40](https://github.com/valor-software/ng2-dragula/commit/c5b1d40))
|
85 | * export EventTypes, document MockDrake much more ([10249ab](https://github.com/valor-software/ng2-dragula/commit/10249ab))
|
86 | * memory leaks and containers/dragulaModels hanging around in drakes after destroy or setting null ([2d2c890](https://github.com/valor-software/ng2-dragula/commit/2d2c890)), closes [#794](https://github.com/valor-software/ng2-dragula/issues/794) [#852](https://github.com/valor-software/ng2-dragula/issues/852) [#784](https://github.com/valor-software/ng2-dragula/issues/784)
|
87 | * Mismatch of on remove parameter values. Thanks @Thanatos-elNyx, fix [#842](https://github.com/valor-software/ng2-dragula/issues/842) and [#855](https://github.com/valor-software/ng2-dragula/issues/855) ([7cb1889](https://github.com/valor-software/ng2-dragula/commit/7cb1889))
|
88 | * more types on DragulaService ([927cad5](https://github.com/valor-software/ng2-dragula/commit/927cad5))
|
89 | * redo confusing DragulaService methods (setOptions => createGroup) ([f50d37a](https://github.com/valor-software/ng2-dragula/commit/f50d37a))
|
90 | * remove [dragulaOptions] ([d2886c3](https://github.com/valor-software/ng2-dragula/commit/d2886c3))
|
91 | * fix target.removeChild(dropElm). ([766285a](https://github.com/valor-software/ng2-dragula/commit/766285a)), closes [#596](https://github.com/valor-software/ng2-dragula/issues/596)
|
92 |
|
93 |
|
94 | ### Features
|
95 |
|
96 | * Custom copyItem to clone model objects ([78f3f9f](https://github.com/valor-software/ng2-dragula/commit/78f3f9f))
|
97 | * DragulaModule.forRoot(), with plain DragulaModule on child NgModules. ([b739f9b](https://github.com/valor-software/ng2-dragula/commit/b739f9b)), closes [#805](https://github.com/valor-software/ng2-dragula/issues/805) [#187](https://github.com/valor-software/ng2-dragula/issues/187)
|
98 | * dropModel and removeModel get item, sourceModel/targetModel props ([572c1ba](https://github.com/valor-software/ng2-dragula/commit/572c1ba))
|
99 | * enable two-way binding of [(dragulaModel)] ([53f8d41](https://github.com/valor-software/ng2-dragula/commit/53f8d41))
|
100 | * new strongly typed events API with type (aka 'bag') filtering ([6339fc4](https://github.com/valor-software/ng2-dragula/commit/6339fc4))
|
101 |
|
102 |
|
103 | ### BREAKING CHANGES
|
104 |
|
105 | #### Package
|
106 |
|
107 | * **Requires Angular 6**. This is because of the Angular Package Format
|
108 | changes, and also RxJS 6's breaking changes.
|
109 | * **Requires RxJS 6.** If you are still using Angular 5, which
|
110 | requires RxJs 5, and you can't upgrade yet (even though the CLI upgrade
|
111 | tools are excellent), you might be able to use
|
112 | `rxjs@5.6.0-forward-compat.5`. This has not been tested.
|
113 | * Requires importing `DragulaModule.forRoot()` in your root NgModule, and
|
114 | plain DragulaModule in child modules. This is so you can break your app
|
115 | into lazy loaded modules and not experience problems with having more
|
116 | than 1 DragulaService.
|
117 |
|
118 | #### Directive
|
119 |
|
120 | * **`dragulaModel` no longer modifies arrays internally. You have to use
|
121 | `[(dragulaModel)]="myModel"`** if you want to save the changes the library
|
122 | makes. In most cases, this will be an easy change. However, if you were
|
123 | relying on the arrays being modified directly, that will no longer
|
124 | work.
|
125 | * Removes `[dragulaOptions]` from the directive. It is **not a neater API**
|
126 | (still have to import DragulaOptions, why not just import DragulaService),
|
127 | and it is **misleading** (changing the object does not get reflected merely
|
128 | because it uses Angular binding; you can't change options once set).
|
129 |
|
130 | #### DragulaService
|
131 |
|
132 | * **All the events available on DragulaService are now functions**
|
133 | with an optional `groupName?: string` argument that narrows the stream
|
134 | down to events from drags of a particular group. (Groups are formerly
|
135 | known as 'bags'). E.g: `this.dragulaService.drag("DOG").subscribe(...)`.
|
136 | * DragulaService events are now proper Observables, not EventEmitters.
|
137 | * DragulaService events no longer output arrays directly from Dragula.js;
|
138 | **they are now strongly typed objects**.
|
139 | You can migrate by just swapping square braces for curly ones, if you
|
140 | used the same names: `.subscribe(([el, source]) => {})` becomes
|
141 | `.subscribe(({el, source}) => {})`
|
142 | * `DragulaService.add` now takes a `Group`. You probably don't want to use it.
|
143 | * `DragulaService.setOptions` is now called `createGroup`. This is much
|
144 | clearer. It was not obvious that setOptions actually created groups
|
145 | before; it was even less obvious that you couldn't call it again later
|
146 | to change behaviour.
|
147 | * If you are using `copy` with `[dragulaModel]`, you must now provide your
|
148 | own `copyItem` function. The old one was `JSON.parse(JSON.stringify(x))`,
|
149 | which was terrible.
|
150 |
|
151 |
|
152 |
|
153 | <a name="1.5.0"></a>
|
154 | # [1.5.0](https://github.com/valor-software/ng2-dragula/compare/v1.3.1...v1.5.0) (2017-05-21)
|
155 |
|
156 |
|
157 |
|
158 | <a name="1.3.1"></a>
|
159 | ## [1.3.1](https://github.com/valor-software/ng2-dragula/compare/v1.3.0...v1.3.1) (2017-04-10)
|
160 |
|
161 |
|
162 | ### Bug Fixes
|
163 |
|
164 | * **dragule:** use named exports ([#574](https://github.com/valor-software/ng2-dragula/issues/574)) ([828a434](https://github.com/valor-software/ng2-dragula/commit/828a434)), closes [#530](https://github.com/valor-software/ng2-dragula/issues/530)
|
165 |
|
166 |
|
167 | ### Features
|
168 |
|
169 | * **package:** relaxed peer dependencies to allow ng v4 ([94f5e2b](https://github.com/valor-software/ng2-dragula/commit/94f5e2b))
|
170 |
|
171 |
|
172 |
|
173 | <a name="1.3.0"></a>
|
174 | # [1.3.0](https://github.com/valor-software/ng2-dragula/compare/v1.2.2...v1.3.0) (2017-01-17)
|
175 |
|
176 |
|
177 | ### Bug Fixes
|
178 |
|
179 | * **demo:** make AoT compatible ([8667689](https://github.com/valor-software/ng2-dragula/commit/8667689))
|
180 |
|
181 |
|
182 | ### Features
|
183 |
|
184 | * **package:** v1.3.0 upgrade to ng v2.3+ ([b8ce361](https://github.com/valor-software/ng2-dragula/commit/b8ce361))
|
185 |
|
186 |
|
187 |
|
188 | <a name="1.2.2"></a>
|
189 | ## [1.2.2](https://github.com/valor-software/ng2-dragula/compare/v1.2.2-0...v1.2.2) (2016-12-16)
|
190 |
|
191 |
|
192 | ### Features
|
193 |
|
194 | * **package:** build upgrage + AoT support ([#494](https://github.com/valor-software/ng2-dragula/issues/494)) ([0a3e929](https://github.com/valor-software/ng2-dragula/commit/0a3e929))
|
195 |
|
196 |
|
197 |
|
198 | <a name="1.2.2-0"></a>
|
199 | ## [1.2.2-0](https://github.com/valor-software/ng2-dragula/compare/v1.2.1...v1.2.2-0) (2016-10-19)
|
200 |
|
201 |
|
202 | ### Features
|
203 |
|
204 | * **package:** added module metadata extraction for Angular AoT compiler ([0deed74](https://github.com/valor-software/ng2-dragula/commit/0deed74)), closes [#417](https://github.com/valor-software/ng2-dragula/issues/417)
|
205 |
|
206 |
|
207 |
|
208 | <a name="1.2.1"></a>
|
209 | ## [1.2.1](https://github.com/valor-software/ng2-dragula/compare/v1.2.0...v1.2.1) (2016-09-21)
|
210 |
|
211 |
|
212 | ### Features
|
213 |
|
214 | * **ng2:** Update to angular2 final ([#414](https://github.com/valor-software/ng2-dragula/issues/414)) ([1f872dd](https://github.com/valor-software/ng2-dragula/commit/1f872dd))
|
215 | * **package:** update dragula tp 3.7.2 ([#405](https://github.com/valor-software/ng2-dragula/issues/405)) ([99b3808](https://github.com/valor-software/ng2-dragula/commit/99b3808)), closes [#404](https://github.com/valor-software/ng2-dragula/issues/404)
|
216 |
|
217 |
|
218 |
|
219 | <a name="1.2.0"></a>
|
220 | # [1.2.0](https://github.com/valor-software/ng2-dragula/compare/v1.1.10...v1.2.0) (2016-09-07)
|
221 |
|
222 |
|
223 | ### Bug Fixes
|
224 |
|
225 | * **demo:** the error in the demo move `}` to the bottom([#329](https://github.com/valor-software/ng2-dragula/issues/329)) ([c20e699](https://github.com/valor-software/ng2-dragula/commit/c20e699))
|
226 | * **demo:** update ngFor syntax ([e3c870a](https://github.com/valor-software/ng2-dragula/commit/e3c870a))
|
227 |
|
228 |
|
229 | ### Features
|
230 |
|
231 | * **package:** added main entry point to package.json ([#319](https://github.com/valor-software/ng2-dragula/issues/319)) ([a53bf7b](https://github.com/valor-software/ng2-dragula/commit/a53bf7b))
|
232 | * **package:** upgrade to angular 2.0.0-rc.2 ([#299](https://github.com/valor-software/ng2-dragula/issues/299)) ([e275b99](https://github.com/valor-software/ng2-dragula/commit/e275b99))
|
233 |
|
234 |
|
235 |
|
236 | <a name="1.1.10"></a>
|
237 | ## [1.1.10](https://github.com/valor-software/ng2-dragula/compare/v1.1.9...v1.1.10) (2016-06-06)
|
238 |
|
239 |
|
240 | ### Bug Fixes
|
241 |
|
242 | * **package:** install ng2-dracula in a project without typings.json ([#277](https://github.com/valor-software/ng2-dragula/issues/277)) ([9bebfed](https://github.com/valor-software/ng2-dragula/commit/9bebfed))
|
243 |
|
244 |
|
245 |
|
246 | <a name="1.1.9"></a>
|
247 | ## [1.1.9](https://github.com/valor-software/ng2-dragula/compare/v1.1.8...v1.1.9) (2016-05-13)
|
248 |
|
249 |
|
250 | ### Bug Fixes
|
251 |
|
252 | * **publish:** enabled .d.ts files generation ([a7366c8](https://github.com/valor-software/ng2-dragula/commit/a7366c8))
|
253 |
|
254 |
|
255 |
|
256 | <a name="1.1.8"></a>
|
257 | ## [1.1.8](https://github.com/valor-software/ng2-dragula/compare/v1.1.7...v1.1.8) (2016-05-13)
|
258 |
|
259 |
|
260 | ### Bug Fixes
|
261 |
|
262 | * **publish:** ng2-dragula publish flow fixed ([61a6bec](https://github.com/valor-software/ng2-dragula/commit/61a6bec))
|
263 |
|
264 |
|
265 |
|
266 | <a name="1.1.7"></a>
|
267 | ## [1.1.7](https://github.com/valor-software/ng2-dragula/compare/326d198...v1.1.7) (2016-05-12)
|
268 |
|
269 |
|
270 | ### Bug Fixes
|
271 |
|
272 | * **dragula:** compatible with webpack and other loaders. no more window.dragula ([e6830ca](https://github.com/valor-software/ng2-dragula/commit/e6830ca))
|
273 | * **dragula:** use require. also update to beta.6 ([b0a9ca3](https://github.com/valor-software/ng2-dragula/commit/b0a9ca3))
|
274 | * **dragula:** using typings and removed require usage ([feaf945](https://github.com/valor-software/ng2-dragula/commit/feaf945))
|
275 | * **dragulaModel:** model sync works properly now ([326d198](https://github.com/valor-software/ng2-dragula/commit/326d198))
|
276 | * **removeModel:** issue with callback ([c19c676](https://github.com/valor-software/ng2-dragula/commit/c19c676))
|
277 | * **require:** removing require ([b033e85](https://github.com/valor-software/ng2-dragula/commit/b033e85))
|
278 | * **require:** removing usage of require ([0f7ee40](https://github.com/valor-software/ng2-dragula/commit/0f7ee40))
|
279 |
|
280 |
|
281 | ### Features
|
282 |
|
283 | * **package:** Upgrade to angular 2.0.0-rc.1 ([f3ff82c](https://github.com/valor-software/ng2-dragula/commit/f3ff82c)), closes [#239](https://github.com/valor-software/ng2-dragula/issues/239)
|