@clairejs/client 3.1.24 → 3.1.26

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,445 +1,447 @@
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
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