@gnosticdev/hono-actions 1.0.2 → 1.0.4

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/dist/index.d.ts CHANGED
@@ -129,7 +129,7 @@ type ActionErrorCode = 'INPUT_VALIDATION_ERROR' | 'EXTERNAL_API_ERROR' | 'INTERN
129
129
  declare class HonoActionError<TSchema extends v.ObjectSchema<v.ObjectEntries, v.ErrorMessage<v.ObjectIssue> | undefined>, TMessage extends string, TCode extends ActionErrorCode, TIssue extends v.InferIssue<TSchema>> extends Error {
130
130
  code: TCode;
131
131
  issue?: TIssue;
132
- constructor({ message, code, issue }: {
132
+ constructor({ message, code, issue, }: {
133
133
  message: TMessage;
134
134
  code: TCode;
135
135
  issue?: TIssue;
package/dist/index.js CHANGED
@@ -84,15 +84,15 @@ function defineHonoAction({ path: path2, schema, handler }) {
84
84
  }
85
85
 
86
86
  // src/integration.ts
87
+ import fs from "fs/promises";
88
+ import path from "path";
89
+ import { z } from "astro/zod";
87
90
  import {
88
91
  addVirtualImports,
89
92
  createResolver,
90
93
  defineIntegration
91
94
  } from "astro-integration-kit";
92
- import { z } from "astro/zod";
93
95
  import fg from "fast-glob";
94
- import fs from "fs/promises";
95
- import path from "path";
96
96
 
97
97
  // src/integration-files.ts
98
98
  function generateRouter(opts) {
@@ -130,7 +130,7 @@ var getAstroHandler = (adapter) => {
130
130
  case "cloudflare":
131
131
  return `
132
132
  // Generated by Hono Actions Integration
133
- import router from 'virtual:hono-actions/router'
133
+ import router from './router.js'
134
134
  import type { APIContext, APIRoute } from 'astro'
135
135
 
136
136
  const handler: APIRoute<APIContext> = async (ctx) => {
package/package.json CHANGED
@@ -8,6 +8,7 @@
8
8
  "astro-integration-kit": "^0.19.0",
9
9
  "fast-glob": "^3.3.3",
10
10
  "hono": "^4.9.4",
11
+ "release-it": "^19.0.4",
11
12
  "valibot": "^1.1.0"
12
13
  },
13
14
  "description": "Type-safe Hono server actions with build-in validation",
@@ -17,18 +18,18 @@
17
18
  "tsup": "^8.5.0",
18
19
  "typescript": "5.9.2"
19
20
  },
20
- "engineStrict": true,
21
21
  "engines": {
22
22
  "node": ">=22.0.0"
23
23
  },
24
+ "engineStrict": true,
24
25
  "exports": {
25
26
  ".": {
26
- "types": "./dist/index.d.ts",
27
- "default": "./dist/index.js"
27
+ "default": "./dist/index.js",
28
+ "types": "./dist/index.d.ts"
28
29
  },
29
30
  "./*": {
30
- "types": "./dist/*.d.ts",
31
- "default": "./dist/*.js"
31
+ "default": "./dist/*.js",
32
+ "types": "./dist/*.d.ts"
32
33
  }
33
34
  },
34
35
  "files": [
@@ -54,9 +55,14 @@
54
55
  "scripts": {
55
56
  "build": "tsup",
56
57
  "dev": "tsup --watch",
57
- "prepublishOnly": "bun run build"
58
+ "prepublishOnly": "bun run build",
59
+ "publish": "bun run release",
60
+ "release": "release-it",
61
+ "release:major": "release-it major",
62
+ "release:minor": "release-it minor",
63
+ "release:patch": "release-it patch"
58
64
  },
59
65
  "type": "module",
60
66
  "types": "dist/index.d.ts",
61
- "version": "1.0.2"
62
- }
67
+ "version": "1.0.4"
68
+ }