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