@mornya/restful-libs
Version:
The project of wrapped library for RESTful API processing module.
191 lines (166 loc) • 6.01 kB
Markdown
# Change Log
All notable version changes would be documented in this file.
## 4.0.3
> Minor version updated at 2025.07.03
- Chores: Updated dependencies
- Performance Improvements: Added ESM build options
## 4.0.2
> Patch version released at 2025.03.22
- Chores
- Update dependencies
- Bug Fixes: Corrected the typing error
## 4.0.1
> Patch version released at 2024.10.12
- Chores
- Update dependencies
- Bug Fixes
- 'Window is undefined' error occurs in 'onAuthorize()' method when running on server side
## 4.0.0
> Major version released at 2024.08.12
- Chores
- Update dependencies
- Update document
- Update testcases
- Performance Improvements
- Upgraded `axios` v1.7.x from v0.27.2
- Replaces package `axios-extensions` to `axios-cache-interceptor`
- Removed `isCacheable` option (defaulted to true)
- Bug Fixes
- `restApi` and `restApis` methods did not work according to `axiosInstance` settings
## 3.0.0 ~ 3.0.2
> Major version released at 2023.05.29 ~ 2023.06.06
- Chores
- Update dependencies
- Update document
- Refine codes / Fix typo
- Separate static messages
- New Features: Added local cache technology using LRUCache
- Performance Improvements: Downgrade "chalk" library for use in CommonJS
- Bug Fixes: Missed `Authorization` header in request
## 2.6.2
> Patch version updated at 2023.04.17
- Chores
- Update dependencies
- Update Prettier configure
- Bug Fixes: Arrayed error message
- Performance Improvements: Stringify messages for displaying of Safari's console
## 2.6.1
> Patch version updated at 2023.03.16
- Chores: Update dependencies
- Bug Fixes: When using the `resolveRequestUrl` option, the error of classifying with similar names has been fixed
## 2.6.0
> Minor version updated at 2023.02.21
- Chores
- Update dependencies
- Update document
- Apply code formatting with `prettier`
- New Features
- Added response time notation
- Added `ignoreResponseCallback` option on request
- Performance Improvements
- Response time for Axios request is displayed
- Removed `require` statement in code for ESM
## 2.5.0
> Minor version updated at 2022.12.21
- Chores: Update dependencies
- Performance Improvements: Added a parameter `requestConfig` at `onAuthorize` method
## 2.4.0
> Minor version updated at 2022.04.01
- Chores: Update dependencies
- New Features: Added `truncateLogThreshold` option for reducing log message
## 2.3.4
> Patch version updated at 2022.03.06
- Chores: Update dependencies
- Bug Fixes: Fix abnormal behavior when 401 error occurs for request result
## 2.3.3
> Patch version updated at 2022.02.18
- Chores: Update dependencies
- Deprecated: Removed the `fetcher` method due to deprecation.
## 2.3.1 ~ 2.3.2
> Patch version updated at 2021.11.28
- Chores
- Update dependencies
- Update testcases
- Performance Improvements
- Changed the default generic type of `restApi` and `restApis` methods to `any`
- Changed the mandatory `defaults.headers` option in the defaultConfig of the Axios to be optional
## 2.3.0
> Minor version updated at 2021.04.27
- Chores
- Update document
- Update dependencies
- New Features: Integrated `axios-retry` module for retry on request failure/error
## 2.2.1
> Patch version updated at 2020.10.30
- Chores
- Update document
- Update dependencies
- Performance Improvements: Added the `isCancelled` method for usability
## 2.2.0
> Minor version updated at 2020.10.26
- Chores: Update dependencies
- Performance Improvements: Added the `fetcher` method for SWR
- Bug Fixes
- Missing the first request when multiple requests with `restApis` method
- Remove undefined exposure if `baseURL` exists instead of request `url`
## 2.1.1
> Patch version updated at 2020.10.05
- Bug Fixes: Determine whether there is a `window` object in the `onAuthorize` method (SSR correspond)
## 2.1.0
> Minor version updated at 2020.09.25
- Chores
- Add testcases
- Update dependencies
- New Features
- Added `reset` method to reset axios defaults
- Added `resolveRequestURL` option for using proxy in development
## 2.0.x
> Patch version updated at 2020.07.08
- Chores: Update dependencies
- Bug Fixes
- Fixed missing request header information
- Fixed the message of request cancellation
## 2.0.0
> Minor version released at 2020.04.09
- Chores: Update dependencies
- Performance Improvements
- Using separated `Request Pool` module to manage whole requests
- Code cleanup with strong type checking
- New Features
- Added `requestsThreshold` option to limit the maximum number of concurrent requests
- Added `isCancelDuplicateRequests` option to cancel if there are duplicate requests in the request pool
- Added `restApis` method for concurrently call APIs
## 1.1.1
> Patch version updated at 2020.02.02
- Bug Fixes: Modified not to return null from `restApi` method.
## 1.1.0
> Minor version updated at 2019.11.23
- New Features
- Add `ignoreCancel` request option to allow exceptions for cancel request
## 1.0.0
> Major version released at 2019.11.18
- Chores
- Add testcases
- Rearrange source codes
- Update dependencies
- New Features
- Expose or remove params / data parameter in log information
- Add `isLogFullResponse` option to log the entire response
- Add `isThrowsOnError` option to raise an exception when a response error occured
- Use `axiosStatic.CancelToken` method to cancel all requests
- Removed `cancelRequest` method
- Removed axios-cancel library
- Performance Improvements
- Improved to use all settings defined in `AxiosRequestConfig` interface
- Modify to extend and use existing interfaces such as `AxiosRequestConfig`
## 0.0.x
- Chores
- Modify documents
- Update dependencies
- New Features
- Add redundancy prevention logic on initializing
- Add interfaces and library for request cancel using axios-cancel
- Performance Improvements
- Change the `onInvalidate` method to optional
- Add by default `request.method`
- Enable to add access token headers in common