bearminion 1.9.0 → 1.9.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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # bearminion
2
2
 
3
+ ## 1.9.1
4
+
5
+ ### Patch Changes
6
+
7
+ - dd5c397: The Vercel function that `npx bearminion add form resend --host vercel` writes now imports the handler as `../src/forms/contact.js`. Vercel runs the function as an ES module, which does not guess file extensions, so the extensionless import failed with `ERR_MODULE_NOT_FOUND`. A site that already has the old `api/contact.ts` needs the same one-word change, or `npx bearminion add form resend --host vercel --overwrite`.
8
+
3
9
  ## 1.9.0
4
10
 
5
11
  ### Minor Changes
package/dist/cli.js CHANGED
@@ -166,7 +166,8 @@ const GLUE = [{
166
166
  name: "vercel",
167
167
  description: "A Vercel Function",
168
168
  path: "api/contact.ts",
169
- source: `import form from '../src/forms/contact'
169
+ source: `// The ".js" is needed: Vercel runs this as an ES module, which does not guess file extensions. The file is contact.ts.
170
+ import form from '../src/forms/contact.js'
170
171
 
171
172
  export const POST = (request: Request) => form.fetch(request, process.env)
172
173
  export const OPTIONS = POST
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bearminion",
3
- "version": "1.9.0",
3
+ "version": "1.9.1",
4
4
  "description": "A git-based CMS for Astro with no database and no server: JSON content in your repo, edited by clicking on the page during astro dev.",
5
5
  "license": "MIT",
6
6
  "author": "Jakub Lange",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "schemaVersion": 1,
3
3
  "template": "default",
4
- "version": "1.9.0",
4
+ "version": "1.9.1",
5
5
  "files": {
6
6
  "src/components/atoms/Button.astro": {
7
7
  "hash": "7be42b3dc3a3b59bec169de32a9d801904689e2705473d1945724658dc799043",