@decafhub/decaf-client-extras 0.1.0 → 0.2.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.
@@ -18,20 +18,20 @@ jobs:
18
18
 
19
19
  - uses: actions/setup-node@v3
20
20
  with:
21
- node-version: 16.x
21
+ node-version: 'lts/*'
22
22
  registry-url: 'https://registry.npmjs.org'
23
- cache: 'yarn'
23
+ cache: 'npm'
24
24
  if: ${{ steps.release.outputs.release_created }}
25
25
 
26
26
  - name: Install dependencies
27
- run: yarn install --frozen-lockfile
27
+ run: npm ci
28
28
  if: ${{ steps.release.outputs.release_created }}
29
29
  env:
30
30
  DECAF_JS_SKIP_POSTINSTALL: 1
31
31
  HUSKY: 0
32
32
 
33
33
  - name: Build the project and generate docs
34
- run: yarn build
34
+ run: npm run build
35
35
  if: ${{ steps.release.outputs.release_created }}
36
36
 
37
37
  - name: Deploy docs to gh-pages
@@ -41,7 +41,7 @@ jobs:
41
41
  github_token: ${{ secrets.GITHUB_TOKEN }}
42
42
  publish_dir: ./docs
43
43
 
44
- - run: yarn publish --access=public
44
+ - run: npm publish --access=public
45
45
  env:
46
46
  NODE_AUTH_TOKEN: ${{secrets.DECAFHUB_NPM_TOKEN}}
47
47
  if: ${{ steps.release.outputs.release_created }}
@@ -1,28 +1,36 @@
1
1
  name: Tests
2
2
 
3
3
  on:
4
+ workflow_dispatch:
4
5
  pull_request:
6
+ push:
7
+ branches:
8
+ - main
5
9
 
6
10
  jobs:
7
11
  test:
8
- runs-on: ubuntu-latest
12
+ runs-on: ${{ matrix.os }}
13
+ strategy:
14
+ matrix:
15
+ node: [16, 18, 20]
16
+ os: [ubuntu-latest]
9
17
  steps:
10
18
  - uses: actions/checkout@v3
11
19
 
12
20
  - uses: actions/setup-node@v3
13
21
  with:
14
- node-version: 16.x
22
+ node-version: ${{ matrix.node }}
15
23
  registry-url: 'https://registry.npmjs.org'
16
- cache: 'yarn'
24
+ cache: 'npm'
17
25
 
18
26
  - name: Install dependencies
19
- run: yarn install --frozen-lockfile
27
+ run: npm ci
20
28
  env:
21
29
  DECAF_JS_SKIP_POSTINSTALL: 1
22
30
  HUSKY: 0
23
31
 
24
32
  - name: Run Tests
25
- run: yarn test --ci
33
+ run: npm test -- --ci
26
34
  env:
27
35
  TESTING_API_KEY: ${{ secrets.TESTING_API_KEY }}
28
36
  TESTING_API_SECRET: ${{ secrets.TESTING_API_SECRET }}
package/.husky/commit-msg CHANGED
@@ -1,4 +1,4 @@
1
1
  #!/usr/bin/env sh
2
2
  . "$(dirname -- "$0")/_/husky.sh"
3
3
 
