@clairejs/client 3.2.2 → 3.2.4

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