@clairejs/client 3.1.12 → 3.1.15

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