@clairejs/client 3.2.3 → 3.2.5

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/README.md CHANGED
@@ -1,454 +1,462 @@
1
- ## Change Log
2
-
3
- #### 3.2.3:
4
-
5
- - fix translate undefined/null/empty template
6
- - update Translator.translate to return string instead of promise
7
- - fix translation loading translation pending promises
8
- - implement new Translator
9
-
10
- #### 3.1.26:
11
-
12
- - fix DefaultHttpClient retry
13
- - add retry config in RefreshHttpClient
14
- - fix stringifyQueries not encode URI
15
- - add withCredentials option to abstract request
16
-
17
- #### 3.1.22:
18
-
19
- - fix DefaultHttpClient: add delay before retry
20
- - fix stringifyQueries
21
- - add cache and reset cache ability to DefaultHttpClient
22
- - fix HttpClient, allow get with cache, allow retry when get 503 error
23
-
24
- #### 3.1.15:
25
-
26
- - mergeInstance accept Identifiable class instead of AbstractModel
27
-
28
- #### 3.1.14:
29
-
30
- - using deepMerge for mergeInstances
31
-
32
- #### 3.1.13:
33
-
34
- - send & handle socket READY message
35
- - update Translator
36
- - fix socket terminated not calling disconnection handler error
37
- - fix typo in socket config
38
-
39
- #### 3.1.5:
40
-
41
- - add get pingpong info
42
- - fix resolve header promise in api client
43
- - add IWebsocket onclose error handler
44
- - fix rejoin channel when socket disconnect un-intentionally
45
- - fix join channel when socket is not available
46
- - refactor client socket & socket manager
47
-
48
- #### 3.0.17:
49
-
50
- - AxiosApiClient -> RefreshHttpClient
51
- - Add DefaultHttpClient (axios)
52
-
53
- #### 3.0.16:
54
-
55
- - fix AbstractHttpClient header case-sensitive issue
56
-
57
- #### 3.0.14:
58
-
59
- - fix catch issue when cannot refresh token
60
-
61
- #### 3.0.13:
62
-
63
- - fix mergeInstance
64
-
65
- #### 3.0.12:
66
-
67
- - add default storage key for token manager
68
-
69
- #### 3.0.11:
70
-
71
- - fix AbstractHttpClient refresh token
72
-
73
- #### 3.0.10:
74
-
75
- - fix export
76
- - fix CrudApi
77
-
78
- #### 3.0.7:
79
-
80
- - add DefaultTokenManager
81
- - add CrudApi
82
-
83
- #### 3.0.6: update url info
84
-
85
- - add hash
86
- - update view middware: from is nullable
87
-
88
- #### 3.0.4: update translation
89
-
90
- - Translator is now in charge of mapping translation (getTranslationObject)
91
- - translation template supports function expression
92
- - translator has language update subscribers registry
93
-
94
- #### 3.0.0
95
-
96
- - update claire core 3.0
97
- - remove AbstractRouter
98
-
99
- #### 2.2.5
100
-
101
- - update core, remove crud router
102
-
103
- #### 2.2.4
104
-
105
- - use socket provider for DefaultClientSocketManager instead of native WebSocket
106
-
107
- #### 2.2.1
108
-
109
- - revert to WebSocket implementation (because API gateway only support native websocket)
110
-
111
- #### 2.1.24
112
-
113
- - downgrade webpack
114
-
115
- #### 2.1.23
116
-
117
- - fix socket not reconnect due to refresh token was obtained after socket was closed
118
-
119
- #### 2.1.22
120
-
121
- - remove socket manager initial connect
122
-
123
- #### 2.1.21
124
-
125
- - add type support for api provider
126
-
127
- #### 2.1.19
128
-
129
- - forceReconnect when cannot get access token
130
-
131
- #### 2.1.18
132
-
133
- - update claire core 2.1.2
134
- - fix not connect with undefined access token
135
- - add forceDisconnect to AbstractClientSocketManager
136
-
137
- #### 2.1.17
138
-
139
- - fix socket connect not processing success result
140
-
141
- #### 2.1.16
142
-
143
- - update claire core
144
-
145
- #### 2.1.13
146
-
147
- - remove encodeURI as socket data
148
-
149
- #### 2.1.11
150
-
151
- - client socket to send encodedURI as data
152
-
153
- #### 2.1.9
154
-
155
- - use rxJs to implement client socket logic
156
-
157
- #### 2.0.24:
158
-
159
- - remove test token manager
160
- - fix forceSocket reconnect
161
-
162
- #### 2.0.12:
163
-
164
- - add test token manager
165
-
166
- #### 2.0.10:
167
-
168
- - add AbstractTokenManager, refresh token mechanism for http and socket
169
-
170
- #### 2.0.7:
171
-
172
- - update claire core
173
-
174
- #### 2.0.6:
175
-
176
- - use DI for view middleware in router config
177
- - update peer dependencies
178
- - update abstract view middleware signature
179
-
180
- #### 2.0.2:
181
-
182
- - use Claire Core 2.0
183
- - add log to Axios api client
184
-
185
- #### 1.6.55:
186
-
187
- - add socket keep alive ping/pong
188
-
189
- #### 1.6.50:
190
-
191
- - fix build script
192
- - update clairejs/core
193
-
194
- #### 1.6.48 (Breaking change):
195
-
196
- - add socket multiplex
197
-
198
- #### 1.6.28:
199
-
200
- - fix disconnection event not called when socket disconnect
201
-
202
- #### 1.6.25:
203
-
204
- - split logic of translation into LocaleTranslator
205
-
206
- #### 1.6.24:
207
-
208
- - add ClientSocket unsubscriber function as return result of onXXX listeners
209
-
210
- #### 1.6.23:
211
-
212
- - add getAllSockets in SocketProvider
213
- - fix socket provider not remove disconnected sockets
214
- - add ClientSocket.isReconnecting
215
-
216
- #### 1.6.17:
217
-
218
- - fix socket getAuthId => getAuthInfo
219
-
220
- #### 1.6.16:
221
-
222
- - add socket provider to claire client
223
-
224
- #### 1.6.14:
225
-
226
- - fix client socket multiple handlers
227
-
228
- #### 1.6.12:
229
-
230
- - add ClientSocket and SocketProvider
231
-
232
- #### 1.6.11:
233
-
234
- - ClientSocket logger optional
235
-
236
- #### 1.6.10:
237
-
238
- - ClientSocket connection retry
239
-
240
- #### 1.6.7:
241
-
242
- - fix ClientSocket
243
-
244
- #### 1.6.5:
245
-
246
- - export and fix ClientSocket
247
-
248
- #### 1.6.3:
249
-
250
- - detach vue code into separate package
251
- - add nodeExternals
252
-
253
- #### 1.6.0:
254
-
255
- - revert back to 1.4.16
256
-
257
- #### 1.4.16:
258
-
259
- - update claire core
260
-
261
- #### 1.4.15:
262
-
263
- - export protected convertQueryObjectToString
264
-
265
- #### 1.4.14:
266
-
267
- - remove unused styling
268
-
269
- #### 1.4.13:
270
-
271
- - update VuexCrudModule merge create model instance
272
-
273
- #### 1.4.12:
274
-
275
- - vuexCrudModule default sort by id
276
-
277
- #### 1.4.11:
278
-
279
- - fix crud logic populate server value field
280
-
281
- #### 1.4.10:
282
-
283
- - update claire core
284
- - update crud logic
285
-
286
- #### 1.4.9:
287
-
288
- - reset editItem in CrudLogic
289
-
290
- #### 1.4.8:
291
-
292
- - fix reading data from undefined response in AxiosApiProvider
293
-
294
- #### 1.4.6:
295
-
296
- - remove redudant AbstractErrorHandler
297
-
298
- #### 1.4.5:
299
-
300
- - introduce CrudLogic and scss
301
-
302
- #### 1.4.4:
303
-
304
- - fix VuexCrudModule.decache async return
305
- - return removed instances from VuexCrudModule.decache
306
-
307
- #### 1.4.2:
308
-
309
- - adjust AbstractCrudRouter
310
-
311
- #### 1.4.1:
312
-
313
- - update claire core
314
- - public mutation method in VuexCrudModule
315
-
316
- #### 1.4.0:
317
-
318
- - move VuexCrudModule and VueCrudRouter into
319
- - add getModule into VueHandler
320
-
321
- #### 1.3.29:
322
-
323
- - update navigation with validated query
324
-
325
- #### 1.3.27:
326
-
327
- - update claire core
328
-
329
- #### 1.3.26:
330
-
331
- - renove onHandleChange listener of VueHandler, use @Watch("\$route") on component instead
332
-
333
- #### 1.3.25:
334
-
335
- - fix VueHandler url change listener callback from beforeEach to afterEach
336
-
337
- #### 1.3.24:
338
-
339
- - inject error handler in VueHandler
340
-
341
- #### 1.3.23:
342
-
343
- - rename App to Navigator
344
-
345
- #### 1.3.20:
346
-
347
- - add vuex-class-modules
348
-
349
- #### 1.3.19:
350
-
351
- - update ViewHandler getUrlInfo
352
- - allow ViewHandler navigate relative
353
- - force update vue instance after change language
354
-
355
- #### 1.3.18:
356
-
357
- - fix language init
358
-
359
- #### 1.3.17:
360
-
361
- - add getCurrentLanguage to VueHandler
362
-
363
- #### 1.3.15 (Breaking change):
364
-
365
- - adjust RouterConfig
366
-
367
- #### 1.3.11:
368
-
369
- - fix named components in RouterConfig
370
-
371
- #### 1.3.8:
372
-
373
- - add named components to RouterConfig
374
- - add components property to RouterConfig
375
-
376
- #### 1.3.7 (Breaking change):
377
-
378
- - remove middleware from AbstractRouter
379
-
380
- #### 1.3.6:
381
-
382
- - update RouterConfig to have nested config
383
-
384
- #### 1.3.5:
385
-
386
- - upgrade clairejs core
387
-
388
- #### 1.3.4:
389
-
390
- - update VueHandler config options, remove @Router decorator
391
-
392
- #### 1.3.1:
393
-
394
- - new history, use vue-cli-service library build
395
-
396
- #### 1.2.9:
397
-
398
- - removal of rootComponentClass
399
- - fix optimizeSSR: false
400
- - add Crud views
401
-
402
- #### 1.2.5 (Breaking change):
403
-
404
- - AbstractRouter getRoutes() type change
405
-
406
- #### 1.2.4:
407
-
408
- - improve client builder
409
-
410
- #### 1.2.1:
411
-
412
- - adapt rework of claire core
413
-
414
- #### 1.1.8:
415
-
416
- - fix nested translation
417
-
418
- #### 1.1.3:
419
-
420
- - update VuexCrudModule
421
- - use listener in AbstractViewHandler for url change event
422
-
423
- #### 1.1.0:
424
-
425
- - use template for translation
426
-
427
- #### 1.0.13:
428
-
429
- - set build target es6
430
- - remove vue-i18n
431
-
432
- #### 1.0.12:
433
-
434
- - introduce bootstrap
435
-
436
- #### 1.0.11:
437
-
438
- - allow module injection inside module
439
-
440
- #### 1.0.8:
441
-
442
- - update AbstractViewHandler forward with UrlInfo
443
-
444
- #### 1.0.5:
445
-
446
- - add getUrlInfo in AbstractViewHandler
447
-
448
- #### 1.0.4:
449
-
450
- - remove scss and default App.vue
451
-
452
- #### 1.0.3:
453
-
454
- - update translation resolver
1
+ ## Change Log
2
+
3
+ #### 3.2.5:
4
+
5
+ - improve mergeInstances to be aware of @HasMany
6
+
7
+ #### 3.2.4:
8
+
9
+ - fix RefreshHttpClient bug in getting refresh token condition
10
+
11
+ #### 3.2.3:
12
+
13
+ - fix translate undefined/null/empty template
14
+ - update Translator.translate to return string instead of promise
15
+ - fix translation loading translation pending promises
16
+ - implement new Translator
17
+
18
+ #### 3.1.26:
19
+
20
+ - fix DefaultHttpClient retry
21
+ - add retry config in RefreshHttpClient
22
+ - fix stringifyQueries not encode URI
23
+ - add withCredentials option to abstract request
24
+
25
+ #### 3.1.22:
26
+
27
+ - fix DefaultHttpClient: add delay before retry
28
+ - fix stringifyQueries
29
+ - add cache and reset cache ability to DefaultHttpClient
30
+ - fix HttpClient, allow get with cache, allow retry when get 503 error
31
+
32
+ #### 3.1.15:
33
+
34
+ - mergeInstance accept Identifiable class instead of AbstractModel
35
+
36
+ #### 3.1.14:
37
+
38
+ - using deepMerge for mergeInstances
39
+
40
+ #### 3.1.13:
41
+
42
+ - send & handle socket READY message
43
+ - update Translator
44
+ - fix socket terminated not calling disconnection handler error
45
+ - fix typo in socket config
46
+
47
+ #### 3.1.5:
48
+
49
+ - add get pingpong info
50
+ - fix resolve header promise in api client
51
+ - add IWebsocket onclose error handler
52
+ - fix rejoin channel when socket disconnect un-intentionally
53
+ - fix join channel when socket is not available
54
+ - refactor client socket & socket manager
55
+
56
+ #### 3.0.17:
57
+
58
+ - AxiosApiClient -> RefreshHttpClient
59
+ - Add DefaultHttpClient (axios)
60
+
61
+ #### 3.0.16:
62
+
63
+ - fix AbstractHttpClient header case-sensitive issue
64
+
65
+ #### 3.0.14:
66
+
67
+ - fix catch issue when cannot refresh token
68
+
69
+ #### 3.0.13:
70
+
71
+ - fix mergeInstance
72
+
73
+ #### 3.0.12:
74
+
75
+ - add default storage key for token manager
76
+
77
+ #### 3.0.11:
78
+
79
+ - fix AbstractHttpClient refresh token
80
+
81
+ #### 3.0.10:
82
+
83
+ - fix export
84
+ - fix CrudApi
85
+
86
+ #### 3.0.7:
87
+
88
+ - add DefaultTokenManager
89
+ - add CrudApi
90
+
91
+ #### 3.0.6: update url info
92
+
93
+ - add hash
94
+ - update view middware: from is nullable
95
+
96
+ #### 3.0.4: update translation
97
+
98
+ - Translator is now in charge of mapping translation (getTranslationObject)
99
+ - translation template supports function expression
100
+ - translator has language update subscribers registry
101
+
102
+ #### 3.0.0
103
+
104
+ - update claire core 3.0
105
+ - remove AbstractRouter
106
+
107
+ #### 2.2.5
108
+
109
+ - update core, remove crud router
110
+
111
+ #### 2.2.4
112
+
113
+ - use socket provider for DefaultClientSocketManager instead of native WebSocket
114
+
115
+ #### 2.2.1
116
+
117
+ - revert to WebSocket implementation (because API gateway only support native websocket)
118
+
119
+ #### 2.1.24
120
+
121
+ - downgrade webpack
122
+
123
+ #### 2.1.23
124
+
125
+ - fix socket not reconnect due to refresh token was obtained after socket was closed
126
+
127
+ #### 2.1.22
128
+
129
+ - remove socket manager initial connect
130
+
131
+ #### 2.1.21
132
+
133
+ - add type support for api provider
134
+
135
+ #### 2.1.19
136
+
137
+ - forceReconnect when cannot get access token
138
+
139
+ #### 2.1.18
140
+
141
+ - update claire core 2.1.2
142
+ - fix not connect with undefined access token
143
+ - add forceDisconnect to AbstractClientSocketManager
144
+
145
+ #### 2.1.17
146
+
147
+ - fix socket connect not processing success result
148
+
149
+ #### 2.1.16
150
+
151
+ - update claire core
152
+
153
+ #### 2.1.13
154
+
155
+ - remove encodeURI as socket data
156
+
157
+ #### 2.1.11
158
+
159
+ - client socket to send encodedURI as data
160
+
161
+ #### 2.1.9
162
+
163
+ - use rxJs to implement client socket logic
164
+
165
+ #### 2.0.24:
166
+
167
+ - remove test token manager
168
+ - fix forceSocket reconnect
169
+
170
+ #### 2.0.12:
171
+
172
+ - add test token manager
173
+
174
+ #### 2.0.10:
175
+
176
+ - add AbstractTokenManager, refresh token mechanism for http and socket
177
+
178
+ #### 2.0.7:
179
+
180
+ - update claire core
181
+
182
+ #### 2.0.6:
183
+
184
+ - use DI for view middleware in router config
185
+ - update peer dependencies
186
+ - update abstract view middleware signature
187
+
188
+ #### 2.0.2:
189
+
190
+ - use Claire Core 2.0
191
+ - add log to Axios api client
192
+
193
+ #### 1.6.55:
194
+
195
+ - add socket keep alive ping/pong
196
+
197
+ #### 1.6.50:
198
+
199
+ - fix build script
200
+ - update clairejs/core
201
+
202
+ #### 1.6.48 (Breaking change):
203
+
204
+ - add socket multiplex
205
+
206
+ #### 1.6.28:
207
+
208
+ - fix disconnection event not called when socket disconnect
209
+
210
+ #### 1.6.25:
211
+
212
+ - split logic of translation into LocaleTranslator
213
+
214
+ #### 1.6.24:
215
+
216
+ - add ClientSocket unsubscriber function as return result of onXXX listeners
217
+
218
+ #### 1.6.23:
219
+
220
+ - add getAllSockets in SocketProvider
221
+ - fix socket provider not remove disconnected sockets
222
+ - add ClientSocket.isReconnecting
223
+
224
+ #### 1.6.17:
225
+
226
+ - fix socket getAuthId => getAuthInfo
227
+
228
+ #### 1.6.16:
229
+
230
+ - add socket provider to claire client
231
+
232
+ #### 1.6.14:
233
+
234
+ - fix client socket multiple handlers
235
+
236
+ #### 1.6.12:
237
+
238
+ - add ClientSocket and SocketProvider
239
+
240
+ #### 1.6.11:
241
+
242
+ - ClientSocket logger optional
243
+
244
+ #### 1.6.10:
245
+
246
+ - ClientSocket connection retry
247
+
248
+ #### 1.6.7:
249
+
250
+ - fix ClientSocket
251
+
252
+ #### 1.6.5:
253
+
254
+ - export and fix ClientSocket
255
+
256
+ #### 1.6.3:
257
+
258
+ - detach vue code into separate package
259
+ - add nodeExternals
260
+
261
+ #### 1.6.0:
262
+
263
+ - revert back to 1.4.16
264
+
265
+ #### 1.4.16:
266
+
267
+ - update claire core
268
+
269
+ #### 1.4.15:
270
+
271
+ - export protected convertQueryObjectToString
272
+
273
+ #### 1.4.14:
274
+
275
+ - remove unused styling
276
+
277
+ #### 1.4.13:
278
+
279
+ - update VuexCrudModule merge create model instance
280
+
281
+ #### 1.4.12:
282
+
283
+ - vuexCrudModule default sort by id
284
+
285
+ #### 1.4.11:
286
+
287
+ - fix crud logic populate server value field
288
+
289
+ #### 1.4.10:
290
+
291
+ - update claire core
292
+ - update crud logic
293
+
294
+ #### 1.4.9:
295
+
296
+ - reset editItem in CrudLogic
297
+
298
+ #### 1.4.8:
299
+
300
+ - fix reading data from undefined response in AxiosApiProvider
301
+
302
+ #### 1.4.6:
303
+
304
+ - remove redudant AbstractErrorHandler
305
+
306
+ #### 1.4.5:
307
+
308
+ - introduce CrudLogic and scss
309
+
310
+ #### 1.4.4:
311
+
312
+ - fix VuexCrudModule.decache async return
313
+ - return removed instances from VuexCrudModule.decache
314
+
315
+ #### 1.4.2:
316
+
317
+ - adjust AbstractCrudRouter
318
+
319
+ #### 1.4.1:
320
+
321
+ - update claire core
322
+ - public mutation method in VuexCrudModule
323
+
324
+ #### 1.4.0:
325
+
326
+ - move VuexCrudModule and VueCrudRouter into
327
+ - add getModule into VueHandler
328
+
329
+ #### 1.3.29:
330
+
331
+ - update navigation with validated query
332
+
333
+ #### 1.3.27:
334
+
335
+ - update claire core
336
+
337
+ #### 1.3.26:
338
+
339
+ - renove onHandleChange listener of VueHandler, use @Watch("\$route") on component instead
340
+
341
+ #### 1.3.25:
342
+
343
+ - fix VueHandler url change listener callback from beforeEach to afterEach
344
+
345
+ #### 1.3.24:
346
+
347
+ - inject error handler in VueHandler
348
+
349
+ #### 1.3.23:
350
+
351
+ - rename App to Navigator
352
+
353
+ #### 1.3.20:
354
+
355
+ - add vuex-class-modules
356
+
357
+ #### 1.3.19:
358
+
359
+ - update ViewHandler getUrlInfo
360
+ - allow ViewHandler navigate relative
361
+ - force update vue instance after change language
362
+
363
+ #### 1.3.18:
364
+
365
+ - fix language init
366
+
367
+ #### 1.3.17:
368
+
369
+ - add getCurrentLanguage to VueHandler
370
+
371
+ #### 1.3.15 (Breaking change):
372
+
373
+ - adjust RouterConfig
374
+
375
+ #### 1.3.11:
376
+
377
+ - fix named components in RouterConfig
378
+
379
+ #### 1.3.8:
380
+
381
+ - add named components to RouterConfig
382
+ - add components property to RouterConfig
383
+
384
+ #### 1.3.7 (Breaking change):
385
+
386
+ - remove middleware from AbstractRouter
387
+
388
+ #### 1.3.6:
389
+
390
+ - update RouterConfig to have nested config
391
+
392
+ #### 1.3.5:
393
+
394
+ - upgrade clairejs core
395
+
396
+ #### 1.3.4:
397
+
398
+ - update VueHandler config options, remove @Router decorator
399
+
400
+ #### 1.3.1:
401
+
402
+ - new history, use vue-cli-service library build
403
+
404
+ #### 1.2.9:
405
+
406
+ - removal of rootComponentClass
407
+ - fix optimizeSSR: false
408
+ - add Crud views
409
+
410
+ #### 1.2.5 (Breaking change):
411
+
412
+ - AbstractRouter getRoutes() type change
413
+
414
+ #### 1.2.4:
415
+
416
+ - improve client builder
417
+
418
+ #### 1.2.1:
419
+
420
+ - adapt rework of claire core
421
+
422
+ #### 1.1.8:
423
+
424
+ - fix nested translation
425
+
426
+ #### 1.1.3:
427
+
428
+ - update VuexCrudModule
429
+ - use listener in AbstractViewHandler for url change event
430
+
431
+ #### 1.1.0:
432
+
433
+ - use template for translation
434
+
435
+ #### 1.0.13:
436
+
437
+ - set build target es6
438
+ - remove vue-i18n
439
+
440
+ #### 1.0.12:
441
+
442
+ - introduce bootstrap
443
+
444
+ #### 1.0.11:
445
+
446
+ - allow module injection inside module
447
+
448
+ #### 1.0.8:
449
+
450
+ - update AbstractViewHandler forward with UrlInfo
451
+
452
+ #### 1.0.5:
453
+
454
+ - add getUrlInfo in AbstractViewHandler
455
+
456
+ #### 1.0.4:
457
+
458
+ - remove scss and default App.vue
459
+
460
+ #### 1.0.3:
461
+
462
+ - update translation resolver