Skip to content

Commit a8e6b07

Browse files
chore(deps-dev): bump the npm group across 1 directory with 15 updates (#94)
* chore(deps-dev): bump the npm group across 1 directory with 15 updates Bumps the npm group with 15 updates in the / directory: | Package | From | To | | --- | --- | --- | | [@babel/core](https://github.com/babel/babel/tree/HEAD/packages/babel-core) | `7.23.0` | `7.26.0` | | [@babel/preset-env](https://github.com/babel/babel/tree/HEAD/packages/babel-preset-env) | `7.22.20` | `7.26.0` | | [@babel/preset-typescript](https://github.com/babel/babel/tree/HEAD/packages/babel-preset-typescript) | `7.23.0` | `7.26.0` | | [@types/jest](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/jest) | `29.5.6` | `29.5.14` | | [@types/lodash](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/lodash) | `4.14.202` | `4.17.13` | | [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) | `20.6.0` | `22.10.2` | | [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) | `6.7.5` | `8.18.1` | | [dotenv](https://github.com/motdotla/dotenv) | `16.3.1` | `16.4.7` | | [eslint](https://github.com/eslint/eslint) | `8.51.0` | `9.17.0` | | [eslint-config-standard-with-typescript](https://github.com/mightyiam/eslint-config-standard-with-typescript) | `39.1.1` | `43.0.1` | | [eslint-plugin-import](https://github.com/import-js/eslint-plugin-import) | `2.28.1` | `2.31.0` | | [eslint-plugin-n](https://github.com/eslint-community/eslint-plugin-n) | `16.2.0` | `17.15.1` | | [eslint-plugin-promise](https://github.com/eslint-community/eslint-plugin-promise) | `6.1.1` | `7.2.1` | | [prettier](https://github.com/prettier/prettier) | `3.0.3` | `3.4.2` | | [typescript](https://github.com/microsoft/TypeScript) | `5.2.2` | `5.7.2` | Updates `@babel/core` from 7.23.0 to 7.26.0 - [Release notes](https://github.com/babel/babel/releases) - [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md) - [Commits](https://github.com/babel/babel/commits/v7.26.0/packages/babel-core) Updates `@babel/preset-env` from 7.22.20 to 7.26.0 - [Release notes](https://github.com/babel/babel/releases) - [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md) - [Commits](https://github.com/babel/babel/commits/v7.26.0/packages/babel-preset-env) Updates `@babel/preset-typescript` from 7.23.0 to 7.26.0 - [Release notes](https://github.com/babel/babel/releases) - [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md) - [Commits](https://github.com/babel/babel/commits/v7.26.0/packages/babel-preset-typescript) Updates `@types/jest` from 29.5.6 to 29.5.14 - [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases) - [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/jest) Updates `@types/lodash` from 4.14.202 to 4.17.13 - [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases) - [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/lodash) Updates `@types/node` from 20.6.0 to 22.10.2 - [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases) - [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node) Updates `@typescript-eslint/eslint-plugin` from 6.7.5 to 8.18.1 - [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases) - [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/CHANGELOG.md) - [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v8.18.1/packages/eslint-plugin) Updates `dotenv` from 16.3.1 to 16.4.7 - [Changelog](https://github.com/motdotla/dotenv/blob/master/CHANGELOG.md) - [Commits](motdotla/dotenv@v16.3.1...v16.4.7) Updates `eslint` from 8.51.0 to 9.17.0 - [Release notes](https://github.com/eslint/eslint/releases) - [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md) - [Commits](eslint/eslint@v8.51.0...v9.17.0) Updates `eslint-config-standard-with-typescript` from 39.1.1 to 43.0.1 - [Release notes](https://github.com/mightyiam/eslint-config-standard-with-typescript/releases) - [Changelog](https://github.com/mightyiam/eslint-config-love/blob/main/CHANGELOG.md) - [Commits](mightyiam/eslint-config-love@v39.1.1...v43.0.1) Updates `eslint-plugin-import` from 2.28.1 to 2.31.0 - [Release notes](https://github.com/import-js/eslint-plugin-import/releases) - [Changelog](https://github.com/import-js/eslint-plugin-import/blob/main/CHANGELOG.md) - [Commits](import-js/eslint-plugin-import@v2.28.1...v2.31.0) Updates `eslint-plugin-n` from 16.2.0 to 17.15.1 - [Release notes](https://github.com/eslint-community/eslint-plugin-n/releases) - [Changelog](https://github.com/eslint-community/eslint-plugin-n/blob/master/CHANGELOG.md) - [Commits](eslint-community/eslint-plugin-n@16.2.0...v17.15.1) Updates `eslint-plugin-promise` from 6.1.1 to 7.2.1 - [Release notes](https://github.com/eslint-community/eslint-plugin-promise/releases) - [Changelog](https://github.com/eslint-community/eslint-plugin-promise/blob/main/CHANGELOG.md) - [Commits](eslint-community/eslint-plugin-promise@v6.1.1...v7.2.1) Updates `prettier` from 3.0.3 to 3.4.2 - [Release notes](https://github.com/prettier/prettier/releases) - [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md) - [Commits](prettier/prettier@3.0.3...3.4.2) Updates `typescript` from 5.2.2 to 5.7.2 - [Release notes](https://github.com/microsoft/TypeScript/releases) - [Changelog](https://github.com/microsoft/TypeScript/blob/main/azure-pipelines.release.yml) - [Commits](microsoft/TypeScript@v5.2.2...v5.7.2) --- updated-dependencies: - dependency-name: "@babel/core" dependency-type: direct:development update-type: version-update:semver-minor dependency-group: npm - dependency-name: "@babel/preset-env" dependency-type: direct:development update-type: version-update:semver-minor dependency-group: npm - dependency-name: "@babel/preset-typescript" dependency-type: direct:development update-type: version-update:semver-minor dependency-group: npm - dependency-name: "@types/jest" dependency-type: direct:development update-type: version-update:semver-patch dependency-group: npm - dependency-name: "@types/lodash" dependency-type: direct:development update-type: version-update:semver-minor dependency-group: npm - dependency-name: "@types/node" dependency-type: direct:development update-type: version-update:semver-major dependency-group: npm - dependency-name: "@typescript-eslint/eslint-plugin" dependency-type: direct:development update-type: version-update:semver-major dependency-group: npm - dependency-name: dotenv dependency-type: direct:development update-type: version-update:semver-minor dependency-group: npm - dependency-name: eslint dependency-type: direct:development update-type: version-update:semver-major dependency-group: npm - dependency-name: eslint-config-standard-with-typescript dependency-type: direct:development update-type: version-update:semver-major dependency-group: npm - dependency-name: eslint-plugin-import dependency-type: direct:development update-type: version-update:semver-minor dependency-group: npm - dependency-name: eslint-plugin-n dependency-type: direct:development update-type: version-update:semver-major dependency-group: npm - dependency-name: eslint-plugin-promise dependency-type: direct:development update-type: version-update:semver-major dependency-group: npm - dependency-name: prettier dependency-type: direct:development update-type: version-update:semver-minor dependency-group: npm - dependency-name: typescript dependency-type: direct:development update-type: version-update:semver-minor dependency-group: npm ... Signed-off-by: dependabot[bot] <support@github.com> * fix(dependabot): Package updates --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Vijayasingam Thanasekaran <v.thanasekaran@paddle.com> Co-authored-by: Vijayasingam Thanasekaran <100207323+vijayasingam-paddle@users.noreply.github.com>
1 parent 4f7d37e commit a8e6b07

36 files changed

+2076
-1261
lines changed

.eslintrc.yml

Lines changed: 0 additions & 31 deletions
This file was deleted.

CHANGELOG.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,37 +12,55 @@ When we make [non-breaking changes](https://developer.paddle.com/api-reference/a
1212

1313
This means when upgrading minor versions of the SDK, you may notice type errors. You can safely ignore these or fix by adding additional type guards.
1414

15+
## 2.3.1 - 2025-01-06
16+
17+
### Fixed
18+
19+
- Dependabot updates
20+
21+
---
22+
1523
## 2.3.0 - 2025-01-06
1624

1725
### Added
1826

1927
- Added `onResume` property to subscription resume and pause operations to [control billing for subscriptions when resuming](https://developer.paddle.com/changelog/2024/resume-subscription-billing-period-options)
2028

29+
---
30+
2131
## 2.2.2 - 2024-12-16
2232

2333
### Fixed
2434

2535
- `discount.startsAt` for Subscriptions can now be `null`
2636

37+
---
38+
2739
## 2.2.1 - 2024-12-16
2840

2941
### Fixed
3042

3143
- Added `proration` to transaction line items
3244

45+
---
46+
3347
## 2.2.0 - 2024-12-12
3448

3549
### Added
3650

3751
- `VND` (Vietnamese dong) as new currency
3852
- Added `adjustment.type` which is either `partial` which should include `items` or `full` where `items` are not required
3953

54+
---
55+
4056
## 2.1.3 - 2024-11-29
4157

4258
### Changed
4359

4460
- `paddle.webhooks.unmarshal` will now return an event for unhandled event types instead of `null` this is only possible for legacy/no longer supported events or for new events that have not been added to the sdk yet
4561

62+
---
63+
4664
## 2.1.2 - 2024-11-26
4765

4866
### Fixed
@@ -53,6 +71,8 @@ This means when upgrading minor versions of the SDK, you may notice type errors.
5371

5472
- ESLint rule to ensure `.js` extension is provided
5573

74+
---
75+
5676
## 2.1.1 - 2024-11-25
5777

5878
### Fixed
@@ -65,6 +85,8 @@ This means when upgrading minor versions of the SDK, you may notice type errors.
6585

6686
- Added `customerPortalSessions` resources
6787

88+
---
89+
6890
## 2.0.0 - 2024-11-20
6991

7092
> **Breaking changes:** This version includes major improvements that introduce breaking changes. These are called out below.

eslint.config.mjs

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
import globals from 'globals';
2+
import pluginJs from '@eslint/js';
3+
import tseslint from 'typescript-eslint';
4+
import stylistic from '@stylistic/eslint-plugin';
5+
import importPlugin from 'eslint-plugin-import';
6+
7+
/** @type {import('eslint').Linter.Config[]} */
8+
export default [
9+
pluginJs.configs.recommended,
10+
importPlugin.flatConfigs.recommended,
11+
...tseslint.configs.strict,
12+
stylistic.configs['recommended-flat'],
13+
{
14+
files: ['**/*.ts'],
15+
languageOptions: {
16+
globals: globals.node,
17+
},
18+
linterOptions: {
19+
reportUnusedDisableDirectives: 'error',
20+
},
21+
rules: {
22+
'@typescript-eslint/no-extraneous-class': 'off',
23+
'@stylistic/semi': 'off',
24+
'@stylistic/member-delimiter-style': 'off',
25+
'@stylistic/quotes': 'off',
26+
'@stylistic/quote-props': 'off',
27+
'@stylistic/brace-style': 'off',
28+
'@stylistic/arrow-parens': 'off',
29+
'@stylistic/operator-linebreak': 'off',
30+
'import/no-unresolved': 'off',
31+
'import/extensions': [
32+
'error',
33+
'always',
34+
{
35+
js: 'always',
36+
},
37+
],
38+
},
39+
},
40+
];

package.json

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@paddle/paddle-node-sdk",
3-
"version": "2.3.0",
3+
"version": "2.3.1",
44
"description": "A Node.js SDK that you can use to integrate Paddle Billing with applications written in server-side JavaScript.",
55
"main": "dist/cjs/index.cjs.node.js",
66
"module": "dist/esm/index.esm.node.js",
@@ -17,8 +17,8 @@
1717
"build-types": "tsc -b tsconfig.types.json",
1818
"prettier": "prettier --check ./src",
1919
"prettier:fix": "prettier --check ./src --write",
20-
"lint": "eslint --ext .ts,.tsx ./src",
21-
"lint:fix": "eslint --ext .ts,.tsx ./src --fix",
20+
"lint": "eslint ./src",
21+
"lint:fix": "eslint ./src --fix",
2222
"clean": "rm -rf ./dist",
2323
"release:rc": "yarn version --prerelease --preid rc --no-git-tag-version --no-commit-hooks",
2424
"publish:rc": "yarn publish --tag rc --access public",
@@ -43,20 +43,24 @@
4343
"@babel/core": "^7.23.0",
4444
"@babel/preset-env": "^7.22.20",
4545
"@babel/preset-typescript": "^7.23.0",
46+
"@eslint/js": "^9.17.0",
47+
"@stylistic/eslint-plugin": "^2.12.1",
4648
"@types/jest": "^29.5.6",
4749
"@types/lodash": "^4.14.202",
48-
"@types/node": "^20.6.0",
49-
"@typescript-eslint/eslint-plugin": "^6.4.0",
50+
"@types/node": "^22.10.2",
51+
"@typescript-eslint/eslint-plugin": "^8.18.1",
5052
"babel-jest": "^29.7.0",
5153
"dotenv": "^16.3.1",
52-
"eslint": "^8.0.1",
53-
"eslint-config-standard-with-typescript": "^39.1.1",
54+
"eslint": "^9.17.0",
55+
"eslint-config-standard-with-typescript": "^43.0.1",
5456
"eslint-plugin-import": "^2.25.2",
55-
"eslint-plugin-n": "^16.0.0 ",
56-
"eslint-plugin-promise": "^6.0.0",
57+
"eslint-plugin-n": "^17.15.1 ",
58+
"eslint-plugin-promise": "^7.2.1",
59+
"globals": "^15.14.0",
5760
"jest": "^29.7.0",
5861
"prettier": "^3.0.3",
59-
"typescript": "^5.2.2"
62+
"typescript": "^5.2.2",
63+
"typescript-eslint": "^8.19.0"
6064
},
6165
"exports": {
6266
"types": "./dist/types/index.cjs.node.d.ts",

src/__tests__/mocks/resources/customer-portal-sessions.mock.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
*/
66

77
import { ICustomerPortalSessionResponse } from '../../../types/index.js';
8-
import { Response, ResponsePaginated } from '../../../internal/index.js';
8+
import { Response } from '../../../internal/index.js';
99

1010
export const CustomerPortalSessionMock: ICustomerPortalSessionResponse = {
1111
id: 'cpls_01h4ge9r64c22exjsx0fy8b48b',

src/__tests__/notifications/notifications-parser.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ describe('Notifications Parser', () => {
166166
[TransactionUpdatedMock.event_type, TransactionUpdatedMock, TransactionUpdatedMockExpectation],
167167
// Generic Event
168168
[InvoicePaidMock.event_type, InvoicePaidMock, InvoicePaidMockExpectation],
169-
])('validate %s ', (_eventType: string, eventMock: IEventsResponse, expectedValue: any = {}) => {
169+
])('validate %s ', (_eventType: string, eventMock: IEventsResponse, expectedValue: unknown = {}) => {
170170
expect(Webhooks.fromJson(eventMock as IEvents)).toEqual(expectedValue);
171171
});
172172
});

src/__tests__/resources/addresses.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ describe('AddressesResource', () => {
4949
};
5050

5151
const addressCollection = addressesResource.list('ctm_1234', queryParams);
52-
let addresses = await addressCollection.next();
52+
const addresses = await addressCollection.next();
5353

5454
expect(paddleInstance.get).toBeCalledWith('/customers/ctm_1234/addresses?after=2&id=1234');
5555
expect(addresses.length).toBe(1);

src/__tests__/resources/adjustments.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ describe('AdjustmentsResource', () => {
4242
};
4343

4444
const adjustmentCollection = adjustmentsResource.list(queryParams);
45-
let adjustments = await adjustmentCollection.next();
45+
const adjustments = await adjustmentCollection.next();
4646

4747
expect(paddleInstance.get).toBeCalledWith('/adjustments?after=2&id=1234');
4848
expect(adjustments.length).toBe(1);

src/__tests__/resources/businesses.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ describe('BusinessesResource', () => {
4747
};
4848

4949
const businessCollection = businessesResource.list('ctm_1234', queryParams);
50-
let businesses = await businessCollection.next();
50+
const businesses = await businessCollection.next();
5151

5252
expect(paddleInstance.get).toBeCalledWith('/customers/ctm_1234/businesses?after=2&id=1234');
5353
expect(businesses.length).toBe(1);

src/__tests__/resources/customers.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ describe('CustomersResource', () => {
4949
};
5050

5151
const customerCollection = customersResource.list(queryParams);
52-
let customers = await customerCollection.next();
52+
const customers = await customerCollection.next();
5353

5454
expect(paddleInstance.get).toBeCalledWith('/customers?after=2&id=1234');
5555
expect(customers.length).toBe(1);

0 commit comments

Comments
 (0)