druxt 0.15.0 → 0.18.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md DELETED
@@ -1,368 +0,0 @@
1
- # druxt
2
-
3
- ## 0.15.0
4
-
5
- ### Minor Changes
6
-
7
- - 2ae1d6d: Reduced Fetch based UI flicker in the DruxtModule
8
-
9
- ## 0.14.0
10
-
11
- ### Minor Changes
12
-
13
- - 85fff42: Added debug mode and Axios request logging.
14
-
15
- ```
16
- export default {
17
- druxt: {
18
- // Enable debug log messages.
19
- debug: true,
20
- }
21
- }
22
- ```
23
-
24
- - 39e2e2e: Added ability to render readable JSON with the DruxtDebug component
25
-
26
- ```jsx
27
- <DruxtDebug :json="{ data: [{ one: true, two: false }] }" />
28
- ```
29
-
30
- - 9c33d82: Made summary prop optional on DruxtDebug component
31
- - 45bc0b9: Added Druxt version to Nuxt badge
32
-
33
- ## 0.13.0
34
-
35
- ### Minor Changes
36
-
37
- - 77ab204: Added ability to proxy the API
38
-
39
- ```js
40
- export default {
41
- druxt: {
42
- proxy: {
43
- api: true
44
- }
45
- }
46
- };
47
- ```
48
-
49
- Creates two proxy entries:
50
-
51
- - The JSON:API: `${ENDPOINT}` -> `${BASEURL}${ENDPOINT}`
52
- - The Decoupled Router:`/router/translate-path` -> `${BASEURL}/router/translate-path`
53
-
54
- - 77ab204: Added ability to proxy the Drupal file system
55
-
56
- ```js
57
- export default {
58
- druxt: {
59
- proxy: {
60
- files: "default"
61
- }
62
- }
63
- };
64
- ```
65
-
66
- Creates a proxy entry:
67
-
68
- - `/sites/${PATH}/files` -> `${BASEURL}/site/${PATH}/files`
69
-
70
- - c4457e1: Changed template injected module components to not use a DruxtWrapper component by default.
71
- - e7b1533: Refactored DruxtModule fetch hooks
72
-
73
- ## 0.12.0
74
-
75
- ### Minor Changes
76
-
77
- - 897dcbc: Added createResource method to DruxtClient
78
-
79
- ```js
80
- this.$druxt.createResource({ type, attributes: {}, relationships: {} });
81
- ```
82
-
83
- - 897dcbc: Added updateResource method to DruxtClient
84
-
85
- ```js
86
- await this.$druxt.updateResource({
87
- type,
88
- id,
89
- attributes: {},
90
- relationships: {}
91
- });
92
- ```
93
-
94
- - 4504a2f: Added getRelated() method
95
-
96
- ```js
97
- await this.$druxt.getRelated(type, id, related);
98
- ```
99
-
100
- - e3e634c: Enabled Components auto-discovery by default
101
-
102
- ## 0.11.0
103
-
104
- ### Minor Changes
105
-
106
- - dae345e: Added Druxt modules settings to `$druxt.settings`
107
-
108
- ### Patch Changes
109
-
110
- - 75ff8a9: Fixed issue with Axios settings and Storybook
111
-
112
- ## 0.10.0
113
-
114
- ### Minor Changes
115
-
116
- - 715e5ef: Updated component registration method to use the Nuxt `components:dirs` hook
117
- - 2b8c3f3: Added DruxtDebug component
118
- - 317184e: Added Druxt API URL to Nuxt CLI badge
119
-
120
- ## 0.9.0
121
-
122
- ### Minor Changes
123
-
124
- - 21170fb: Moved Vue components out of bundle
125
-
126
- ⚠ Potential breaking change
127
-
128
- _**Note:** This only effects custom Druxt modules and implementations._
129
-
130
- ```diff
131
- -import { DruxtModule } from 'druxt'
132
- +import DruxtModule from 'druxt/dist/components/DruxtModule.vue'
133
- ```
134
-
135
- ## 0.8.3
136
-
137
- ### Patch Changes
138
-
139
- - Fixed issue with attrs passthrough
140
-
141
- ## 0.8.2
142
-
143
- ### Patch Changes
144
-
145
- - Fixed bug with fetchKey and attrs passthrough
146
-
147
- ## 0.8.1
148
-
149
- ### Patch Changes
150
-
151
- - Fixed DruxtModule emit behavior
152
-
153
- ## 0.8.0
154
-
155
- ### Minor Changes
156
-
157
- - Added support for default template injection to DruxtModule
158
-
159
- _**Example:** Default template injection with DruxtEntity and DruxtMenu components_
160
-
161
- ```vue
162
- <DruxtEntity v-bind="props">
163
- <template #default="{ entity }">
164
- <h2>{{ entity.attributes.title }}</h2>
165
- <DruxtMenu name="main" :depth="1" :parentId="parentId(entity)">
166
- <template #default="{ items }">
167
- {{ items }}
168
- </template>
169
- </DruxtMenu>
170
- </template>
171
- </DruxtEntity>
172
- ```
173
-
174
- ## 0.7.1
175
-
176
- ### Patch Changes
177
-
178
- - Fixed issue with attrs passthrough
179
- - Updated support for Drupal JSON-API Params
180
-
181
- Thanks to [d34dman](https://github.com/d34dman)
182
-
183
- ## 0.7.0
184
-
185
- ### Minor Changes
186
-
187
- - Added support for v-model to DruxtModule
188
-
189
- _**Example:** Passing a custom entity model to the DruxtEntity component_
190
-
191
- ```vue
192
- <DruxtEntity
193
- type="node--article"
194
- v-model="{
195
- attributes: {
196
- title: 'My Entity',
197
- field_name: 'Value'
198
- },
199
- relationships: {}
200
- }"
201
- />
202
- ```
203
-
204
- ## 0.6.1
205
-
206
- ### Patch Changes
207
-
208
- - Fixed issue with normalizaton of include/sort data
209
- - Fixed issue with queryobject in getResource action
210
- - Updated dependencies
211
-
212
- ## 0.6.0
213
-
214
- ### Minor Changes
215
-
216
- - Refactored DruxtStore
217
- - Added support for partial resources
218
- - Added dehyrdation/rehydration of included resources and collections
219
- - Fixed issue with DruxtStore reactivity
220
-
221
- ## 0.5.1
222
-
223
- ### Patch Changes
224
-
225
- - Fixed issue with getWrapperData
226
- - Fixed issue with DruxtStore reactivity
227
-
228
- ## 0.5.0
229
-
230
- ### Minor Changes
231
-
232
- - Added DruxtModule component
233
-
234
- ```vue
235
- <script>
236
- import { DruxtModule } from "druxt";
237
- export default {
238
- name: "MyCustomDruxtModule",
239
- extends: DruxtModule
240
- };
241
- </script>
242
- ```
243
-
244
- - For more details, refer to the [DruxtModule API documentation](/api/packages/druxt/components/DruxtModule)
245
-
246
- - Added \$attrs/props splitting
247
-
248
- ## 0.4.2
249
-
250
- ### Patch Changes
251
-
252
- - Added metadata to Nuxt module
253
-
254
- ## 0.4.1
255
-
256
- ### Patch Changes
257
-
258
- - Fixed dependency issues
259
-
260
- ## 0.4.0
261
-
262
- ### Minor Changes
263
-
264
- - Added DruxtClient
265
-
266
- _**Example:** Using the DruxtClient to load a JSON:API resource in a node.js application_
267
-
268
- ```js
269
- import { DruxtClient } from 'druxt'
270
- const druxt = new DruxtClient('https://demo-api.druxtjs.org')
271
- druxt.getResource('node--page', uuid, query).then((resource) => {
272
- console.log('getResource', resource)
273
- }))
274
- ```
275
-
276
- - For more details, refer to the [DruxtClient API documentation](/api/packages/druxt/client)
277
-
278
- - Added DruxtStore
279
-
280
- _**Example:** Using the DruxtStore to load a JSON:API resource within Nuxt_
281
-
282
- ```vue
283
- <script>
284
- export default {
285
- data: () => ({
286
- resource: null
287
- }),
288
-
289
- async fetch() {
290
- const resource = await this.$store.dispatch("druxt/getResource", {
291
- type: "node--article",
292
- id: uuid,
293
- query
294
- });
295
- this.resource = resource;
296
- }
297
- };
298
- </script>
299
- ```
300
-
301
- - For more details, refer to the [DruxtStore API documentation](/api/packages/druxt/stores/druxt)
302
-
303
- - Added \$druxt plugin wrapper for DruxtClient
304
-
305
- ## 0.3.4
306
-
307
- ### Patch Changes
308
-
309
- - Updated dependencies
310
-
311
- ## 0.3.3
312
-
313
- ### Patch Changes
314
-
315
- - Added Inner prop to DruxtComponentMixin
316
-
317
- ## 0.3.2
318
-
319
- ### Patch Changes
320
-
321
- - Added sorting of component options
322
- - Fixed issue with component options
323
-
324
- ## 0.3.1
325
-
326
- ### Patch Changes
327
-
328
- - Added DruxtWrapper to DruxtComponentMixin
329
- - Added unique filter to component options
330
-
331
- ## 0.3.0
332
-
333
- ### Minor Changes
334
-
335
- - Moved Site functionality to the [DruxtSite module](/modules/site)
336
- - Added Druxt component and mixin
337
- - Added available component options data
338
- - Removed unused Class and Store
339
-
340
- ## 0.2.1
341
-
342
- ### Patch Changes
343
-
344
- - Added @nuxtjs/proxy and default configuration
345
- - Updated dependencies for no-JS support
346
-
347
- ## 0.2.0
348
-
349
- ### Minor Changes
350
-
351
- - Updated dependencies for no-JS support
352
-
353
- ## 0.1.2
354
-
355
- ### Patch Changes
356
-
357
- - Fixed Vuex store installation
358
- - Updated dependencies
359
-
360
- ## 0.1.1
361
-
362
- ### Patch Changes
363
-
364
- - Removed schema generation workaround
365
-
366
- ## 0.1.0
367
-
368
- ### Initial release