@clairejs/client 3.1.26 → 3.2.1

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