4
- yarn commitlint --edit "${1}"
4
+ npx --no -- commitlint --edit "${1}"
package/.nvmrc ADDED
@@ -0,0 +1 @@
1
+ lts/*
@@ -1,3 +1,3 @@
1
1
  {
2
- ".": "0.1.0"
2
+ ".": "0.2.0"
3
3
  }
package/CHANGELOG.md CHANGED
@@ -1,5 +1,23 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.2.0](https://github.com/teloscube/decaf-client-javascript-extras/compare/v0.1.1...v0.2.0) (2023-05-19)
4
+
5
+
6
+ ### ⚠ BREAKING CHANGES
7
+
8
+ * make minimum supported node version 16
9
+
10
+ ### Miscellaneous Chores
11
+
12
+ * make minimum supported node version 16 ([ce38994](https://github.com/teloscube/decaf-client-javascript-extras/commit/ce38994cd38868821beb9ad7b2a466c32e8aa50a))
13
+
14
+ ## [0.1.1](https://github.com/teloscube/decaf-client-javascript-extras/compare/v0.1.0...v0.1.1) (2023-04-02)
15
+
16
+
17
+ ### Miscellaneous Chores
18
+
19
+ * release 0.1.1 ([e5aedf7](https://github.com/teloscube/decaf-client-javascript-extras/commit/e5aedf7ac6f802da1afdafbe2e040fb455d28c82))
20
+
3
21
  ## [0.1.0](https://github.com/teloscube/decaf-client-javascript-extras/compare/v0.0.5...v0.1.0) (2023-01-31)
4
22
 
5
23
 
package/README.md CHANGED
@@ -12,13 +12,7 @@ Install @decafhub/decaf-client-extras along with its peer dependency @decafhub/d
12
12
  npm install --save @decafhub/decaf-client-extras @decafhub/decaf-client
13
13
  ```
14
14
 
15
- Or with yarn:
16
-
17
- ```bash
18
- yarn add @decafhub/decaf-client-extras @decafhub/decaf-client
19
- ```
20
-
21
15
  ## Testing
22
16
 
23
17
  - Duplicate the `.env.example` file to `.env` and fill in the values.
24
- - Run `yarn test` to run the tests.
18
+ - Run `npm test` to run the tests.
package/nix/default.nix CHANGED
@@ -31,7 +31,6 @@ let
31
31
  deps = [
32
32
  pkgs.git
33
33
  pkgs.nodejs
34
- pkgs.yarn
35
34
 
36
35
  devshell
37
36
  ];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@decafhub/decaf-client-extras",
3
- "version": "0.1.0",
3
+ "version": "0.2.0",
4
4
  "description": "DECAF Client Extras",
5
5
  "author": "Teloscube Pte Ltd",
6
6
  "license": "MIT",
@@ -17,45 +17,45 @@
17
17
  "scripts": {
18
18
  "start": "tsc --watch",
19
19
  "test": "jest",
20
- "build": "rm -rf lib && tsc && tsc -p tsconfig.es.json && yarn make:docs",
20
+ "build": "rm -rf lib && tsc && tsc -p tsconfig.es.json && npm run make:docs",
21
21
  "make:docs": "typedoc",
22
22
  "deploy:docs": "gh-pages -d ./docs",
23
- "prepare": "yarn build && ./postinstall.sh"
23
+ "prepare": "npm run build && ./postinstall.sh"
24
24
  },
25
25
  "engines": {
26
- "node": ">=14"
26
+ "node": ">=16"
27
27
  },
28
28
  "peerDependencies": {
29
- "@decafhub/decaf-client": "^0.3.1"
29
+ "@decafhub/decaf-client": "^0.4"
30
30
  },
31
31
  "dependencies": {
32
- "@telostat/prelude": "^0.2.0"
32
+ "@telostat/prelude": "^0.3.0"
33
33
  },
34
34
  "devDependencies": {
35
- "@commitlint/cli": "^17.3.0",
36
- "@commitlint/config-conventional": "^17.3.0",
37
- "@decafhub/decaf-client": "^0.3.1",
38
- "@types/jest": "^29.2.4",
39
- "@types/node": "^18.11.18",
40
- "@typescript-eslint/eslint-plugin": "^5.47.1",
41
- "@typescript-eslint/parser": "^5.47.1",
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
42
  "dotenv": "^16.0.3",
43
- "eslint": "^8.30.0",
44
- "eslint-config-prettier": "^8.5.0",
43
+ "eslint": "^8.40.0",
44
+ "eslint-config-prettier": "^8.8.0",
45
45
  "eslint-config-standard": "^17.0.0",
46
- "eslint-plugin-import": "^2.26.0",
47
- "eslint-plugin-n": "^15.6.0",
46
+ "eslint-plugin-import": "^2.27.5",
47
+ "eslint-plugin-n": "^15.7.0",
48
48
  "eslint-plugin-prettier": "^4.2.1",
49
49
  "eslint-plugin-promise": "^6.1.1",
50
50
  "eslint-plugin-standard": "^5.0.0",
51
- "gh-pages": "^4.0.0",
52
- "husky": "^8.0.2",
53
- "jest": "^29.3.1",
54
- "lint-staged": "^13.1.0",
55
- "prettier": "^2.8.1",
56
- "ts-jest": "^29.0.3",
57
- "typedoc": "^0.23.23",
58
- "typescript": "^4.9.4"
51
+ "gh-pages": "^5.0.0",
52
+ "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"
59
59
  },
60
60
  "lint-staged": {
61
61
  "src/**/*.{ts,tsx}": [
package/postinstall.sh CHANGED
@@ -6,7 +6,7 @@ if [ -f .env ]; then
6
6
  fi
7
7
 
8
8
  if [ -n "$DECAF_JS_SKIP_POSTINSTALL" ]; then
9
- yarn husky install
9
+ npx --no -- husky install
10
10
  echo "Local Env detected. Skipping lib/ relocation..."
11
11
  exit 0
12
12
  fi