@noverax/courier-sveltekit 0.5.0 → 0.6.0

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.
Files changed (2) hide show
  1. package/lib/plugin.d.ts +15 -0
  2. package/package.json +3 -3
package/lib/plugin.d.ts CHANGED
@@ -1,2 +1,17 @@
1
+ /**
2
+ * The Vite plugin that builds a SvelteKit app's routes — what each page's
3
+ * proxy client may call — from `courier.config.ts`, for its pages and for
4
+ * the server that renders them. No routes file is written.
5
+ *
6
+ * @example
7
+ * ```ts
8
+ * // vite.config.ts
9
+ * import { sveltekit } from "@sveltejs/kit/vite";
10
+ * import { courierRoutes } from "@noverax/courier-sveltekit/plugin";
11
+ * import { defineConfig } from "vite";
12
+ *
13
+ * export default defineConfig({ plugins: [sveltekit(), courierRoutes()] });
14
+ * ```
15
+ */
1
16
  import { CourierRoutesOptions, courierRoutes } from "@noverax/courier-build/vite";
2
17
  export { type CourierRoutesOptions, courierRoutes };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@noverax/courier-sveltekit",
3
- "version": "0.5.0",
3
+ "version": "0.6.0",
4
4
  "description": "SvelteKit adapter for Courier: an endpoint that proxies typed calls to any backend, with the user's session in load functions and form actions",
5
5
  "keywords": [
6
6
  "courier",
@@ -80,8 +80,8 @@
80
80
  "access": "public"
81
81
  },
82
82
  "peerDependencies": {
83
- "@noverax/courier": "^0.5.0",
84
- "@noverax/courier-build": "^0.5.0",
83
+ "@noverax/courier": "^0.6.0",
84
+ "@noverax/courier-build": "^0.6.0",
85
85
  "vite": ">=5.0.0"
86
86
  },
87
87
  "peerDependenciesMeta": {