@plasius/react-state 1.0.7 → 1.0.9

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.
@@ -25,6 +25,53 @@ jobs:
25
25
  - name: Install deps (CI)
26
26
  run: npm ci
27
27
 
28
+ - name: Test (coverage)
29
+ run: npm run test -- --coverage
30
+
31
+ - name: Upload coverage to Codecov
32
+ uses: codecov/codecov-action@v4
33
+ with:
34
+ token: ${{ secrets.CODECOV_TOKEN }}
35
+ files: ./coverage/lcov.info
36
+ flags: unittests
37
+ fail_ci_if_error: true
38
+
39
+ - name: Build
40
+ run: npm run build --if-present
41
+
42
+ - name: Generate SBOM (CycloneDX)
43
+ run: npm sbom --sbom-format=cyclonedx --sbom-type=library --omit dev > sbom.cdx.json
44
+
45
+ - name: Attest SBOM (GitHub Artifact Attestations)
46
+ uses: actions/attest-build-provenance@v3
47
+ with:
48
+ subject-path: sbom.cdx.json
49
+
50
+ - name: Bump version & decide publish flags
51
+ id: pkg
52
+ env:
53
+ NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
54
+ run: |
55
+ set -euo pipefail
56
+ git config user.name "github-actions[bot]"
57
+ git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
58
+ NEW_VER=$(npm version patch -m "chore: release v%s [skip ci]")
59
+ echo "New version: $NEW_VER"
60
+ git push --follow-tags
61
+
62
+ # Expose tag (vX.Y.Z) and version (X.Y.Z) for later steps
63
+ VER_NO_V=${NEW_VER#v}
64
+ echo "tag=$NEW_VER" >> "$GITHUB_OUTPUT"
65
+ echo "version=$VER_NO_V" >> "$GITHUB_OUTPUT"
66
+
67
+ NAME=$(node -p "require('./package.json').name")
68
+ echo "name=$NAME" >> "$GITHUB_OUTPUT"
69
+ if npm view "$NAME" version >/dev/null 2>&1; then
70
+ echo "flags=" >> "$GITHUB_OUTPUT"
71
+ else
72
+ echo "flags=--access public" >> "$GITHUB_OUTPUT"
73
+ fi
74
+
28
75
  - name: Update CHANGELOG.md (move Unreleased to new version)
29
76
  env:
30
77
  VERSION: ${{ steps.pkg.outputs.version }}
@@ -111,53 +158,6 @@ jobs:
111
158
  git commit -m "docs(changelog): release v${VERSION}"
112
159
  git push
113
160
 
114
- - name: Test (coverage)
115
- run: npm run test -- --coverage
116
-
117
- - name: Upload coverage to Codecov
118
- uses: codecov/codecov-action@v4
119
- with:
120
- token: ${{ secrets.CODECOV_TOKEN }}
121
- files: ./coverage/lcov.info
122
- flags: unittests
123
- fail_ci_if_error: true
124
-
125
- - name: Build
126
- run: npm run build --if-present
127
-
128
- - name: Generate SBOM (CycloneDX)
129
- run: npm sbom --sbom-format=cyclonedx --sbom-type=library --omit dev > sbom.cdx.json
130
-
131
- - name: Attest SBOM (GitHub Artifact Attestations)
132
- uses: actions/attest-build-provenance@v3
133
- with:
134
- subject-path: sbom.cdx.json
135
-
136
- - name: Bump version & decide publish flags
137
- id: pkg
138
- env:
139
- NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
140
- run: |
141
- set -euo pipefail
142
- git config user.name "github-actions[bot]"
143
- git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
144
- NEW_VER=$(npm version patch -m "chore: release v%s [skip ci]")
145
- echo "New version: $NEW_VER"
146
- git push --follow-tags
147
-
148
- # Expose tag (vX.Y.Z) and version (X.Y.Z) for later steps
149
- VER_NO_V=${NEW_VER#v}
150
- echo "tag=$NEW_VER" >> "$GITHUB_OUTPUT"
151
- echo "version=$VER_NO_V" >> "$GITHUB_OUTPUT"
152
-
153
- NAME=$(node -p "require('./package.json').name")
154
- echo "name=$NAME" >> "$GITHUB_OUTPUT"
155
- if npm view "$NAME" version >/dev/null 2>&1; then
156
- echo "flags=" >> "$GITHUB_OUTPUT"
157
- else
158
- echo "flags=--access public" >> "$GITHUB_OUTPUT"
159
- fi
160
-
161
161
  - name: Create GitHub Release from tag (first-party)
162
162
  env:
163
163
  GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
package/CHANGELOG.md CHANGED
@@ -21,19 +21,15 @@ The format is based on **[Keep a Changelog](https://keepachangelog.com/en/1.1.0/
21
21
  - **Security**
22
22
  - (placeholder)
23
23
 
24
- ## [] - 2025-09-17
25
-
26
- - **Added**
27
- - (placeholder) Add new hooks, scoped store features, or context helpers here.
28
-
29
- - **Changed**
30
- - (placeholder)
24
+ ## [1.0.9] - 2025-09-17
31
25
 
32
26
  - **Fixed**
33
- - (placeholder)
27
+ - CD Pipeline ordering fix for version in CHANGELOG.md
34
28
 
35
- - **Security**
36
- - (placeholder)
29
+ ## [1.0.7] - 2025-09-17
30
+
31
+ - **Added**
32
+ - Code coverage added.
37
33
 
38
34
  ---
39
35
 
@@ -70,6 +66,7 @@ The format is based on **[Keep a Changelog](https://keepachangelog.com/en/1.1.0/
70
66
 
71
67
  ---
72
68
 
73
- [Unreleased]: https://github.com/Plasius-LTD/react-state/compare/v...HEAD
69
+ [Unreleased]: https://github.com/Plasius-LTD/react-state/compare/v1.0.9...HEAD
74
70
  [1.0.0]: https://github.com/Plasius-LTD/react-state/releases/tag/v1.0.0
75
- []: https://github.com/Plasius-LTD/react-state/releases/tag/v
71
+ [1.0.7]: https://github.com/Plasius-LTD/react-state/releases/tag/v1.0.7
72
+ [1.0.9]: https://github.com/Plasius-LTD/react-state/releases/tag/v1.0.9
package/README.md CHANGED
@@ -2,6 +2,7 @@
2
2
 
3
3
  [![npm version](https://img.shields.io/npm/v/@plasius/react-state.svg)](https://www.npmjs.com/package/@plasius/react-state)
4
4
  [![Build Status](https://img.shields.io/github/actions/workflow/status/Plasius-LTD/react-state/ci.yml?branch=main&label=build&style=flat)](https://github.com/plasius/react-state/actions/workflows/ci.yml)
5
+ [![coverage](https://img.shields.io/codecov/c/github/Plasius-LTD/react-state)](https://codecov.io/gh/Plasius-LTD/react-state)
5
6
  [![License](https://img.shields.io/github/license/Plasius-LTD/react-state)](./LICENSE)
6
7
  [![Code of Conduct](https://img.shields.io/badge/code%20of%20conduct-yes-blue.svg)](./CODE_OF_CONDUCT.md)
7
8
  [![Security Policy](https://img.shields.io/badge/security%20policy-yes-orange.svg)](./SECURITY.md)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plasius/react-state",
3
- "version": "1.0.7",
3
+ "version": "1.0.9",
4
4
  "description": "Tiny, testable, typesafe React Scoped Store helper.",
5
5
  "keywords": [
6
6
  "react",
package/sbom.cdx.json CHANGED
@@ -2,10 +2,10 @@
2
2
  "$schema": "http://cyclonedx.org/schema/bom-1.5.schema.json",
3
3
  "bomFormat": "CycloneDX",
4
4
  "specVersion": "1.5",
5
- "serialNumber": "urn:uuid:070834d4-7af4-4992-bf40-fcf52c4bf035",
5
+ "serialNumber": "urn:uuid:06de798d-91ef-468a-ba57-c154fc873251",
6
6
  "version": 1,
7
7
  "metadata": {
8
- "timestamp": "2025-09-17T15:31:48.552Z",
8
+ "timestamp": "2025-09-17T16:05:33.989Z",
9
9
  "lifecycles": [
10
10
  {
11
11
  "phase": "build"
@@ -19,14 +19,14 @@
19
19
  }
20
20
  ],
21
21
  "component": {
22
- "bom-ref": "@plasius/react-state@1.0.6",
22
+ "bom-ref": "@plasius/react-state@1.0.8",
23
23
  "type": "library",
24
24
  "name": "react-state",
25
- "version": "1.0.6",
25
+ "version": "1.0.8",
26
26
  "scope": "required",
27
27
  "author": "Plasius LTD",
28
28
  "description": "Tiny, testable, typesafe React Scoped Store helper.",
29
- "purl": "pkg:npm/%40plasius/react-state@1.0.6",
29
+ "purl": "pkg:npm/%40plasius/react-state@1.0.8",
30
30
  "properties": [
31
31
  {
32
32
  "name": "cdx:npm:package:path",
@@ -59,7 +59,7 @@
59
59
  "components": [],
60
60
  "dependencies": [
61
61
  {
62
- "ref": "@plasius/react-state@1.0.6",
62
+ "ref": "@plasius/react-state@1.0.8",
63
63
  "dependsOn": []
64
64
  }
65
65
  ]