Skip to content

Commit 35fb5d9

Browse files
authored
Merge pull request #31 from Enrise/develop
v2.0 release
2 parents 82fed59 + 7ab7152 commit 35fb5d9

File tree

114 files changed

+11088
-2687
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

114 files changed

+11088
-2687
lines changed

.github/pull_request_template.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<!--- Provide a general summary of your changes in the Title above -->
2+
3+
## Description
4+
<!--- Describe your changes in detail -->
5+
-
6+
7+
## How to test
8+
<!--- Create a list of steps people can take to test the changes -->
9+
- [ ] `npm install`
10+
- [ ] ...

.github/workflows/ci.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [ main, v2 ]
6+
pull_request:
7+
8+
jobs:
9+
lint-and-type-check:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v4
13+
14+
- name: Setup Node.js
15+
uses: actions/setup-node@v4
16+
with:
17+
node-version: '20'
18+
cache: 'npm'
19+
20+
- name: Install dependencies
21+
run: npm ci
22+
23+
- name: Check linting and types
24+
run: npm run lint
25+
26+
test:
27+
runs-on: ubuntu-latest
28+
strategy:
29+
matrix:
30+
node-version: [18, 20, 22, 24]
31+
32+
steps:
33+
- uses: actions/checkout@v4
34+
35+
- name: Setup Node.js ${{ matrix.node-version }}
36+
uses: actions/setup-node@v4
37+
with:
38+
node-version: ${{ matrix.node-version }}
39+
cache: 'npm'
40+
41+
- name: Install dependencies
42+
run: npm ci
43+
44+
- name: Run tests
45+
run: npm run test

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ build/*
44
lib/*
55
.idea/
66
*.d.ts
7-
*.js
7+
coverage/

.prettierrc

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"bracketSpacing": true,
3+
"bracketSameLine": true,
4+
"singleQuote": true,
5+
"arrowParens": "avoid",
6+
"trailingComma": "all",
7+
"tabWidth": 4,
8+
"printWidth": 100,
9+
"overrides": [
10+
{
11+
"files": ["*.yml", "*.yaml", "*.json"],
12+
"options": {
13+
"tabWidth": 2
14+
}
15+
}
16+
]
17+
}

CHANGELOG.md

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# Changelog
2+
3+
All notable changes to this project will be documented in this file.
4+
5+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
6+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7+
8+
## Unreleased
9+
10+
## [2.0.0]
11+
12+
### Changed
13+
- Refactored DirectDebit to new REST API.
14+
15+
### Removed
16+
- Deprecated endpoints and dependencies, see UPGRADING.md for details.
17+
18+
## [1.2.0]
19+
20+
### Added
21+
- New order API endpoints.
22+
23+
### Deprecated
24+
- All transaction endpoints, except for the status endpoint (see UPGRADING.md)
25+
26+
### Changed
27+
- Package overhead maintenance (CI, linting, etc.).
28+
29+
### Security
30+
- CVE-2023-28155: Updated `request` package.
31+
32+
## [1.1.4]
33+
34+
No changelog was recorded up to this release.

CONTRIBUTING.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Contributing
2+
3+
Thank you for considering contributing to this project! We welcome contributions from the community. Please follow the
4+
guidelines below to ensure a smooth contribution process.
5+
6+
## Code style and formatting
7+
8+
We use ESLint to enforce code style and formatting. To ensure your code adheres to the project's standards, please run
9+
the following command before submitting a pull request:
10+
11+
```bash
12+
npm run lint
13+
// or
14+
npm run fix
15+
```
16+
17+
## Running tests
18+
19+
We use Jest for testing. To run the tests, run the following command:
20+
21+
```bash
22+
npm run test
23+
```

0 commit comments

Comments
 (0)