ampless 1.0.0-alpha.10 → 1.0.0-alpha.12

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
@@ -12,7 +12,7 @@ AWS Amplify 向け CMS コアライブラリ。
12
12
  `ampless` は [ampless](https://github.com/heavymoons/ampless) CMS を支えるコアライブラリです。以下を公開しています:
13
13
 
14
14
  - `defineConfig()` — ユーザー向け `cms.config.ts` スキーマ
15
- - `defineSchema()` — コンテンツタイプ定義(カスタムコンテンツタイプシステムは v0.2 で完成予定)
15
+ - `defineSchema()` — コンテンツタイプ定義(フルカスタムコンテンツタイプシステムは将来対応予定)
16
16
  - `Post` / `Page` / `Media` / `AuthContext` 共有型
17
17
  - プラグインコントラクト(`definePlugin`、`AmplessPlugin`、フック、`PluginRuntimeContext`、イベント型、`escapeXml` / `formatPublicAssetUrl`)
18
18
  - DI スタイルの `setPostsProvider()` — テンプレートの Amplify データラッパーが注入します。未設定の場合は API がダミーの投稿を返すため、AWS を接続する前にプロトタイプを作成できます。
package/README.md CHANGED
@@ -12,7 +12,7 @@ CMS core library for AWS Amplify.
12
12
  `ampless` is the core library that powers the [ampless](https://github.com/heavymoons/ampless) CMS. It exposes:
13
13
 
14
14
  - `defineConfig()` — the user-facing `cms.config.ts` schema
15
- - `defineSchema()` — content type definitions (full custom-content-type system in v0.2)
15
+ - `defineSchema()` — content type definitions (full custom-content-type system planned)
16
16
  - The `Post` / `Page` / `Media` / `AuthContext` shared types
17
17
  - The plugin contract (`definePlugin`, `AmplessPlugin`, hooks, `PluginRuntimeContext`, event types, `escapeXml` / `formatPublicAssetUrl`)
18
18
  - A DI-style `setPostsProvider()` that the templates' Amplify-data wrapper plugs into; without one the API serves built-in dummy posts so users can prototype before wiring AWS
package/dist/index.d.ts CHANGED
@@ -318,9 +318,9 @@ interface Config {
318
318
  locale?: string;
319
319
  /**
320
320
  * Active plugins. Each entry is the result of a plugin factory call
321
- * (e.g. `seoPlugin({ ... })`) or a raw AmplessPlugin object. Strings are
322
- * accepted for backward compatibility with the legacy v0 config but are
323
- * ignored by the runtime.
321
+ * (e.g. `seoPlugin({ ... })`) or a raw AmplessPlugin object. Strings
322
+ * are accepted by the type for tolerance but are ignored by the
323
+ * runtime only factory results and plugin objects take effect.
324
324
  */
325
325
  plugins?: Array<AmplessPlugin | string>;
326
326
  /**
@@ -421,8 +421,8 @@ declare function hasKvStore(): boolean;
421
421
  /**
422
422
  * Access the injected `KvStore` directly. Use the site-setting helpers
423
423
  * (`getSiteSetting` etc.) when storing per-site configuration; reach
424
- * for this lower-level handle only when you need a different PK
425
- * namespace (e.g. `mcp-tokens`).
424
+ * for this lower-level handle when you need a different PK namespace
425
+ * (plugin caches, ad-hoc shared state, etc.).
426
426
  */
427
427
  declare function getKvStore(): KvStore;
428
428
  declare const SITE_CONFIG_PK = "siteconfig";
@@ -480,7 +480,7 @@ declare function escapeXml(s: string): string;
480
480
  *
481
481
  * `decodeAwsJson` tolerates both: pass strings through `JSON.parse`,
482
482
  * everything else as-is, fall back to the raw string on parse errors
483
- * so legacy bare-string rows aren't lost.
483
+ * so bare-string rows aren't lost.
484
484
  */
485
485
  /**
486
486
  * Serialise a value for an AWSJSON variable. `undefined` / `null` both
@@ -497,7 +497,7 @@ declare function decodeAwsJson(value: unknown): unknown;
497
497
 
498
498
  /**
499
499
  * Build the public S3 URL for an object key, in the regional virtual-host
500
- * style: `https://{bucket}.s3.{region}.amazonaws.com/{key}`. The legacy
500
+ * style: `https://{bucket}.s3.{region}.amazonaws.com/{key}`. The
501
501
  * non-regional form (`s3.amazonaws.com`) issues redirects and is avoided.
502
502
  */
503
503
  declare function formatPublicAssetUrl(bucket: string, region: string, key: string): string;
package/dist/index.js CHANGED
@@ -16,7 +16,7 @@ var DUMMY_POSTS = [
16
16
  title: "Hello, ampless",
17
17
  excerpt: "Welcome to your new ampless-powered blog. This is the first post.",
18
18
  format: "markdown",
19
- body: "# Hello, ampless\n\nWelcome to your new blog powered by **ampless** \u2014 a serverless CMS for AWS Amplify.\n\nThis post is served from the built-in dummy content. Once you run `npx ampx sandbox` and create posts from the admin panel, they will replace this placeholder.\n\n## What to try next\n\n- Edit `cms.config.ts` to customize your site\n- Run `npx ampx sandbox` to deploy the backend\n- Visit `/admin` to manage content (coming in Phase 4)\n",
19
+ body: "# Hello, ampless\n\nWelcome to your new blog powered by **ampless** \u2014 a serverless CMS for AWS Amplify.\n\nThis post is served from the built-in dummy content. Once you run `npx ampx sandbox` and create posts from the admin panel, they will replace this placeholder.\n\n## What to try next\n\n- Edit `cms.config.ts` to customize your site\n- Run `npx ampx sandbox` to deploy the backend\n- Visit `/admin` to manage content\n",
20
20
  status: "published",
21
21
  publishedAt: "2026-04-01T00:00:00Z",
22
22
  tags: ["welcome"]
@@ -27,7 +27,7 @@ var DUMMY_POSTS = [
27
27
  title: "About ampless",
28
28
  excerpt: "Why ampless exists, and what makes it different from other CMS options.",
29
29
  format: "markdown",
30
- body: '# About ampless\n\nampless is an open-source CMS built natively for AWS Amplify \u2014 the "EmDash for AWS" position.\n\n## Key differences\n\n- **AWS-native**: Uses Amplify Gen 2, DynamoDB, S3, Cognito, Lambda\n- **Plugin-first**: Core stays small, features come from plugins\n- **AI-first**: MCP Server included from v0.1\n- **MIT licensed**: No commercial barriers\n',
30
+ body: '# About ampless\n\nampless is an open-source CMS built natively for AWS Amplify \u2014 the "EmDash for AWS" position.\n\n## Key differences\n\n- **AWS-native**: Uses Amplify Gen 2, DynamoDB, S3, Cognito, Lambda\n- **Plugin-first**: Core stays small, features come from plugins\n- **AI-first**: MCP Server included out of the box\n- **MIT licensed**: No commercial barriers\n',
31
31
  status: "published",
32
32
  publishedAt: "2026-04-02T00:00:00Z",
33
33
  tags: ["meta"]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ampless",
3
- "version": "1.0.0-alpha.10",
3
+ "version": "1.0.0-alpha.12",
4
4
  "description": "Serverless CMS for AWS Amplify",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -29,7 +29,7 @@
29
29
  "homepage": "https://github.com/heavymoons/ampless#readme",
30
30
  "bugs": "https://github.com/heavymoons/ampless/issues",
31
31
  "dependencies": {
32
- "@jsquash/webp": "^1.4.0"
32
+ "@jsquash/webp": "^1.5.0"
33
33
  },
34
34
  "keywords": [
35
35
  "cms",