haori 0.44.0 → 0.45.1
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/README.ja.md +5 -4
- package/README.md +5 -4
- package/dist/haori.cjs.js +14 -14
- package/dist/haori.es.js +1311 -1030
- package/dist/haori.iife.js +14 -14
- package/dist/index.d.ts +90 -1
- package/package.json +1 -1
package/README.ja.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Haori.js は、HTML 属性を中心にして動的な UI を実現する軽量なライブラリです。JavaScript をほとんど書かずに、データバインディング、条件分岐、繰り返し処理、フォームの双方向バインディング、サーバー通信などを HTML 属性で宣言できます。
|
|
4
4
|
|
|
5
|
-
バージョン: 0.
|
|
5
|
+
バージョン: 0.45.1
|
|
6
6
|
|
|
7
7
|
---
|
|
8
8
|
|
|
@@ -172,7 +172,7 @@ JS からバインドデータを読むには `Haori.Core.getBindingData(element
|
|
|
172
172
|
4. 新しい版数タグから GitHub Release を公開する
|
|
173
173
|
5. npm、jsDelivr、GitHub Release の assets が新しい版数を指すことを確認する
|
|
174
174
|
|
|
175
|
-
GitHub Release 起点で npm publish する workflow
|
|
175
|
+
GitHub Release 起点で npm publish する workflow は、npm の Trusted Publishing(OIDC)で認証します。長期トークンは使いません。npm のパッケージ設定で、この repository と `publish-on-release.yml` からの公開を Trusted Publisher として登録しておいてください。登録が無いと `npm publish` が認証エラーで失敗します。
|
|
176
176
|
|
|
177
177
|
6. 依存インストール
|
|
178
178
|
|
|
@@ -208,11 +208,12 @@ git push origin --tags
|
|
|
208
208
|
|
|
209
209
|
6. 新しいタグから GitHub Release を公開
|
|
210
210
|
|
|
211
|
-
このリポジトリの npm 公開は GitHub Actions で行います。現在の workflow は `release.published` を契機に起動し、パッケージをビルドしたうえで、対象 version が未公開のときだけ
|
|
211
|
+
このリポジトリの npm 公開は GitHub Actions で行います。現在の workflow は `release.published` を契機に起動し、パッケージをビルドしたうえで、対象 version が未公開のときだけ npm へ公開し、あわせて `dist.zip` を GitHub Release のアセットとして添付します。認証は npm の Trusted Publishing(OIDC)で行い、出自証明(provenance)が自動で付きます。
|
|
212
212
|
|
|
213
213
|
必要な前提条件:
|
|
214
214
|
|
|
215
|
-
-
|
|
215
|
+
- npm のパッケージ設定で、この repository と `publish-on-release.yml` が Trusted Publisher として登録されていること
|
|
216
|
+
- 公開ジョブに `id-token: write` の権限があること(OIDC トークンの発行に必要)
|
|
216
217
|
- 対象バージョンのタグから Release を `published` 状態で公開すること
|
|
217
218
|
|
|
218
219
|
公開前の推奨確認:
|
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Haori.js is a lightweight, HTML-first UI library that enables dynamic user interfaces primarily through HTML attributes. It lets you declare data bindings, conditional rendering, list rendering, form two-way binding, server fetches, and HTML imports without writing much JavaScript.
|
|
4
4
|
|
|
5
|
-
Version: 0.
|
|
5
|
+
Version: 0.45.1
|
|
6
6
|
|
|
7
7
|
---
|
|
8
8
|
|
|
@@ -174,7 +174,7 @@ Quick release memo:
|
|
|
174
174
|
4. Publish a GitHub Release from the new version tag.
|
|
175
175
|
5. Confirm npm, jsDelivr, and the GitHub Release assets reflect the new version.
|
|
176
176
|
|
|
177
|
-
|
|
177
|
+
The GitHub Release-driven npm publish workflow authenticates with npm trusted publishing (OIDC), so no long-lived token is used. Register this repository and `publish-on-release.yml` as a trusted publisher in the npm package settings; without that registration, `npm publish` fails with an authentication error.
|
|
178
178
|
|
|
179
179
|
6. Install dependencies
|
|
180
180
|
|
|
@@ -210,11 +210,12 @@ git push origin --tags
|
|
|
210
210
|
|
|
211
211
|
6. Publish a GitHub Release from the new tag
|
|
212
212
|
|
|
213
|
-
Publishing to npm is handled by GitHub Actions when a GitHub Release is published. This repository uses release workflows that trigger on `release.published`, build the package, publish it to npm
|
|
213
|
+
Publishing to npm is handled by GitHub Actions when a GitHub Release is published. This repository uses release workflows that trigger on `release.published`, build the package, publish it to npm if that package version is not already published, and upload `dist.zip` to the release assets. Authentication uses npm trusted publishing (OIDC), which also attaches provenance automatically.
|
|
214
214
|
|
|
215
215
|
Required repository setup:
|
|
216
216
|
|
|
217
|
-
- `
|
|
217
|
+
- This repository and `publish-on-release.yml` must be registered as a trusted publisher in the npm package settings.
|
|
218
|
+
- The publish job must have the `id-token: write` permission so it can request an OIDC token.
|
|
218
219
|
- The release must be published from the target version tag.
|
|
219
220
|
|
|
220
221
|
Recommended pre-release checks:
|