@clairejs/client 3.1.13 → 3.1.16

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