All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
- Kafka config response key change in api.
- Bugfix in process webhook
- Use api.fynd.com as default cluster domain for webhooks.
SQLiteStorage
storage class added for storing extension session data in SQLite database.
- Handle refresh token not working for token which has expiry as
null
. - Added support for passing
redirect_path
as a query paramater to the launch url of the extension.
- Exported
apiRoutes
asplatformApiRoutes
. TheapiRoutes
export will be deprecated in the next major release. - Optimized webhook subscription by reducing unnecessary API calls.
- Fixed a variable reassignment bug
- Added Support for kafka based webhook event
v0.7.0 - 2024-02-02
- Added
partnerApiRoutes
to support launching of extension admin panel insie the partners panel. - Added
PartnerClient
which can be used for calling partners server API - Added support of passing log level
debug
to SDK fromsetupFDK
debug true. This enables curl printing of API calls made from SDK.
v0.6.0 - 2024-01-09
- Added retry mechanism for APIs getting used inside extension library if Fynd Platform server is down.
v0.5.4 - 2023-03-03
- Fixed
syncEvents
for webhooks not working as expected in case ofsubscribe_on_install
is set astrue
in config passed tosetupFdk
function.
v0.5.3 - 2023-01-02
- Fixed
disableSalesChannelWebhook
function not working due to variable assignment issue on JS side.
v0.5.2 - 2022-09-29
- Fixed TTL not getting set for
online
mode access token set for extension users. It caused redis to fill-in with non-expiring keys since all users who launches extension, a new session key is generated and stored without TTL due to this bug.
v0.5.1 - 2022-06-16
- Added support to auto install extensions feature. Now selected auto install extensions will be installed for company. It will generate access token for offline mode and register webhook subscribers for company it is getting auto installed.
- With introduction of auto install feature, any handling done on extension installation or first launch event on
auth
callback should be done here as well. Since auto install event will install extension in background on company creation. Andauth
callback is only triggered when extension is launched.
v0.5.0 - 2022-05-24
- Fetching and verifying extension details using
api_key
andapi_secret
on server/consumer start. Given invalid extension api_key and api_secret, it will throw error. Same will be done ifscopes
are included which are not registered on Fynd Partners panel. - Added webhook event name validation. Now each webhook event details mentioned in
webhook_config
will be validated on server/consumer start. It will throw error in case of invalid event name passed.
- Added support for generating different tokens for
online
andoffline
access mode for fetching proper user details in extension launch on platform panel and background task handling - setupFdk config parameters
base_url
andscopes
in Extension config details are optional - Now passing event category with event name and type is compulsory in
webhook_config
dictionary. Refer examples and README.md - Fixed unnecessary token issue due to bug on renew access token. Fixes also includes changes in
fdk-client-javascript
. Refer "peer-dependency" for required minimum version upgrade.
v0.4.0 - 2022-02-22
- Support for the webhook event category
- Support for the webhook event versioning
- complete changelog
v0.3.0 - 2021-11-22
- Webhook subscription support. Now webhooks can be subscribed via this library only
- Automatic webhook config sync on extension launch for a company
- Support for listening webhooks for specific saleschannels of any company
- support for enabling debug logs
- Readme documentation for various function usage and config properties
v0.3.0-beta.2 - 2021-10-28
- Webhook subscription support with auto event subscription on install for all saleschannels
- Fixed webhook config sync issues for Fynd Platform side
- Examples for event subscription of specific saleschannels
v0.3.0-beta.1 - 2021-08-24
- Initial support for subscribing to webhook events
- Documentation on how to use this library with various use cases
v0.2.3 - 2021-08-24
- Application-level Extension launch support.
v0.2.2 - 2021-08-05
- Multi-tab extension launch support
v0.2.1 - 2021-06-03
- Fix for uninstalling key delete
- Handling of access token validity expire
- Handling of existing Redis session key cross checking with apikey key
- Breaks for previous versions
v0.2 - 2021-05-26
- Extension api_key, secret using Partner panel flow
v0.1-alpha - 2021-05-26
- Initial draft of extension creation library