@clairejs/client 3.0.16 → 3.0.17

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