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