@clairejs/client
TypeScript icon, indicating that this package has built-in type declarations

3.4.5 • Public • Published

Change Log

3.4.5:

  • fix Translator awaitingTranslations

3.4.4:

  • update claire core
  • fix mergeInstances not merge null
  • fix http client cache headers
  • update claire core
  • apply LogHandler to some implementations

3.3.3:

  • update claire core
  • export getAPI utils
  • remove webpack, change module to esm

3.2.33:

  • fix return type of updateRecords
  • add updateRecords in crud api

3.2.29:

  • update claire core

3.2.28:

  • fix refresh http client wait for refresh token

3.2.27:

  • fix error handle in http clients

3.2.26:

  • add cache ability to DefaultHttpClient (for use in non-browser env)

3.2.25:

  • new implementation of http clients

3.2.23:

  • simple implementation of RefreshHttpClient error handler without recursion

3.2.22:

  • AbstractHttpClient operations return undefined in case error handler intercepted

3.2.21:

  • fix refresh http client clear access token before refreshing
  • fix refresh http client infinite loop
  • pump axios version

3.2.19:

  • fix http client get method

3.2.18:

  • update claire core with new Errors
  • refactor HttpClient

3.2.17:

  • update claire core
  • fix mergeInstance type issue Partial -> DeepPartial

3.2.16:

  • move reset cache to AbstractHttpClient

3.2.15:

  • remove ws
  • remove rxjs
  • update core, fix returning in update many

3.2.12:

  • update core package, adapt abstract model id field data type change

3.2.11:

  • update core package
  • improve mergeInstances to be aware of @HasMany

3.2.4:

  • fix RefreshHttpClient bug in getting refresh token condition

3.2.3:

  • fix translate undefined/null/empty template
  • update Translator.translate to return string instead of promise
  • fix translation loading translation pending promises
  • implement new Translator

3.1.26:

  • fix DefaultHttpClient retry
  • add retry config in RefreshHttpClient
  • fix stringifyQueries not encode URI
  • add withCredentials option to abstract request

3.1.22:

  • fix DefaultHttpClient: add delay before retry
  • fix stringifyQueries
  • add cache and reset cache ability to DefaultHttpClient
  • fix HttpClient, allow get with cache, allow retry when get 503 error

3.1.15:

  • mergeInstance accept Identifiable class instead of AbstractModel

3.1.14:

  • using deepMerge for mergeInstances

3.1.13:

  • send & handle socket READY message
  • update Translator
  • fix socket terminated not calling disconnection handler error
  • fix typo in socket config

3.1.5:

  • add get pingpong info
  • fix resolve header promise in api client
  • add IWebsocket onclose error handler
  • fix rejoin channel when socket disconnect un-intentionally
  • fix join channel when socket is not available
  • refactor client socket & socket manager

3.0.17:

  • AxiosApiClient -> RefreshHttpClient
  • Add DefaultHttpClient (axios)

3.0.16:

  • fix AbstractHttpClient header case-sensitive issue

3.0.14:

  • fix catch issue when cannot refresh token

3.0.13:

  • fix mergeInstance

3.0.12:

  • add default storage key for token manager

3.0.11:

  • fix AbstractHttpClient refresh token

3.0.10:

  • fix export
  • fix CrudApi

3.0.7:

  • add DefaultTokenManager
  • add CrudApi

3.0.6: update url info

  • add hash
  • update view middware: from is nullable

3.0.4: update translation

  • Translator is now in charge of mapping translation (getTranslationObject)
  • translation template supports function expression
  • translator has language update subscribers registry

3.0.0

  • update claire core 3.0
  • remove AbstractRouter

2.2.5

  • update core, remove crud router

2.2.4

  • use socket provider for DefaultClientSocketManager instead of native WebSocket

2.2.1

  • revert to WebSocket implementation (because API gateway only support native websocket)

2.1.24

  • downgrade webpack

2.1.23

  • fix socket not reconnect due to refresh token was obtained after socket was closed

2.1.22

  • remove socket manager initial connect

2.1.21

  • add type support for api provider

2.1.19

  • forceReconnect when cannot get access token

2.1.18

  • update claire core 2.1.2
  • fix not connect with undefined access token
  • add forceDisconnect to AbstractClientSocketManager

2.1.17

  • fix socket connect not processing success result

2.1.16

  • update claire core

2.1.13

  • remove encodeURI as socket data

2.1.11

  • client socket to send encodedURI as data

2.1.9

  • use rxJs to implement client socket logic

2.0.24:

  • remove test token manager
  • fix forceSocket reconnect

2.0.12:

  • add test token manager

