@decafhub/decaf-client-extras 0.1.1 → 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.
@@ -6,11 +6,7 @@ on:
6
6
  name: release-please
7
7
  jobs:
8
8
  release-please:
9
- runs-on: ${{ matrix.os }}
10
- strategy:
11
- matrix:
12
- node: [16]
13
- os: [ubuntu-latest]
9
+ runs-on: ubuntu-latest
14
10
  steps:
15
11
  - uses: google-github-actions/release-please-action@v3
16
12
  id: release
@@ -22,20 +18,20 @@ jobs:
22
18
 
23
19
  - uses: actions/setup-node@v3
24
20
  with:
25
- node-version: ${{ matrix.node }}
21
+ node-version: 'lts/*'
26
22
  registry-url: 'https://registry.npmjs.org'
27
- cache: 'yarn'
23
+ cache: 'npm'
28
24
  if: ${{ steps.release.outputs.release_created }}
29
25
 
30
26
  - name: Install dependencies
31
- run: yarn install --frozen-lockfile
27
+ run: npm ci
32
28
  if: ${{ steps.release.outputs.release_created }}
33
29
  env:
34
30
  DECAF_JS_SKIP_POSTINSTALL: 1
35
31
  HUSKY: 0
36
32
 
37
33
  - name: Build the project and generate docs
38
- run: yarn build
34
+ run: npm run build
39
35
  if: ${{ steps.release.outputs.release_created }}
40
36
 
41
37
  - name: Deploy docs to gh-pages
@@ -45,7 +41,7 @@ jobs:
45
41
  github_token: ${{ secrets.GITHUB_TOKEN }}
46
42
  publish_dir: ./docs
47
43
 
48
- - run: yarn publish --access=public
44
+ - run: npm publish --access=public
49
45
  env:
50
46
  NODE_AUTH_TOKEN: ${{secrets.DECAFHUB_NPM_TOKEN}}
51
47
  if: ${{ steps.release.outputs.release_created }}
@@ -1,14 +1,18 @@
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
12
  runs-on: ${{ matrix.os }}
9
13
  strategy:
10
14
  matrix:
11
- node: [14, 16, 18]
15
+ node: [16, 18, 20]
12
16
  os: [ubuntu-latest]
13
17
  steps:
14
18
  - uses: actions/checkout@v3
@@ -17,16 +21,16 @@ jobs:
17
21
  with:
18
22
  node-version: ${{ matrix.node }}
19
23
  registry-url: 'https://registry.npmjs.org'
20
- cache: 'yarn'
24
+ cache: 'npm'
21
25
 
22
26
  - name: Install dependencies
23
- run: yarn install --frozen-lockfile
27
+ run: npm ci
24
28
  env:
25
29
  DECAF_JS_SKIP_POSTINSTALL: 1
26
30
  HUSKY: 0
27
31
 
28
32
  - name: Run Tests
29
- run: yarn test --ci
33
+ run: npm test -- --ci
30
34
  env:
31
35
  TESTING_API_KEY: ${{ secrets.TESTING_API_KEY }}
32
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.1"
2
+ ".": "0.2.0"
3
3
  }
package/CHANGELOG.md CHANGED
@@ -1,5 +1,16 @@
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
+
3
14
  ## [0.1.1](https://github.com/teloscube/decaf-client-javascript-extras/compare/v0.1.0...v0.1.1) (2023-04-02)
4
15
 
5
16
 
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.1",
3
+ "version": "0.2.0",
4
4
  "description": "DECAF Client Extras",
5
5
  "author": "Teloscube Pte Ltd",
6
6
  "license": "MIT",
@@ -17,30 +17,30 @@
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.5.1",
36
- "@commitlint/config-conventional": "^17.4.4",
37
- "@decafhub/decaf-client": "^0.3.2",
38
- "@types/jest": "^29.5.0",
39
- "@types/node": "^18.15.11",
40
- "@typescript-eslint/eslint-plugin": "^5.57.0",
41
- "@typescript-eslint/parser": "^5.57.0",
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.37.0",
43
+ "eslint": "^8.40.0",
44
44
  "eslint-config-prettier": "^8.8.0",
45
45
  "eslint-config-standard": "^17.0.0",
46
46
  "eslint-plugin-import": "^2.27.5",
@@ -51,11 +51,11 @@
51
51
  "gh-pages": "^5.0.0",
52
52
  "husky": "^8.0.3",
53
53
  "jest": "^29.5.0",
54
- "lint-staged": "^13.2.0",
55
- "prettier": "^2.8.7",
56
- "ts-jest": "^29.0.5",
57
- "typedoc": "^0.23.28",
58
- "typescript": "^5.0.3"
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