spyne 0.21.2 → 0.22.2
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.
- package/.github/workflows/publish.yml +20 -12
- package/README.md +2 -1
- package/SECURITY.md +8 -0
- package/lib/spyne.esm.js +3 -3
- package/lib/spyne.esm.js.LICENSE.txt +16 -0
- package/lib/spyne.esm.js.map +1 -1
- package/lib/spyne.umd.js +2 -2
- package/lib/spyne.umd.js.LICENSE.txt +2 -2
- package/package.json +10 -7
- package/rollup.config.js +1 -1
- package/src/spyne/channels/channels-map.js +4 -0
- package/src/spyne/channels/spyne-channel-ai.js +45 -0
- package/src/spyne/channels/spyne-channel-route.js +1 -1
- package/src/spyne/spyne-app.js +2 -2
- package/src/spyne/utils/channel-payload-filter.js +1 -1
- package/src/spyne/utils/sanitize-data.js +2 -2
- package/src/spyne/utils/spyne-app-properties.js +7 -0
- package/src/spyne/views/dom-element-template.js +308 -54
- package/src/spyne/views/view-stream-selector.js +28 -1
- package/src/tests/views/dom-el-template.test.js +173 -0
|
@@ -2,10 +2,10 @@ name: Publish Package
|
|
|
2
2
|
|
|
3
3
|
on:
|
|
4
4
|
release:
|
|
5
|
-
types: [published]
|
|
5
|
+
types: [published] # Publishes when you publish a GitHub Release
|
|
6
6
|
|
|
7
7
|
permissions:
|
|
8
|
-
id-token: write
|
|
8
|
+
id-token: write # Required for npm trusted publishing / OIDC
|
|
9
9
|
contents: read
|
|
10
10
|
|
|
11
11
|
jobs:
|
|
@@ -14,34 +14,42 @@ jobs:
|
|
|
14
14
|
|
|
15
15
|
steps:
|
|
16
16
|
# 1. Checkout repo
|
|
17
|
-
-
|
|
17
|
+
- name: Checkout repo
|
|
18
|
+
uses: actions/checkout@v5
|
|
18
19
|
|
|
19
|
-
# 2. Setup Node
|
|
20
|
-
#
|
|
21
|
-
-
|
|
20
|
+
# 2. Setup Node
|
|
21
|
+
# Do not set registry-url or NODE_AUTH_TOKEN when using npm trusted publishing
|
|
22
|
+
- name: Setup Node
|
|
23
|
+
uses: actions/setup-node@v5
|
|
22
24
|
with:
|
|
23
25
|
node-version: '22'
|
|
24
26
|
|
|
25
|
-
# 3. Ensure modern npm
|
|
27
|
+
# 3. Ensure modern npm with trusted publishing / provenance support
|
|
26
28
|
- name: Update npm to latest
|
|
27
29
|
run: npm install -g npm@latest
|
|
28
30
|
|
|
29
|
-
# 4.
|
|
31
|
+
# 4. Confirm versions for debugging
|
|
32
|
+
- name: Confirm Node and npm versions
|
|
33
|
+
run: |
|
|
34
|
+
node --version
|
|
35
|
+
npm --version
|
|
36
|
+
|
|
37
|
+
# 5. Install dependencies
|
|
30
38
|
- name: Install dependencies
|
|
31
39
|
run: npm ci
|
|
32
40
|
|
|
33
|
-
#
|
|
41
|
+
# 6. Build UMD
|
|
34
42
|
- name: Build UMD
|
|
35
43
|
run: npm run build
|
|
36
44
|
|
|
37
|
-
#
|
|
45
|
+
# 7. Build ESM
|
|
38
46
|
- name: Build ESM
|
|
39
47
|
run: npm run build:esm
|
|
40
48
|
|
|
41
|
-
#
|
|
49
|
+
# 8. Verify build artifacts exist
|
|
42
50
|
- name: Verify dist
|
|
43
51
|
run: npm run verify:dist
|
|
44
52
|
|
|
45
|
-
#
|
|
53
|
+
# 9. Publish to npm using GitHub trusted publishing
|
|
46
54
|
- name: Publish to npm
|
|
47
55
|
run: npm publish --provenance
|
package/README.md
CHANGED
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
[](https://www.npmjs.com/package/spyne)
|
|
4
4
|
[](https://github.com/spynejs/spyne/blob/master/LICENSE)
|
|
5
|
-
|
|
5
|
+

|
|
6
|
+
|
|
6
7
|
|
|
7
8
|
SpyneJS is a full frontend framework for building modular, scalable web applications — structured for collaborative development between developers and AI assistants.
|
|
8
9
|
|