@decafhub/decaf-client-extras 0.2.0 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -8,15 +8,13 @@ jobs:
8
8
  release-please:
9
9
  runs-on: ubuntu-latest
10
10
  steps:
11
- - uses: google-github-actions/release-please-action@v3
11
+ - uses: google-github-actions/release-please-action@v4
12
12
  id: release
13
- with:
14
- command: manifest
15
13
 
16
- - uses: actions/checkout@v3
14
+ - uses: actions/checkout@v4
17
15
  if: ${{ steps.release.outputs.release_created }}
18
16
 
19
- - uses: actions/setup-node@v3
17
+ - uses: actions/setup-node@v4
20
18
  with:
21
19
  node-version: 'lts/*'
22
20
  registry-url: 'https://registry.npmjs.org'
@@ -12,12 +12,12 @@ jobs:
12
12
  runs-on: ${{ matrix.os }}
13
13
  strategy:
14
14
  matrix:
15
- node: [16, 18, 20]
15
+ node: [18, 20, 21]
16
16
  os: [ubuntu-latest]
17
17
  steps:
18
- - uses: actions/checkout@v3
18
+ - uses: actions/checkout@v4
19
19
 
20
- - uses: actions/setup-node@v3
20
+ - uses: actions/setup-node@v4
21
21
  with:
22
22
  node-version: ${{ matrix.node }}
23
23
  registry-url: 'https://registry.npmjs.org'
@@ -1,3 +1,3 @@
1
1
  {
2
- ".": "0.2.0"
2
+ ".": "0.3.0"
3
3
  }
package/CHANGELOG.md CHANGED
@@ -1,5 +1,16 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.3.0](https://github.com/teloscube/decaf-client-javascript-extras/compare/v0.2.0...v0.3.0) (2023-12-05)
4
+
5
+
6
+ ### ⚠ BREAKING CHANGES
7
+
8
+ * drop support for Node 16
9
+
10
+ ### Miscellaneous Chores
11
+
12
+ * drop support for Node 16 ([4ba8384](https://github.com/teloscube/decaf-client-javascript-extras/commit/4ba8384aabf4f48fc7f9ce6ea85c6326057c749d))
13
+
3
14
  ## [0.2.0](https://github.com/teloscube/decaf-client-javascript-extras/compare/v0.1.1...v0.2.0) (2023-05-19)
4
15
 
5
16
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@decafhub/decaf-client-extras",
3
- "version": "0.2.0",
3
+ "version": "0.3.0",
4
4
  "description": "DECAF Client Extras",
5
5
  "author": "Teloscube Pte Ltd",
6
6
  "license": "MIT",
@@ -23,39 +23,40 @@
23
23
  "prepare": "npm run build && ./postinstall.sh"
24
24
  },
25
25
  "engines": {
26
- "node": ">=16"
26
+ "node": ">=18"
27
27
  },
28
28
  "peerDependencies": {
29
- "@decafhub/decaf-client": "^0.4"
29
+ "@decafhub/decaf-client": "^0.5"
30
30
  },
31
31
  "dependencies": {
32
- "@telostat/prelude": "^0.3.0"
32
+ "@telostat/prelude": "^0.5.0",
33
+ "dayjs": "^1.11.10"
33
34
  },
34
35
  "devDependencies": {
35
- "@commitlint/cli": "^17.6.3",
36
- "@commitlint/config-conventional": "^17.6.3",
37
- "@decafhub/decaf-client": "^0.4.0",
38
- "@types/jest": "^29.5.1",
39
- "@types/node": "^20.2.1",
40
- "@typescript-eslint/eslint-plugin": "^5.59.6",
41
- "@typescript-eslint/parser": "^5.59.6",
42
- "dotenv": "^16.0.3",
43
- "eslint": "^8.40.0",
44
- "eslint-config-prettier": "^8.8.0",
45
- "eslint-config-standard": "^17.0.0",
46
- "eslint-plugin-import": "^2.27.5",
47
- "eslint-plugin-n": "^15.7.0",
48
- "eslint-plugin-prettier": "^4.2.1",
36
+ "@commitlint/cli": "^18.4.3",
37
+ "@commitlint/config-conventional": "^18.4.3",
38
+ "@decafhub/decaf-client": "^0.5.0",
39
+ "@types/jest": "^29.5.10",
40
+ "@types/node": "^20.10.3",
41
+ "@typescript-eslint/eslint-plugin": "^6.13.2",
42
+ "@typescript-eslint/parser": "^6.13.2",
43
+ "dotenv": "^16.3.1",
44
+ "eslint": "^8.55.0",
45
+ "eslint-config-prettier": "^9.1.0",
46
+ "eslint-config-standard": "^17.1.0",
47
+ "eslint-plugin-import": "^2.29.0",
48
+ "eslint-plugin-n": "^16.3.1",
49
+ "eslint-plugin-prettier": "^5.0.1",
49
50
  "eslint-plugin-promise": "^6.1.1",
50
51
  "eslint-plugin-standard": "^5.0.0",
51
- "gh-pages": "^5.0.0",
52
+ "gh-pages": "^6.1.0",
52
53
  "husky": "^8.0.3",
53
- "jest": "^29.5.0",
54
- "lint-staged": "^13.2.2",
55
- "prettier": "^2.8.8",
56
- "ts-jest": "^29.1.0",
57
- "typedoc": "^0.24.7",
58
- "typescript": "^5.0.4"
54
+ "jest": "^29.7.0",
55
+ "lint-staged": "^15.2.0",
56
+ "prettier": "^3.1.0",
57
+ "ts-jest": "^29.1.1",
58
+ "typedoc": "^0.25.4",
59
+ "typescript": "^5.3.2"
59
60
  },
60
61
  "lint-staged": {
61
62
  "src/**/*.{ts,tsx}": [
package/src/index.test.ts CHANGED
@@ -1,6 +1,7 @@
1
1
  import { buildDecafClient, DecafClient, gql } from '@decafhub/decaf-client';
2
- import { PDateTime, safeDiv, zero } from '@telostat/prelude';
2
+ import { safeDiv, zero } from '@telostat/prelude';
3
3
  import { fail } from 'assert';
4
+ import dayjs from 'dayjs';
4
5
  import { DecafPortfolioId, mkCurrencyCodeError } from './commons';
5
6
  import { makeValuationReportHoldingsTree } from './reports/valuation/';
6
7
  import {
@@ -54,7 +55,7 @@ describe('Main', () => {
54
55
  test('get a remote portfolio report successfuly', async () => {
55
56
  const eValue = await fetchRemotePortfolioValuationReport(client, {
56
57
  portfolio: portfolioId,
57
- date: PDateTime(new Date()).format('YYYY-MM-DD'),
58
+ date: dayjs(new Date()).format('YYYY-MM-DD'),
58
59
  dateType: 'settlement',
59
60
  currency: mkCurrencyCodeError('EUR'),
60
61
  });
@@ -72,7 +73,7 @@ describe('Main', () => {
72
73
  test('get a portfolio report, check the tree', async () => {
73
74
  const eValue = await fetchPortfolioValuationReport(client, {
74
75
  portfolio: portfolioId,
75
- date: PDateTime(new Date()).format('YYYY-MM-DD'),
76
+ date: dayjs(new Date()).format('YYYY-MM-DD'),
76
77
  dateType: 'settlement',
77
78
  currency: mkCurrencyCodeError('EUR'),
78
79
  });