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.
- BREAKING: Minimum Node.js version increased to v18.0
- BREAKING: Removed
node-fetchdependency in favor of nativefetchAPI - Eliminates punycode deprecation warnings
- Now uses Node.js native fetch (available in Node 18+)
- Updated
nockto v14 for better native fetch support in tests - Added
@types/nodev18 as dev dependency
If you're using Node.js v18 or later, no code changes are required. Simply update the package version. If you're using an older version of Node.js (10-16), you'll need to upgrade to Node.js 18+ before updating to v5.0.0.
4.1.0 - 2023-09-11
- Switches from using request and request-promise-native libraries, to the node-fetch library
- Updates minimum Node version to 10
4.0.1 - 2022-02-09
- Patch vulnerability in json-schema dependency
- Patch vulnerabilities in Mocha and ESLint developer dependencies
4.0.0 - 2021-08-10
- Update dependencies to patch vulnerabilities
- Fix test suite to work using TaxJar production API token
3.2.2 - 2021-02-18
- Fix NPM release build for v3.2.1 changes
3.2.1 - 2021-02-17
- Fix
jurisdictiontype inTaxForOrderResinterface - Export all param interfaces
3.2.0 - 2020-03-25
- Include custom user agent for debugging and informational purposes
- Patch vulnerabilities in minimist and acorn developer dependencies
3.1.2 - 2020-01-15
- Patch vulnerability in lodash dependency
3.1.1 - 2020-01-08
- Fix issue where non-TaxJar error details were being masked
3.1.0 - 2019-11-14
- New
Taxjar.Errortype supports use withinstanceof - Add
nameproperty toTaxjar.Error/TaxjarError - Remove union return types from each method
3.0.0 - 2019-11-08
- Add specific return types to all methods (previously
Promise<any>)
2.3.0 - 2019-07-08
- Support
exemption_typeparam for order-level exemptions - Support
providerparam for marketplace exempt transactions - Add types for nested objects (e.g.,
line_items) - Refactor from Bluebird promises to native promises
2.2.2 - 2019-03-12
- Ignore
.DS_Storewhen publishing to NPM
2.2.1 - 2019-03-12
- Correctly mark
exempt_regionsas optional in create/update customer methods
2.2.0 - 2018-11-01
- Support address validation for Plus customers via
validateAddressmethod
2.1.2 - 2018-05-04
- Update dependencies
2.1.1 - 2018-05-03
- Convert each method from synchronous to asynchronous by returning a
Promise - Correctly mark
paramsas optional inratesForLocationandlist*methods
2.1.0 - 2018-05-03
- Support customer exemptions
2.0.1 - 2018-03-22
- Send data in request body for POST and PUT requests
2.0.0 - 2018-03-21
- Require Node.js v4+ for Request dependency
- Sandbox environment support with
apiUrland custom headers - Add further type definitions
1.4.1 - 2016-12-07
- Refactor away from deprecated
Promise.defer()and improve error handling
1.4.0 - 2016-11-08
- Properly reject promise when API returns an error
1.3.0 - 2016-09-20
- Support
v2/nexus/regionsendpoint with newnexusRegionsmethod - Send data in query params for GET requests
1.2.0 - 2016-03-04
- Support VAT validation with new
validatemethod - Add new
summaryRatesmethod for calls tov2/summary_rates
1.1.2 - 2016-01-27
- Send all data to API as JSON
1.1.1 - 2015-08-18
- Default to
content-typeapplication/jsonfor all requests
1.1.0 - 2015-07-23
- Add new methods to support listing, showing, and deleting transactions
- Drop
transactionIdparam fromupdateOrderandupdateRefund
1.0.2 - 2015-07-22
updateOrderandupdateRefundnow send a PUT request to API
1.0.1 - 2015-07-22
- Set
content-typetoapplication/jsonfor methods that send line items
- Initial release