@clairejs/client 3.1.23 → 3.1.24

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