2.0.10:

  • add AbstractTokenManager, refresh token mechanism for http and socket

2.0.7:

  • update claire core

2.0.6:

  • use DI for view middleware in router config
  • update peer dependencies
  • update abstract view middleware signature

2.0.2:

  • use Claire Core 2.0
  • add log to Axios api client

1.6.55:

  • add socket keep alive ping/pong

1.6.50:

  • fix build script
  • update clairejs/core

1.6.48 (Breaking change):

  • add socket multiplex

1.6.28:

  • fix disconnection event not called when socket disconnect

1.6.25:

  • split logic of translation into LocaleTranslator

1.6.24:

  • add ClientSocket unsubscriber function as return result of onXXX listeners

1.6.23:

  • add getAllSockets in SocketProvider
  • fix socket provider not remove disconnected sockets
  • add ClientSocket.isReconnecting

1.6.17:

  • fix socket getAuthId => getAuthInfo

1.6.16:

  • add socket provider to claire client

1.6.14:

  • fix client socket multiple handlers

1.6.12:

  • add ClientSocket and SocketProvider

1.6.11:

  • ClientSocket logger optional

1.6.10:

  • ClientSocket connection retry

1.6.7:

  • fix ClientSocket

1.6.5:

  • export and fix ClientSocket

1.6.3:

  • detach vue code into separate package
  • add nodeExternals

1.6.0:

  • revert back to 1.4.16

1.4.16:

  • update claire core

1.4.15:

  • export protected convertQueryObjectToString

1.4.14:

  • remove unused styling

1.4.13:

  • update VuexCrudModule merge create model instance

1.4.12:

  • vuexCrudModule default sort by id

1.4.11:

  • fix crud logic populate server value field

1.4.10:

  • update claire core
  • update crud logic

1.4.9:

  • reset editItem in CrudLogic

1.4.8:

  • fix reading data from undefined response in AxiosApiProvider

1.4.6:

  • remove redudant AbstractErrorHandler

1.4.5:

  • introduce CrudLogic and scss

1.4.4:

  • fix VuexCrudModule.decache async return
  • return removed instances from VuexCrudModule.decache

1.4.2:

  • adjust AbstractCrudRouter

1.4.1:

  • update claire core
  • public mutation method in VuexCrudModule

1.4.0:

  • move VuexCrudModule and VueCrudRouter into
  • add getModule into VueHandler

1.3.29:

  • update navigation with validated query

1.3.27:

  • update claire core

1.3.26:

  • renove onHandleChange listener of VueHandler, use @Watch("$route") on component instead

1.3.25:

  • fix VueHandler url change listener callback from beforeEach to afterEach

1.3.24:

  • inject error handler in VueHandler

1.3.23:

  • rename App to Navigator

1.3.20:

  • add vuex-class-modules

1.3.19:

  • update ViewHandler getUrlInfo
  • allow ViewHandler navigate relative
  • force update vue instance after change language

1.3.18:

  • fix language init

1.3.17:

  • add getCurrentLanguage to VueHandler

1.3.15 (Breaking change):

  • adjust RouterConfig

1.3.11:

  • fix named components in RouterConfig

1.3.8:

  • add named components to RouterConfig
  • add components property to RouterConfig

1.3.7 (Breaking change):

  • remove middleware from AbstractRouter

1.3.6:

  • update RouterConfig to have nested config

1.3.5:

  • upgrade clairejs core

1.3.4:

  • update VueHandler config options, remove @Router decorator

1.3.1:

  • new history, use vue-cli-service library build

1.2.9:

  • removal of rootComponentClass
  • fix optimizeSSR: false
  • add Crud views

1.2.5 (Breaking change):

  • AbstractRouter getRoutes() type change

1.2.4:

  • improve client builder

1.2.1:

  • adapt rework of claire core

1.1.8:

  • fix nested translation

1.1.3:

  • update VuexCrudModule
  • use listener in AbstractViewHandler for url change event

1.1.0:

  • use template for translation

1.0.13:

  • set build target es6
  • remove vue-i18n

1.0.12:

  • introduce bootstrap

1.0.11:

  • allow module injection inside module

1.0.8:

  • update AbstractViewHandler forward with UrlInfo

1.0.5:

  • add getUrlInfo in AbstractViewHandler

1.0.4:

  • remove scss and default App.vue

1.0.3:

  • update translation resolver

Readme

Keywords

none

Package Sidebar

Install

npm i @clairejs/client

Weekly Downloads

191

Version

3.4.5

License

none

Unpacked Size

58.7 kB

Total Files

50

Last publish

Collaborators

  • athongintel