@clairejs/client 3.1.4 → 3.1.7

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