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