@clairejs/client 3.1.22 → 3.1.23

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