@clairejs/client 3.1.11 → 3.1.14

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