@clairejs/client 3.1.20 → 3.1.21

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