2024.2.0 • Published 2 days ago

@equisoft/tax-ca v2024.2.0

Weekly downloads
115
License
LGPL-3.0-only
Repository
github
Last release
2 days ago

tax-ca

Description

The tax-ca library contains up-to-date provincial and federal tax data and calculation functions.

We built it so that we would have a single source of truth for taxes data across all of our applications. The initial version is derived from code from the fna-engine, kronos-fna and kronos-express repositories.

As we develop and update tax-ca, we will try to make it as application-agnostic as possible.

Installation

Using npm :

npm install @equisoft/tax-ca --save

Using yarn :

yarn add @equisoft/tax-ca

Versions

The major portion of the library version is named according to the year of the dataset it contains. There could be breaking changes (such as modifications to the data structure) in both major and minor updates.

Updates at the patch level are reserved for bug fixes, non-breaking changes and minor improvements.

We suggest you lock the library dependency to the minor version and execute exhaustive testing before migrating to a new version to avoid unintentional regression.

  "dependencies": {
    "@equisoft/tax-ca": "^2018.0.4",
  },

Usage

To use the library, we recommend you start by going through the Modules list (see below) to locate the data set or function you are looking for.

Once you know where your target data or function is located, simply import the module then access it directly in the code.

import { PENSION } from '@equisoft/tax-ca';

const { OAS, CPP } = PENSION;

console.log("OAS maximum age: ", OAS.MAX_AGE); // 70

Modules

INVESTMENTS

Data relating to registered investments accounts.

INVESTMENTS
  |--LifeIncomeFund
  |--RegisteredRetirementIncomeFund
  |--RegisteredRetirementSavingsPlan
  |--TaxFreeSavingsAccount

PENSION

Data relating to federal and provincial pension plans.

PENSION
  |--CanadaPensionPlan
  |--OldAgeSecurity
  |--PublicPensionPlan
  |--QuebecPensionPlan
  |--SupplementalPensionPlan

TAXES

Data relating to federal and provincial income taxes and social charges.

TAXES
  |--DividendCredit
  |--EmploymentInsurance
  |--IncomeTax
  |--QuebecParentalInsurancePlan

MISC

Complementary data useful in a tax calculation context.

MISC
  |--ConsumerPriceIndex
  |--IQPFStats
  |--LifeExpectancy

Development

This library is maintained by the Equisoft Plan team in Quebec City.

We strongly value inner source practices within Equisoft and encourage contributors external to the FNA team to submit issues (including feature requests) and pull requests to the repository.

Release

To release please use :

yarn publish 
          --new-version XXXX.X.X  OR    
          --major                             auto-increment major version number OR
          --minor                             auto-increment minor version number OR
          --patch                             auto-increment patch version number
git push
git push --tags

Now all you need to do is draft a new Release in Github, and fill it using RELEASE.MD template.

2024.2.0

10 days ago

2024.0.5

3 months ago

2024.1.1

3 months ago

2024.1.0

4 months ago

2024.0.0

4 months ago

2023.8.0

10 months ago

2023.10.0

7 months ago

2023.11.0

5 months ago

2023.9.0

8 months ago

2023.7.0

11 months ago

2023.4.0

1 year ago

2023.3.0

1 year ago

2023.6.0

12 months ago

2023.5.0

1 year ago

2023.2.0

1 year ago

2022.13.0

1 year ago

2023.1.0

1 year ago

2022.12.0

1 year ago

2022.11.0

2 years ago

2022.10.0

2 years ago

0.0.1

2 years ago

2022.9.0

2 years ago

2022.8.0

2 years ago

2023.0.0

2 years ago

2022.6.0

2 years ago

2022.7.0

2 years ago

2022.5.0

2 years ago

2022.4.0

2 years ago

2022.2.0

2 years ago

2022.0.1

2 years ago

2022.0.0

2 years ago

2022.1.0

2 years ago

2022.1.1

2 years ago

2021.8.0

2 years ago

2021.6.0

2 years ago

2021.5.0

3 years ago

2021.4.0

3 years ago

2021.3.1

3 years ago

2021.3.0

3 years ago

2021.2.1

3 years ago

2021.2.0

3 years ago

2021.1.5

3 years ago

2021.1.2

3 years ago

2021.1.1

3 years ago

2021.1.0

3 years ago

2020.9.0

4 years ago

2020.8.1

4 years ago

2020.8.0

4 years ago

2020.7.0

4 years ago

2020.6.0

4 years ago

2020.5.0

4 years ago

2020.4.4

4 years ago

2020.4.3

4 years ago

2020.4.2

4 years ago

2020.4.1

4 years ago

2020.4.0

4 years ago

2020.3.0

4 years ago

2020.2.2

4 years ago

2020.2.1

4 years ago

2020.2.0

4 years ago

2020.1.1

4 years ago

2019.5.2

4 years ago

2019.5.1

4 years ago

2019.5.0

4 years ago

2019.4.2

5 years ago

2019.4.1

5 years ago

2019.4.0

5 years ago

2019.3.0

5 years ago

2019.1.3

5 years ago

2019.1.2

5 years ago

2019.1.1

5 years ago

2018.2.1

5 years ago

2018.2.0

5 years ago

2018.1.1

5 years ago

2018.1.0

5 years ago

2018.0.24

5 years ago

2018.0.23

5 years ago

2018.0.22

6 years ago

2018.0.21

6 years ago

2018.0.20

6 years ago

2018.0.19

6 years ago

2018.0.18

6 years ago

2018.0.17

6 years ago

2018.0.16

6 years ago

2018.0.15

6 years ago

2018.0.14

6 years ago

2018.0.13

6 years ago

2018.0.12

6 years ago

2018.0.11

6 years ago

2018.0.10

6 years ago

2018.0.9

6 years ago

2018.0.8

6 years ago

2018.0.7

6 years ago

2018.0.6

6 years ago

2018.0.5

6 years ago

2018.0.4

6 years ago

2018.0.3

6 years ago

2018.0.2

6 years ago

2018.0.1

6 years ago

2018.0.0

6 years ago