@clairejs/client 3.1.24 → 3.1.25

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