diff --git a/.changeset/clean-env-runtime-detection.md b/.changeset/clean-env-runtime-detection.md deleted file mode 100644 index 26e8598..0000000 --- a/.changeset/clean-env-runtime-detection.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"notcms": patch ---- - -Remove the bundler-specific `import.meta.env` fallback while retaining runtime environment lookup for Node.js, Deno, and Bun. diff --git a/.changeset/cli-login-and-pull-check.md b/.changeset/cli-login-and-pull-check.md deleted file mode 100644 index d7730bd..0000000 --- a/.changeset/cli-login-and-pull-check.md +++ /dev/null @@ -1,12 +0,0 @@ ---- -"notcms": minor ---- - -Add browser login to the CLI and a CI check mode for pull - -- `notcms login`: opens the dashboard in the browser, mints a secret key for the selected workspace, and saves `NOTCMS_SECRET_KEY` / `NOTCMS_WORKSPACE_ID` to an env file (default `.env.local`) -- `notcms init`: offers to log in via browser when credentials are missing -- `notcms pull --check`: verifies the local schema is up to date without writing (exits 1 when stale, for CI/CD) -- `notcms --version` now reports the actual version from package.json -- The CLI now exits with code 1 on unhandled errors (previously errors were logged but the process exited 0) -- Env files written by login are kept owner-only (0600): new files are created with that mode, and existing files with group/other access are tightened after the secret is written (POSIX only) diff --git a/.changeset/modern-tools-use-node-24.md b/.changeset/modern-tools-use-node-24.md deleted file mode 100644 index e966a56..0000000 --- a/.changeset/modern-tools-use-node-24.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"notcms": minor ---- - -Use Node.js 24 and pnpm 11 for development while keeping the published packages compatible with Node.js 18.17 and later. diff --git a/packages/notcms/CHANGELOG.md b/packages/notcms/CHANGELOG.md index a0489b5..fb5093c 100644 --- a/packages/notcms/CHANGELOG.md +++ b/packages/notcms/CHANGELOG.md @@ -1,5 +1,24 @@ # notcms +## 0.2.0 + +### Minor Changes + +- 24036a5: Add browser login to the CLI and a CI check mode for pull + + - `notcms login`: opens the dashboard in the browser, mints a secret key for the selected workspace, and saves `NOTCMS_SECRET_KEY` / `NOTCMS_WORKSPACE_ID` to an env file (default `.env.local`) + - `notcms init`: offers to log in via browser when credentials are missing + - `notcms pull --check`: verifies the local schema is up to date without writing (exits 1 when stale, for CI/CD) + - `notcms --version` now reports the actual version from package.json + - The CLI now exits with code 1 on unhandled errors (previously errors were logged but the process exited 0) + - Env files written by login are kept owner-only (0600): new files are created with that mode, and existing files with group/other access are tightened after the secret is written (POSIX only) + +- 39ea706: Use Node.js 24 and pnpm 11 for development while keeping the published packages compatible with Node.js 18.17 and later. + +### Patch Changes + +- 2fcf3c9: Remove the bundler-specific `import.meta.env` fallback while retaining runtime environment lookup for Node.js, Deno, and Bun. + ## 0.1.0 ### Minor Changes diff --git a/packages/notcms/package.json b/packages/notcms/package.json index 00ebd0e..52b298d 100644 --- a/packages/notcms/package.json +++ b/packages/notcms/package.json @@ -1,6 +1,6 @@ { "name": "notcms", - "version": "0.1.0", + "version": "0.2.0", "description": "NotCMS makes it easy to build a CMS for your website.", "type": "module", "main": "./dist/index.cjs", @@ -16,7 +16,9 @@ "bin": { "notcms": "./dist/cli.cjs" }, - "files": ["dist/**/*"], + "files": [ + "dist/**/*" + ], "scripts": { "build": "tsup", "dev": "tsup --watch",