Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v2 - Rewrite to TypeScript with generated types #53

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[*]
indent_size = 2
indent_style = space
2 changes: 2 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,5 @@ tests/
.nvmrc
babel.config.json
main.js
!src
!tsconfig.json
2 changes: 2 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
dist
node_modules
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"typescript.tsdk": "node_modules/typescript/lib"
}
35 changes: 23 additions & 12 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

## [2.0.0] - 2025-01-13

- Rewrite in TypeScript
- Generates types from the OA specification
- Added `countries` array with `{ id: CountryCode, name: "Country Name" }` objects (eg. `{ id: "CZ", name: "Czechia" }`)
- generateToken() now updates the `NordigenClient.token` property
- [BC break] Restructuring of files, therefore direct imports may not work the same way

## [1.4.0] - 2024-02-15

- Update docs and remove discontinued premium endpoints.
Expand All @@ -9,28 +17,34 @@
- Regenerate TypeScript types and update rollup dev dependencies

## [1.3.0] - 2024-02-12
- Updated baseUrl to https://bankaccountdata.gocardless.com/api/v2

- Updated baseUrl to <https://bankaccountdata.gocardless.com/api/v2>

## [1.2.5] - 2023-06-22
- Change Nordigen URLs to GC

- Change Nordigen URLs to GC

## [1.2.4] - 2023-04-14
- Fix TypeScript types

- Fix TypeScript types

## [1.2.3] - 2023-02-16
- Fix path to types in `package.json`

- Fix path to types in `package.json`

## [1.2.2] - 2023-02-16
- Add `.cjs` support
- Make `ssn`, `redirectImmediate`, `accountSelection` and `reference` optional for requisition

- Add `.cjs` support
- Make `ssn`, `redirectImmediate`, `accountSelection` and `reference` optional for requisition

## [1.2.1] - 2023-01-16
- Fix requisition parameters name casing

- Fix requisition parameters name casing

## [1.2.0] - 2023-01-02
- Migrate from node-fetch to axios
- Add missing parameters to requisition

- Migrate from node-fetch to axios
- Add missing parameters to requisition

## [1.1.1] - 2022-11-24

Expand All @@ -41,7 +55,6 @@
- Add premium endpoints to accounts API
- Fix misspelled variable in accounts API


## [1.0.2] - 2022-05-18

- Fix TypeScript Type definitions
Expand All @@ -54,8 +67,6 @@
- Add agreementId to requisition request
- Fixed token setter, docs and main.js


## [1.0.0] - 2022-01-10

- Initial release

3 changes: 0 additions & 3 deletions babel.config.json

This file was deleted.

5 changes: 5 additions & 0 deletions jest.config.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
/** @type {import('ts-jest').JestConfigWithTsJest} */
module.exports = {
preset: 'ts-jest',
testEnvironment: 'node',
};
72 changes: 0 additions & 72 deletions lib/api/account.js

This file was deleted.

106 changes: 0 additions & 106 deletions lib/api/agreements.js

This file was deleted.

4 changes: 0 additions & 4 deletions lib/api/index.js

This file was deleted.

38 changes: 0 additions & 38 deletions lib/api/institutions.js

This file was deleted.

Loading