@executor-js/plugin-example 1.4.28 → 1.4.30

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.
@@ -1,5 +1,6 @@
1
1
  // src/shared.ts
2
- import { HttpApiEndpoint, HttpApiGroup, Schema } from "@executor-js/sdk/core";
2
+ import { Schema } from "effect";
3
+ import { HttpApiEndpoint, HttpApiGroup } from "effect/unstable/httpapi";
3
4
  var Greeting = Schema.Struct({
4
5
  message: Schema.String,
5
6
  count: Schema.Number
@@ -15,4 +16,4 @@ export {
15
16
  Greeting,
16
17
  ExampleApi
17
18
  };
18
- //# sourceMappingURL=chunk-M7BJ2IL4.js.map
19
+ //# sourceMappingURL=chunk-52JAPUWU.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/shared.ts"],"sourcesContent":["// ---------------------------------------------------------------------------\n// @executor-js/plugin-example/shared\n//\n// Schemas and the HttpApiGroup definition shared between the server and\n// client halves. Both `./server` and `./client` import from here so the\n// frontend's typed reactive client and the backend's handlers see the\n// exact same payload/response/error contracts.\n//\n// No React or Node imports here — server and client both import this.\n// ---------------------------------------------------------------------------\n\nimport { Schema } from \"effect\";\nimport { HttpApiEndpoint, HttpApiGroup } from \"effect/unstable/httpapi\";\n\nexport const Greeting = Schema.Struct({\n message: Schema.String,\n count: Schema.Number,\n});\nexport type Greeting = typeof Greeting.Type;\n\nexport const ExampleApi = HttpApiGroup.make(\"example\").add(\n HttpApiEndpoint.post(\"greet\", \"/greet\", {\n payload: Schema.Struct({ name: Schema.String }),\n success: Greeting,\n }),\n);\n"],"mappings":";AAWA,SAAS,cAAc;AACvB,SAAS,iBAAiB,oBAAoB;AAEvC,IAAM,WAAW,OAAO,OAAO;AAAA,EACpC,SAAS,OAAO;AAAA,EAChB,OAAO,OAAO;AAChB,CAAC;AAGM,IAAM,aAAa,aAAa,KAAK,SAAS,EAAE;AAAA,EACrD,gBAAgB,KAAK,SAAS,UAAU;AAAA,IACtC,SAAS,OAAO,OAAO,EAAE,MAAM,OAAO,OAAO,CAAC;AAAA,IAC9C,SAAS;AAAA,EACX,CAAC;AACH;","names":[]}
package/dist/client.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  ExampleApi
3
- } from "./chunk-M7BJ2IL4.js";
3
+ } from "./chunk-52JAPUWU.js";
4
4
 
5
5
  // src/client.tsx
6
6
  import { useState } from "react";
package/dist/server.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  ExampleApi
3
- } from "./chunk-M7BJ2IL4.js";
3
+ } from "./chunk-52JAPUWU.js";
4
4
 
5
5
  // src/server.ts
6
6
  import { Context, definePlugin, Effect, HttpApi, HttpApiBuilder } from "@executor-js/sdk/core";
package/dist/shared.d.ts CHANGED
@@ -1,4 +1,5 @@
1
- import { HttpApiEndpoint, HttpApiGroup, Schema } from "@executor-js/sdk/core";
1
+ import { Schema } from "effect";
2
+ import { HttpApiEndpoint, HttpApiGroup } from "effect/unstable/httpapi";
2
3
  export declare const Greeting: Schema.Struct<{
3
4
  readonly message: Schema.String;
4
5
  readonly count: Schema.Number;
package/dist/shared.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  ExampleApi,
3
3
  Greeting
4
- } from "./chunk-M7BJ2IL4.js";
4
+ } from "./chunk-52JAPUWU.js";
5
5
  export {
6
6
  ExampleApi,
7
7
  Greeting
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@executor-js/plugin-example",
3
- "version": "1.4.28",
3
+ "version": "1.4.30",
4
4
  "homepage": "https://github.com/RhysSullivan/executor/tree/main/packages/plugins/example",
5
5
  "bugs": {
6
6
  "url": "https://github.com/RhysSullivan/executor/issues"
@@ -45,7 +45,7 @@
45
45
  "typecheck:slow": "tsc --noEmit"
46
46
  },
47
47
  "dependencies": {
48
- "@executor-js/sdk": "1.4.28"
48
+ "@executor-js/sdk": "1.4.30"
49
49
  },
50
50
  "devDependencies": {
51
51
  "@effect/vitest": "4.0.0-beta.59",
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/shared.ts"],"sourcesContent":["// ---------------------------------------------------------------------------\n// @executor-js/plugin-example/shared\n//\n// Schemas and the HttpApiGroup definition shared between the server and\n// client halves. Both `./server` and `./client` import from here so the\n// frontend's typed reactive client and the backend's handlers see the\n// exact same payload/response/error contracts.\n//\n// No React or Node imports here — server and client both import this.\n// ---------------------------------------------------------------------------\n\nimport { HttpApiEndpoint, HttpApiGroup, Schema } from \"@executor-js/sdk/core\";\n\nexport const Greeting = Schema.Struct({\n message: Schema.String,\n count: Schema.Number,\n});\nexport type Greeting = typeof Greeting.Type;\n\nexport const ExampleApi = HttpApiGroup.make(\"example\").add(\n HttpApiEndpoint.post(\"greet\", \"/greet\", {\n payload: Schema.Struct({ name: Schema.String }),\n success: Greeting,\n }),\n);\n"],"mappings":";AAWA,SAAS,iBAAiB,cAAc,cAAc;AAE/C,IAAM,WAAW,OAAO,OAAO;AAAA,EACpC,SAAS,OAAO;AAAA,EAChB,OAAO,OAAO;AAChB,CAAC;AAGM,IAAM,aAAa,aAAa,KAAK,SAAS,EAAE;AAAA,EACrD,gBAAgB,KAAK,SAAS,UAAU;AAAA,IACtC,SAAS,OAAO,OAAO,EAAE,MAAM,OAAO,OAAO,CAAC;AAAA,IAC9C,SAAS;AAAA,EACX,CAAC;AACH;","names":[]}