Skip to content

Commit

Permalink
feature: v2 release (#12)
Browse files Browse the repository at this point in the history
BREAKING CHANGE:

Requires the following versions:

Angular v13
NgRx v13
  • Loading branch information
timdeschryver authored Nov 23, 2021
1 parent d8f33c2 commit 3c18605
Show file tree
Hide file tree
Showing 6 changed files with 41 additions and 37 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,15 @@ on:
push:
branches:
- 'main'
- 'beta'
pull_request: {}

jobs:
build_test_release:
strategy:
matrix:
node-version: ${{ fromJSON(github.ref == 'refs/heads/main' && '[16]' || '[12,14,16]') }}
os: ${{ fromJSON(github.ref == 'refs/heads/main' && '["ubuntu-latest"]' || '["ubuntu-latest", "windows-latest"]') }}
node-version: ${{ fromJSON((github.ref == 'refs/heads/main' || github.ref == 'refs/heads/beta') && '[16]' || '[12,14,16]') }}
os: ${{ fromJSON((github.ref == 'refs/heads/main' || github.ref == 'refs/heads/beta') && '["ubuntu-latest"]' || '["ubuntu-latest", "windows-latest"]') }}
runs-on: ${{ matrix.os }}

steps:
Expand All @@ -27,7 +28,7 @@ jobs:
- name: test
run: npm run test
- name: Release
if: github.repository == 'timdeschryver/ngrx-immer' && github.ref == 'refs/heads/main'
if: github.repository == 'timdeschryver/ngrx-immer' && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/beta')
run: npx semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down
19 changes: 10 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,25 +2,26 @@
"name": "ngrx-immer",
"version": "0.0.0-development",
"scripts": {
"test": "uvu -r ts-node/register -r tsconfig-paths/register src tests",
"test": "uvu -r tsm -r tsconfig-paths/register src tests",
"build": "ng-packagr -p src/ng-package.json",
"postbuild": "cpy README.md LICENSE dist && cpy schematics ../dist --parents --cwd=src"
},
"devDependencies": {
"@angular/compiler": "^12.0.0",
"@angular/compiler-cli": "^12.0.0",
"@angular/core": "^12.0.0",
"@ngrx/component-store": "^12.0.0",
"@ngrx/store": "^12.0.0",
"@angular/compiler": "^13.0.0",
"@angular/compiler-cli": "^13.0.0",
"@angular/core": "^13.0.0",
"@ngrx/component-store": "^13.0.1",
"@ngrx/store": "^13.0.1",
"cpy-cli": "^3.1.1",
"immer": "^8.0.0",
"ng-packagr": "^12.0.0",
"ng-packagr": "^13.0.0",
"prettier": "^2.2.1",
"rimraf": "^3.0.2",
"rxjs": "^6.6.3",
"rxjs": "~7.4.0",
"ts-node": "^10.2.1",
"tsconfig-paths": "^3.10.1",
"typescript": "4.2.4",
"tsm": "^2.1.4",
"typescript": "4.4.4",
"uvu": "^0.5.1"
}
}
1 change: 1 addition & 0 deletions src/component-store/tests/immer-component-store.test.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import '@angular/compiler';
import { test } from 'uvu';
import * as assert from 'uvu/assert';

Expand Down
4 changes: 2 additions & 2 deletions src/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@
},
"peerDependencies": {
"immer": ">=7.0.0",
"@ngrx/component-store": ">=11.0.0",
"@ngrx/store": ">=11.0.0"
"@ngrx/component-store": ">=13.0.0",
"@ngrx/store": ">=13.0.0"
},
"peerDependenciesMeta": {
"@ngrx/component-store": {
Expand Down
1 change: 1 addition & 0 deletions src/store/tests/create-immer-reducer.test.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import '@angular/compiler';
import { test } from 'uvu';
import * as assert from 'uvu/assert';

Expand Down
46 changes: 23 additions & 23 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
{
"compilerOptions": {
"target": "es5",
"module": "commonjs",
"baseUrl": ".",
"rootDir": ".",
"strict": true ,
"noImplicitThis": true,
"alwaysStrict": true,
"noUnusedLocals": true ,
"noUnusedParameters": true,
"noImplicitReturns": true,
"esModuleInterop": true,
"experimentalDecorators": true,
"emitDecoratorMetadata": true,
"paths": {
"ngrx-immer": ["./src"],
"ngrx-immer/shared": ["./src/shared"],
"ngrx-immer/component-store": ["./src/component-store"],
"ngrx-immer/store": ["./src/store"]
}
},
"exclude": ["node_modules"]
}
"compilerOptions": {
"target": "es5",
"module": "commonjs",
"baseUrl": ".",
"rootDir": ".",
"strict": true,
"noImplicitThis": true,
"alwaysStrict": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"noImplicitReturns": true,
"esModuleInterop": true,
"experimentalDecorators": true,
"emitDecoratorMetadata": true,
"paths": {
"ngrx-immer": ["./src"],
"ngrx-immer/shared": ["./src/shared"],
"ngrx-immer/component-store": ["./src/component-store"],
"ngrx-immer/store": ["./src/store"]
}
},
"exclude": ["node_modules"]
}

0 comments on commit 3c18605

Please sign in to comment.