Skip to content

Commit a79638a

Browse files
committed
Merge main to branch
1 parent 42d7c5c commit a79638a

File tree

90 files changed

+3446
-3475
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

90 files changed

+3446
-3475
lines changed

.changeset/config.json

Lines changed: 31 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,37 @@
22
"$schema": "https://unpkg.com/@changesets/config@3.1.3/schema.json",
33
"changelog": "@changesets/cli/changelog",
44
"commit": false,
5-
"fixed": [],
5+
"fixed": [
6+
[
7+
"@tko/bind",
8+
"@tko/binding.component",
9+
"@tko/binding.core",
10+
"@tko/binding.foreach",
11+
"@tko/binding.if",
12+
"@tko/binding.template",
13+
"@tko/build.knockout",
14+
"@tko/build.reference",
15+
"@tko/builder",
16+
"@tko/computed",
17+
"@tko/filter.punches",
18+
"@tko/lifecycle",
19+
"@tko/observable",
20+
"@tko/provider",
21+
"@tko/provider.attr",
22+
"@tko/provider.bindingstring",
23+
"@tko/provider.component",
24+
"@tko/provider.databind",
25+
"@tko/provider.multi",
26+
"@tko/provider.mustache",
27+
"@tko/provider.native",
28+
"@tko/provider.virtual",
29+
"@tko/utils",
30+
"@tko/utils.component",
31+
"@tko/utils.functionrewrite",
32+
"@tko/utils.jsx",
33+
"@tko/utils.parser"
34+
]
35+
],
636
"linked": [],
737
"access": "public",
838
"baseBranch": "main",

.github/dependabot.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ updates:
77
interval: weekly
88
day: monday
99
open-pull-requests-limit: 10
10+
ignore:
11+
# package will be removed
12+
- dependency-name: "*jasmine*"
1013
groups:
1114
# Group minor/patch devDependency updates into a single PR
1215
dev-dependencies:

.github/workflows/deploy-docs.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@ jobs:
2222
uses: actions/checkout@v6
2323

2424
- name: Setup Pages
25-
uses: actions/configure-pages@v5
25+
uses: actions/configure-pages@v6
2626

2727
- name: Setup Node
28-
uses: actions/setup-node@v4
28+
uses: actions/setup-node@v6
2929
with:
3030
node-version: 22
3131
cache: npm

.github/workflows/electron.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919

2020
steps:
2121
- uses: actions/checkout@v6
22-
- uses: actions/setup-node@v4
22+
- uses: actions/setup-node@v6
2323
with:
2424
node-version: 22
2525
- run: sudo apt-get install xvfb
Lines changed: 87 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,87 @@
1+
name: Backfill GitHub Release
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
target_sha:
7+
description: Published main commit SHA to tag and release
8+
required: true
9+
type: string
10+
11+
jobs:
12+
backfill-github-release:
13+
runs-on: ubuntu-latest
14+
15+
permissions:
16+
contents: write
17+
18+
steps:
19+
- name: Checkout published commit
20+
# actions/checkout v6.0.2
21+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd
22+
with:
23+
ref: ${{ inputs.target_sha }}
24+
fetch-depth: 0
25+
persist-credentials: false
26+
27+
- name: Validate target commit and determine release version
28+
id: version
29+
env:
30+
TARGET_SHA: ${{ inputs.target_sha }}
31+
run: |
32+
git fetch origin main --depth=1
33+
34+
if ! git merge-base --is-ancestor "$TARGET_SHA" "origin/main"; then
35+
echo "Target SHA $TARGET_SHA is not reachable from origin/main." >&2
36+
exit 1
37+
fi
38+
39+
version="$(node tools/release-version.cjs)"
40+
echo "version=$version" >> "$GITHUB_OUTPUT"
41+
42+
- name: Verify published npm version exists
43+
env:
44+
VERSION: ${{ steps.version.outputs.version }}
45+
run: |
46+
npm view "@tko/build.reference@$VERSION" version --registry=https://registry.npmjs.org >/dev/null
47+
48+
- name: Backfill GitHub release if missing
49+
env:
50+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
51+
VERSION: ${{ steps.version.outputs.version }}
52+
TARGET_SHA: ${{ inputs.target_sha }}
53+
run: |
54+
tag="v${VERSION}"
55+
56+
if gh release view "$tag" --repo "$GITHUB_REPOSITORY" >/dev/null 2>&1; then
57+
object_type="$(gh api "repos/$GITHUB_REPOSITORY/git/ref/tags/$tag" --jq '.object.type')"
58+
object_sha="$(gh api "repos/$GITHUB_REPOSITORY/git/ref/tags/$tag" --jq '.object.sha')"
59+
60+
if [ "$object_type" = "tag" ]; then
61+
existing_target="$(gh api "repos/$GITHUB_REPOSITORY/git/tags/$object_sha" --jq '.object.sha')"
62+
else
63+
existing_target="$object_sha"
64+
fi
65+
66+
if [ "$existing_target" = "$TARGET_SHA" ]; then
67+
echo "GitHub release $tag already exists on $TARGET_SHA; nothing to do."
68+
exit 0
69+
fi
70+
71+
echo "GitHub release $tag already exists on $existing_target, expected $TARGET_SHA." >&2
72+
exit 1
73+
fi
74+
75+
prerelease_flag=""
76+
case "$VERSION" in
77+
*-alpha*|*-beta*|*-rc*)
78+
prerelease_flag="--prerelease"
79+
;;
80+
esac
81+
82+
gh release create "$tag" \
83+
--repo "$GITHUB_REPOSITORY" \
84+
--target "$TARGET_SHA" \
85+
--title "TKO ${VERSION}" \
86+
--generate-notes \
87+
$prerelease_flag

.github/workflows/lint-and-typecheck.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
uses: actions/checkout@v6
1717

1818
- name: Setup Node.js
19-
uses: actions/setup-node@v4
19+
uses: actions/setup-node@v6
2020
with:
2121
node-version: 22.x
2222
cache: 'npm'

.github/workflows/main-build.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,23 +14,23 @@ jobs:
1414

1515
strategy:
1616
matrix:
17-
node-version: [22.x]
17+
node-version: [24.x]
1818

1919
steps:
2020
- name: Checkout code
2121
uses: actions/checkout@v6
2222

2323
- name: Setup Node.js
24-
uses: actions/setup-node@v4
24+
uses: actions/setup-node@v6
2525
with:
2626
node-version: ${{ matrix.node-version }}
2727
cache: 'npm'
2828

2929
- name: Install dependencies
3030
run: npm install
3131

32-
- name: Audit for vulnerabilities
33-
run: npm audit --audit-level=high
32+
- name: Audit for vulnerabilities (prod-mode)
33+
run: npm audit --audit-level=high --production
3434

3535
- name: Run Build
3636
run: make

.github/workflows/publish-check.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
uses: actions/checkout@v6
1616

1717
- name: Setup Node.js
18-
uses: actions/setup-node@v4
18+
uses: actions/setup-node@v6
1919
with:
2020
node-version: 22.x
2121
cache: 'npm'

0 commit comments

Comments
 (0)