- Switched from
node-fetch
tocross-fetch
to address an incompatible dependency issue starting in NodeJS 22 [@mlecoq, #67].
- Finland: 24% to 25.5% (1st September 2024) [@brennofaneco, #69].
- Fix broken EU VAT numbers fraud-checks for certain countries, where the official country code does not match the Eurostat country code (eg. Greece) [@intarsz, #64].
- Estonia: 20% to 22% (1st January 2024) [@DanielRaouf, #63].
- Return a
currency
attribute in all sales tax response objects [@mindflowgo, #61].
- Add tax entries for: Bosnia, Ukraine and Eritrea [@mindflowgo, #61].
- Ghana: 12.5% to 15% (1st January 2023) [@valeriansaliou, 5c8f0b1].
- Add TypeScript type definitions [@valeriansaliou, 0f5f245].
- Automate the package release process via GitHub Actions (ie.
npm publish
) [@valeriansaliou, 73b8247].
- Update the
jsvat
offline VAT number format validator to its latest version [@valeriansaliou, 403b38e].
- Fix broken EU VAT numbers fraud-checks due to (once again) changed Europa VAT APIs data schema (from
ec.europa.eu
) [@valeriansaliou, 403b38e].
- New Mexico, United States: 5.125% to 5% [@valeriansaliou, 701781c].
- Botswana: 14% to 12% (1st August 2022 to 1st February 2023) [@valeriansaliou, 701781c].
- Anguilla: 13% GST [@valeriansaliou, 701781c].
- Aruba: 12.5% VAT (1st January 2023) [@valeriansaliou, 701781c].
- Indonesia: 10% to 11% [@valeriansaliou, 701781c].
- Sri Lanka: 12% VAT [@valeriansaliou, 701781c].
- Maldives: 6% to 8% (1st January 2023) [@valeriansaliou, 701781c].
- Singapore: 7% to 8% (1st January 2023) [@valeriansaliou, 701781c].
- Singapore: 8% to 9% (1st January 2024) [@valeriansaliou, 701781c].
- Suriname: 10% to 15% (1st January 2023) [@valeriansaliou, 701781c].
- Uzbekistan: 15% to 12% (1st January 2023) [@valeriansaliou, 701781c].
- Thailand: 7% to 10% (1st September 2023) [@valeriansaliou, 701781c].
- The Bahamas: 7.5% to 12% [@PhilosophicalPsycho, #47].
- Botswana: 12% to 14% [@PhilosophicalPsycho, #47].
- Brazil: 35% to 17% [@PhilosophicalPsycho, #47].
- China: 16% to 13% [@PhilosophicalPsycho, #47].
- Ecuador: 14% to 12% [@PhilosophicalPsycho, #47].
- Kenya: 14% to 16% [@PhilosophicalPsycho, #47].
- Lebanon: 10% to 11% [@PhilosophicalPsycho, #47].
- Nigeria: 5% to 7.5% [@PhilosophicalPsycho, #47].
- Pakistan: 16% to 17% [@PhilosophicalPsycho, #47].
- Puerto Rico: 10.5% to 11.5% [@PhilosophicalPsycho, #47].
- Saint Lucia: 15% to 12.5% [@PhilosophicalPsycho, #47].
- Tunisia: 18% to 19% [@PhilosophicalPsycho, #47].
- Drop support for NodeJS versions that do not support native
Promise
. This should not impact anyone anyway, because thepackage.json
already restricts NodeJS version to"node": ">= 6.4.0"
. All target NodeJS versions therefore have nativePromise
support [@valeriansaliou, 1b7c53e].
- Fix broken EU VAT numbers fraud-checks due to changed Europa VAT APIs data schema (from
ec.europa.eu
) [@valeriansaliou, ec05b71, #45].
- Great Britain: GB VAT numbers are now fraud-checked against HMRC APIs [@valeriansaliou, b8352f8, #40].
- Great Britain: pulled out of the VAT MOSS scheme, as it is not a member of the European Union anymore as of 31st December 2020 [@valeriansaliou, #26].
- Fix an issue where a country sales tax that is cancelled by a negative regional tax would still result in the details object being populated with the exempted country tax (eg. a tax-exempt region in Spain like Gran Canaria), while this details object should have been empty [@lfalck, #36].
- India: VAT has been moved to GST (now 18%) [@valeriansaliou, #31].
- Canada: fix updated tax rates for some states, as calculation errors were introduced in
v2.2.2
due to the GST offset not being taken into account when HST is used [@valeriansaliou, 57b0620].
- Canada: tax rates have been updated for some states [@stephankaag, #32].
- Ireland: 23% to 21% (1st September 2020 to 28th February 2021) [@gierschv].
- Return a detailed view of all sub-tax rates used when calling
getSalesTax()
andgetAmountWithSalesTax()
(this is useful eg. for Canada, which has multiple tax rates ie. state and country taxes) [@maktouch, @valeriansaliou, 6e5b9be, #27].
- Add a way to schedule tax rate updates for a country or state in a future date [@valeriansaliou, accda53].
- Germany: 19% to 16% (1st July 2020 to 31st December 2020) [@valeriansaliou].
- Kenya: 16% to 14% (1st April 2020) [@adrai].
- Saudi Arabia: 5% to 15% (1st July 2020) [@adrai].
- More methods added [@valeriansaliou].
- Initial release [@valeriansaliou].