@ampless/plugin-rss 0.2.0-alpha.8 → 0.2.0-beta.51

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 CHANGED
@@ -5,14 +5,14 @@
5
5
 
6
6
  [ampless](https://github.com/heavymoons/ampless) 向け RSS 2.0 フィードプラグイン。
7
7
 
8
- > **プレリリース / アルファ版。** v1.0 まではマイナーバージョンでも破壊的変更が入る可能性があります。
8
+ > **プレリリース / ベータ版。** v1.0 まではマイナーバージョンでも破壊的変更が入る可能性があります。
9
9
 
10
10
  投稿が公開・非公開・更新・削除されるたびに `feed.xml` を S3 に再生成します。Next.js の `/feed.xml` ルートが最新バージョンを配信します。
11
11
 
12
12
  ## インストール
13
13
 
14
14
  ```bash
15
- npm install @ampless/plugin-rss@alpha
15
+ npm install @ampless/plugin-rss@beta
16
16
  ```
17
17
 
18
18
  ## 設定
package/README.md CHANGED
@@ -5,14 +5,14 @@
5
5
 
6
6
  RSS 2.0 feed plugin for [ampless](https://github.com/heavymoons/ampless).
7
7
 
8
- > **Pre-release / alpha.** Breaking changes possible in any minor version until v1.0.
8
+ > **Pre-release / beta.** Breaking changes possible in any minor version until v1.0.
9
9
 
10
10
  Regenerates `feed.xml` to S3 every time a post is published, unpublished, updated, or deleted. The Next.js `/feed.xml` route serves the latest version through.
11
11
 
12
12
  ## Install
13
13
 
14
14
  ```bash
15
- npm install @ampless/plugin-rss@alpha
15
+ npm install @ampless/plugin-rss@beta
16
16
  ```
17
17
 
18
18
  ## Configure
package/dist/index.js CHANGED
@@ -48,8 +48,10 @@ function rssPlugin(options = {}) {
48
48
  }
49
49
  return definePlugin({
50
50
  name: "rss",
51
+ packageName: "@ampless/plugin-rss",
51
52
  apiVersion: 1,
52
53
  trust_level: "trusted",
54
+ capabilities: ["eventHooks", "writePublicAsset", "metadata"],
53
55
  hooks: {
54
56
  "content.published": rebuild,
55
57
  "content.unpublished": rebuild,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ampless/plugin-rss",
3
- "version": "0.2.0-alpha.8",
3
+ "version": "0.2.0-beta.51",
4
4
  "description": "RSS / Atom feed plugin for ampless",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -8,7 +8,8 @@
8
8
  ".": {
9
9
  "import": "./dist/index.js",
10
10
  "types": "./dist/index.d.ts"
11
- }
11
+ },
12
+ "./package.json": "./package.json"
12
13
  },
13
14
  "files": [
14
15
  "dist",
@@ -25,15 +26,30 @@
25
26
  "homepage": "https://github.com/heavymoons/ampless/tree/main/packages/plugin-rss#readme",
26
27
  "bugs": "https://github.com/heavymoons/ampless/issues",
27
28
  "dependencies": {
28
- "ampless": "0.2.0-alpha.8"
29
+ "ampless": "1.0.0-beta.51"
29
30
  },
30
31
  "keywords": [
31
32
  "ampless",
32
33
  "plugin",
34
+ "ampless-plugin",
33
35
  "rss",
34
36
  "atom",
35
37
  "feed"
36
38
  ],
39
+ "amplessPlugin": {
40
+ "apiVersion": 1,
41
+ "name": "rss",
42
+ "trustLevel": "trusted",
43
+ "capabilities": [
44
+ "eventHooks",
45
+ "writePublicAsset",
46
+ "metadata"
47
+ ],
48
+ "displayName": {
49
+ "en": "RSS Feed",
50
+ "ja": "RSS フィード"
51
+ }
52
+ },
37
53
  "scripts": {
38
54
  "build": "tsup",
39
55
  "dev": "tsup --watch",