diff --git a/README.md b/README.md index 1ce663d..22f59c4 100644 --- a/README.md +++ b/README.md @@ -14,7 +14,7 @@ on its own; inkan itself keeps no dependencies. Nuxt, SvelteKit, Astro and Remix need no package, see the [recipes](recipes): they hand their server routes a web `Request` and want a `Response`, which is what `app.fetch` does. -Every package is tested against the published `@vxnsin/inkan` in CI, on Node 22, 24 and 26, +Every package is tested against the published `@inkanjs/inkan` in CI, on Node 22, 24 and 26, `@inkanjs/next` once more inside a real `next build` and `next start`, and `@inkanjs/bun` under Bun: diff --git a/package-lock.json b/package-lock.json index 2786e18..78642c8 100644 --- a/package-lock.json +++ b/package-lock.json @@ -21,6 +21,19 @@ "resolved": "packages/bun", "link": true }, + "node_modules/@inkanjs/inkan": { + "version": "0.9.2", + "resolved": "https://registry.npmjs.org/@inkanjs/inkan/-/inkan-0.9.2.tgz", + "integrity": "sha512-ftKg1xXFAQ9B7x1R2jN6q6TDc8AZ81yo60J8LXuQbZwQngXzAo9kQgICObc0GBHQkPFRjZEkf6ZzRCFCMW7lWQ==", + "dev": true, + "license": "MIT", + "bin": { + "inkan": "dist/cli.js" + }, + "engines": { + "node": ">=22" + } + }, "node_modules/@inkanjs/next": { "resolved": "packages/next", "link": true @@ -688,19 +701,6 @@ "node": ">=16.20.0" } }, - "node_modules/@vxnsin/inkan": { - "version": "0.4.0", - "resolved": "https://registry.npmjs.org/@vxnsin/inkan/-/inkan-0.4.0.tgz", - "integrity": "sha512-kNXyNglYumTvWj3BLbPQP0KlyBW5TLhdojuZ1qhz4wn3ijEWAYjjxyUFgsNKQx+koICzTZcxS64EddrIK50TKQ==", - "dev": true, - "license": "MIT", - "bin": { - "inkan": "dist/cli.js" - }, - "engines": { - "node": ">=20" - } - }, "node_modules/detect-libc": { "version": "2.1.2", "resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-2.1.2.tgz", @@ -1268,59 +1268,46 @@ }, "packages/bun": { "name": "@inkanjs/bun", - "version": "0.1.0", + "version": "0.1.1", "license": "MIT", "devDependencies": { - "@vxnsin/inkan": "^0.9.0" + "@inkanjs/inkan": "^0.9.2" }, "engines": { "bun": ">=1.1" }, "peerDependencies": { - "@vxnsin/inkan": ">=0.9.0 <1.0.0" - } - }, - "packages/bun/node_modules/@vxnsin/inkan": { - "version": "0.9.0", - "resolved": "https://registry.npmjs.org/@vxnsin/inkan/-/inkan-0.9.0.tgz", - "integrity": "sha512-eeW5fphApn48HEt4OJeHQcE7tsO1rnsVqStLd03CxjEtwNyBuD/fGvgnVTeqZF1YWbS759p/EcH2KKsByjqC8g==", - "dev": true, - "license": "MIT", - "bin": { - "inkan": "dist/cli.js" - }, - "engines": { - "node": ">=22" + "@inkanjs/inkan": ">=0.9.0 <1.0.0" } }, "packages/next": { "name": "@inkanjs/next", - "version": "0.2.0", + "version": "0.2.1", "license": "MIT", "devDependencies": { - "@vxnsin/inkan": "^0.4.0" + "@inkanjs/inkan": "^0.9.2" }, "engines": { "node": ">=22.18" }, "peerDependencies": { - "@vxnsin/inkan": ">=0.4.0" + "@inkanjs/inkan": ">=0.4.0" } }, "packages/query": { "name": "@inkanjs/query", - "version": "0.3.0", + "version": "0.3.1", "license": "MIT", "devDependencies": { + "@inkanjs/inkan": "^0.9.2", "@tanstack/query-core": "^5.104.1", - "@vxnsin/inkan": "^0.8.0", "react": "^19.3.0" }, "engines": { "node": ">=22.18" }, "peerDependencies": { - "@vxnsin/inkan": ">=0.7.0", + "@inkanjs/inkan": ">=0.7.0", "react": ">=18" }, "peerDependenciesMeta": { @@ -1329,19 +1316,6 @@ } } }, - "packages/query/node_modules/@vxnsin/inkan": { - "version": "0.8.0", - "resolved": "https://registry.npmjs.org/@vxnsin/inkan/-/inkan-0.8.0.tgz", - "integrity": "sha512-hwCyNL0VQcvTvWxjIVCT8QFaQ92fR0dXB7aca0AGXqdBzd7HpeirLg/o2QI16MIkHroxSGuPaerM/f3lO78zBA==", - "dev": true, - "license": "MIT", - "bin": { - "inkan": "dist/cli.js" - }, - "engines": { - "node": ">=22" - } - }, "packages/query/node_modules/react": { "version": "19.3.0", "resolved": "https://registry.npmjs.org/react/-/react-19.3.0.tgz", @@ -1354,16 +1328,16 @@ }, "packages/uws": { "name": "@inkanjs/uws", - "version": "0.5.0", + "version": "0.5.1", "license": "MIT", "devDependencies": { - "@vxnsin/inkan": "^0.9.0" + "@inkanjs/inkan": "^0.9.2" }, "engines": { "node": ">=22.18" }, "peerDependencies": { - "@vxnsin/inkan": ">=0.9.0 <1.0.0", + "@inkanjs/inkan": ">=0.9.0 <1.0.0", "uWebSockets.js": ">=20.71.0" }, "peerDependenciesMeta": { @@ -1372,31 +1346,18 @@ } } }, - "packages/uws/node_modules/@vxnsin/inkan": { - "version": "0.9.0", - "resolved": "https://registry.npmjs.org/@vxnsin/inkan/-/inkan-0.9.0.tgz", - "integrity": "sha512-eeW5fphApn48HEt4OJeHQcE7tsO1rnsVqStLd03CxjEtwNyBuD/fGvgnVTeqZF1YWbS759p/EcH2KKsByjqC8g==", - "dev": true, - "license": "MIT", - "bin": { - "inkan": "dist/cli.js" - }, - "engines": { - "node": ">=22" - } - }, "packages/vite": { "name": "@inkanjs/vite", - "version": "0.2.0", + "version": "0.2.1", "license": "MIT", "devDependencies": { - "@vxnsin/inkan": "^0.4.0" + "@inkanjs/inkan": "^0.9.2" }, "engines": { "node": ">=22.18" }, "peerDependencies": { - "@vxnsin/inkan": ">=0.4.0", + "@inkanjs/inkan": ">=0.4.0", "vite": ">=5" } } diff --git a/packages/bun/CHANGELOG.md b/packages/bun/CHANGELOG.md index c324e1c..fcf7f63 100644 --- a/packages/bun/CHANGELOG.md +++ b/packages/bun/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 0.1.1 + +- Works with `@inkanjs/inkan`, the new name of the core (it was `@vxnsin/inkan`). Install + `@inkanjs/inkan` 0.9.2 or later next to it. + ## 0.1.0 - `serve(app, { port, hostname, tls, signals, drain })`: an inkan app on `Bun.serve`. HTTP diff --git a/packages/bun/README.md b/packages/bun/README.md index d1e124b..1f4e41f 100644 --- a/packages/bun/README.md +++ b/packages/bun/README.md @@ -9,13 +9,13 @@ problems, streams and the inspector work as they do with `app.listen()`. HTTP go ## Install ```sh -bun add @vxnsin/inkan @inkanjs/bun +bun add @inkanjs/inkan @inkanjs/bun ``` ## Use ```ts -import { inkan, t } from "@vxnsin/inkan"; +import { inkan, t } from "@inkanjs/inkan"; import { serve } from "@inkanjs/bun"; const app = inkan().get("/teas/:id", { params: t.object({ id: t.int() }) }, ({ params }) => ({ id: params.id })); diff --git a/packages/bun/index.d.ts b/packages/bun/index.d.ts index baa1f89..c85a61e 100644 --- a/packages/bun/index.d.ts +++ b/packages/bun/index.d.ts @@ -1,4 +1,4 @@ -import type { App } from "@vxnsin/inkan"; +import type { App } from "@inkanjs/inkan"; export type Served = { /** The port it listens on, also when it was asked for 0. */ diff --git a/packages/bun/package.json b/packages/bun/package.json index 9ef52b6..fe9fd6b 100644 --- a/packages/bun/package.json +++ b/packages/bun/package.json @@ -1,6 +1,6 @@ { "name": "@inkanjs/bun", - "version": "0.1.0", + "version": "0.1.1", "description": "Runs an inkan app on Bun.serve, WebSocket routes on Bun's own websockets.", "type": "module", "license": "MIT", @@ -26,14 +26,14 @@ "bun": ">=1.1" }, "peerDependencies": { - "@vxnsin/inkan": ">=0.9.0 <1.0.0" + "@inkanjs/inkan": ">=0.9.0 <1.0.0" }, "scripts": { "test": "node --test test.ts", "test:bun": "bun run test.ts" }, "devDependencies": { - "@vxnsin/inkan": "^0.9.0" + "@inkanjs/inkan": "^0.9.2" }, "keywords": [ "inkan", diff --git a/packages/bun/test.ts b/packages/bun/test.ts index f858094..3814d9d 100644 --- a/packages/bun/test.ts +++ b/packages/bun/test.ts @@ -5,7 +5,7 @@ import assert from "node:assert/strict"; import { connect } from "node:net"; import { randomBytes } from "node:crypto"; -import { inkan, sse, t, type App } from "@vxnsin/inkan"; +import { inkan, sse, t, type App } from "@inkanjs/inkan"; import type { serve as Serve } from "./index.js"; const isBun = typeof (globalThis as { Bun?: unknown }).Bun !== "undefined"; diff --git a/packages/next/CHANGELOG.md b/packages/next/CHANGELOG.md index 0f39248..13621c4 100644 --- a/packages/next/CHANGELOG.md +++ b/packages/next/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 0.2.1 + +- Works with `@inkanjs/inkan`, the new name of the core (it was `@vxnsin/inkan`). Install + `@inkanjs/inkan` 0.9.2 or later next to it. + ## 0.2.0 - `pages(app)`: the app as a Pages Router API route, `export default pages(app)` in diff --git a/packages/next/README.md b/packages/next/README.md index 05c0644..7c8bb51 100644 --- a/packages/next/README.md +++ b/packages/next/README.md @@ -5,7 +5,7 @@ route handlers, as a Pages Router API route, and as a typed client for Server Co Contracts, validation, problems, `/docs` and the inspector all come along. ```sh -npm install @vxnsin/inkan @inkanjs/next +npm install @inkanjs/inkan @inkanjs/next ``` The app keeps its routes under `/api`, and its docs, document and inspector too, so every @@ -13,7 +13,7 @@ link on the docs page points where Next will route it: ```ts // server/app.ts -import { inkan, routes, t } from "@vxnsin/inkan"; +import { inkan, routes, t } from "@inkanjs/inkan"; const teas = routes().get("/teas/:id", { params: t.object({ id: t.int() }) }, ({ params }) => findTea(params.id)); diff --git a/packages/next/e2e/server/app.js b/packages/next/e2e/server/app.js index 9b87c19..1bd1fa1 100644 --- a/packages/next/e2e/server/app.js +++ b/packages/next/e2e/server/app.js @@ -1,4 +1,4 @@ -import { inkan, plugin, t } from "@vxnsin/inkan"; +import { inkan, plugin, t } from "@inkanjs/inkan"; const teas = plugin((p) => { p.get("/teas/:id", { params: t.object({ id: t.int() }), response: { 200: t.object({ id: t.int(), name: t.string() }) } }, ({ params }) => ({ diff --git a/packages/next/index.d.ts b/packages/next/index.d.ts index 84c28ec..6d9e157 100644 --- a/packages/next/index.d.ts +++ b/packages/next/index.d.ts @@ -1,6 +1,6 @@ import type { IncomingMessage, ServerResponse } from "node:http"; -import type { App, Routes } from "@vxnsin/inkan"; -import type { Client, ClientOptions } from "@vxnsin/inkan/client"; +import type { App, Routes } from "@inkanjs/inkan"; +import type { Client, ClientOptions } from "@inkanjs/inkan/client"; type Handler = (request: Request) => Promise; diff --git a/packages/next/index.js b/packages/next/index.js index e42035a..97c3147 100644 --- a/packages/next/index.js +++ b/packages/next/index.js @@ -9,7 +9,7 @@ // import { handlers } from "@inkanjs/next"; // export const { GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS } = handlers(app); -import { client } from "@vxnsin/inkan/client"; +import { client } from "@inkanjs/inkan/client"; const METHODS = ["GET", "POST", "PUT", "PATCH", "DELETE", "HEAD", "OPTIONS"]; const development = () => (process.env.NODE_ENV === "development" ? "127.0.0.1" : undefined); diff --git a/packages/next/package.json b/packages/next/package.json index 73de411..10eca57 100644 --- a/packages/next/package.json +++ b/packages/next/package.json @@ -1,6 +1,6 @@ { "name": "@inkanjs/next", - "version": "0.2.0", + "version": "0.2.1", "description": "An inkan app inside Next.js: App Router route handlers, Pages Router API routes, and a typed client for Server Components.", "type": "module", "license": "MIT", @@ -10,8 +10,8 @@ "exports": { ".": { "types": "./index.d.ts", "default": "./index.js" } }, "files": ["index.js", "index.d.ts", "README.md", "CHANGELOG.md"], "engines": { "node": ">=22.18" }, - "peerDependencies": { "@vxnsin/inkan": ">=0.4.0" }, - "devDependencies": { "@vxnsin/inkan": "^0.4.0" }, + "peerDependencies": { "@inkanjs/inkan": ">=0.4.0" }, + "devDependencies": { "@inkanjs/inkan": "^0.9.2" }, "scripts": { "test": "node --test test.ts" }, "publishConfig": { "access": "public" } } diff --git a/packages/next/test.ts b/packages/next/test.ts index bbc132e..c056a29 100644 --- a/packages/next/test.ts +++ b/packages/next/test.ts @@ -1,6 +1,6 @@ import { test } from "node:test"; import assert from "node:assert/strict"; -import { inkan, plugin, routes, t } from "@vxnsin/inkan"; +import { inkan, plugin, routes, t } from "@inkanjs/inkan"; import { createServer, type IncomingMessage } from "node:http"; import type { AddressInfo } from "node:net"; import { direct, handlers, pages } from "./index.js"; diff --git a/packages/query/CHANGELOG.md b/packages/query/CHANGELOG.md index ae56f12..7136a78 100644 --- a/packages/query/CHANGELOG.md +++ b/packages/query/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 0.3.1 + +- Works with `@inkanjs/inkan`, the new name of the core (it was `@vxnsin/inkan`). Install + `@inkanjs/inkan` 0.9.2 or later next to it. + ## 0.3.0 - `q.events(path, input)` and `q.ws(path, input)`: live sources for a route that answers diff --git a/packages/query/README.md b/packages/query/README.md index 1fedb0e..7e39551 100644 --- a/packages/query/README.md +++ b/packages/query/README.md @@ -10,7 +10,7 @@ npm install @inkanjs/query ``` ```ts -import { client } from "@vxnsin/inkan/client"; +import { client } from "@inkanjs/inkan/client"; import { queries } from "@inkanjs/query"; import type { app } from "../server/app"; diff --git a/packages/query/index.d.ts b/packages/query/index.d.ts index f5417aa..4dc47a9 100644 --- a/packages/query/index.d.ts +++ b/packages/query/index.d.ts @@ -1,5 +1,5 @@ -import type { ProblemBody, Responses, Routes } from "@vxnsin/inkan"; -import type { Answer, Client, EventOf, Input, Jsonify, TypedSocket } from "@vxnsin/inkan/client"; +import type { ProblemBody, Responses, Routes } from "@inkanjs/inkan"; +import type { Answer, Client, EventOf, Input, Jsonify, TypedSocket } from "@inkanjs/inkan/client"; /** What the typed client answers: success or failure, told apart by `ok`. */ type AnyAnswer = { ok: true; data: unknown } | { ok: false; status: number; problem: unknown }; diff --git a/packages/query/package.json b/packages/query/package.json index a0bf364..38ba22c 100644 --- a/packages/query/package.json +++ b/packages/query/package.json @@ -1,6 +1,6 @@ { "name": "@inkanjs/query", - "version": "0.3.0", + "version": "0.3.1", "description": "The typed inkan client for TanStack Query: data typed from the contract, problems as errors, live events and WebSockets. React, Vue, Svelte, Solid.", "type": "module", "license": "MIT", @@ -43,7 +43,7 @@ "node": ">=22.18" }, "peerDependencies": { - "@vxnsin/inkan": ">=0.7.0", + "@inkanjs/inkan": ">=0.7.0", "react": ">=18" }, "peerDependenciesMeta": { @@ -53,7 +53,7 @@ }, "devDependencies": { "@tanstack/query-core": "^5.104.1", - "@vxnsin/inkan": "^0.8.0", + "@inkanjs/inkan": "^0.9.2", "react": "^19.3.0" }, "scripts": { diff --git a/packages/query/react.d.ts b/packages/query/react.d.ts index 2bd8555..e6cb394 100644 --- a/packages/query/react.d.ts +++ b/packages/query/react.d.ts @@ -1,4 +1,4 @@ -import type { Jsonify } from "@vxnsin/inkan/client"; +import type { Jsonify } from "@inkanjs/inkan/client"; import type { AnyEvent, EventsState, FollowOptions, LiveEvents, LiveSocket, SocketState } from "./index.js"; export type UseEventsOptions = FollowOptions & { diff --git a/packages/query/test.ts b/packages/query/test.ts index 27f778e..9a0deb0 100644 --- a/packages/query/test.ts +++ b/packages/query/test.ts @@ -1,8 +1,8 @@ import { test } from "node:test"; import assert from "node:assert/strict"; import { QueryClient, MutationObserver } from "@tanstack/query-core"; -import { inkan, problem, sse, t } from "@vxnsin/inkan"; -import { client } from "@vxnsin/inkan/client"; +import { inkan, problem, sse, t } from "@inkanjs/inkan"; +import { client } from "@inkanjs/inkan/client"; import { connect, follow, isProblem, mutation, ProblemError, queries, query, retry } from "./index.js"; import type { Connection, EventsState, LiveEvents, SocketState } from "./index.js"; import { useEvents, useSocket } from "./react.js"; diff --git a/packages/uws/CHANGELOG.md b/packages/uws/CHANGELOG.md index 55c45b9..5abe71b 100644 --- a/packages/uws/CHANGELOG.md +++ b/packages/uws/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 0.5.1 + +- Works with `@inkanjs/inkan`, the new name of the core (it was `@vxnsin/inkan`). Install + `@inkanjs/inkan` 0.9.2 or later next to it. + ## 0.5.0 - WebSockets go through `app.upgrade()` (inkan 0.9): the app decides the upgrade and runs diff --git a/packages/uws/README.md b/packages/uws/README.md index 54a4e73..70ff71c 100644 --- a/packages/uws/README.md +++ b/packages/uws/README.md @@ -20,7 +20,7 @@ npm install --allow-git=all "uWebSockets.js@github:uNetworking/uWebSockets.js#v2 ## Use ```ts -import { inkan } from "@vxnsin/inkan"; +import { inkan } from "@inkanjs/inkan"; import { serve } from "@inkanjs/uws"; const app = inkan().get("/hello", () => ({ hello: "world" })); diff --git a/packages/uws/conformance.ts b/packages/uws/conformance.ts index 6d66241..9fcbc5a 100644 --- a/packages/uws/conformance.ts +++ b/packages/uws/conformance.ts @@ -4,7 +4,7 @@ import { test } from "node:test"; import assert from "node:assert/strict"; -import { inkan, sse, t, type App } from "@vxnsin/inkan"; +import { inkan, sse, t, type App } from "@inkanjs/inkan"; export type Started = { url: string; close: () => Promise }; diff --git a/packages/uws/index.d.ts b/packages/uws/index.d.ts index d4ccaed..7a25131 100644 --- a/packages/uws/index.d.ts +++ b/packages/uws/index.d.ts @@ -1,4 +1,4 @@ -import type { App } from "@vxnsin/inkan"; +import type { App } from "@inkanjs/inkan"; export type Served = { /** The port it listens on, also when it was asked for 0. */ diff --git a/packages/uws/package.json b/packages/uws/package.json index 80b5e9c..d97d1b2 100644 --- a/packages/uws/package.json +++ b/packages/uws/package.json @@ -1,6 +1,6 @@ { "name": "@inkanjs/uws", - "version": "0.5.0", + "version": "0.5.1", "description": "Runs an inkan app on uWebSockets.js instead of node:http.", "type": "module", "license": "MIT", @@ -26,7 +26,7 @@ "node": ">=22.18" }, "peerDependencies": { - "@vxnsin/inkan": ">=0.9.0 <1.0.0", + "@inkanjs/inkan": ">=0.9.0 <1.0.0", "uWebSockets.js": ">=20.71.0" }, "scripts": { @@ -38,7 +38,7 @@ } }, "devDependencies": { - "@vxnsin/inkan": "^0.9.0" + "@inkanjs/inkan": "^0.9.2" }, "keywords": [ "inkan", diff --git a/packages/uws/test.ts b/packages/uws/test.ts index 62e3931..c31f4a5 100644 --- a/packages/uws/test.ts +++ b/packages/uws/test.ts @@ -10,7 +10,7 @@ import { get } from "node:https"; import { createRequire } from "node:module"; import { tmpdir } from "node:os"; import { join } from "node:path"; -import { inkan, sse, t } from "@vxnsin/inkan"; +import { inkan, sse, t } from "@inkanjs/inkan"; import { conformance } from "./conformance.ts"; import { websockets } from "./websockets.ts"; @@ -82,7 +82,7 @@ if (installed) { test("SIGTERM closes it and exits", { timeout: 20_000, skip: process.platform === "win32" && "Windows has no SIGTERM to send" }, async () => { const script = ` - import { inkan } from "@vxnsin/inkan"; + import { inkan } from "@inkanjs/inkan"; import { serve } from ${JSON.stringify(new URL("./index.js", import.meta.url).href)}; const app = inkan({ log: false }).get("/", () => ({})).onClose(() => console.log("onClose")); const server = await serve(app, { port: 0, host: "127.0.0.1" }); diff --git a/packages/uws/websockets.ts b/packages/uws/websockets.ts index ac60d1d..6e1ff3e 100644 --- a/packages/uws/websockets.ts +++ b/packages/uws/websockets.ts @@ -6,7 +6,7 @@ import { test } from "node:test"; import assert from "node:assert/strict"; import { connect, type Socket } from "node:net"; import { randomBytes } from "node:crypto"; -import { inkan, t, type App } from "@vxnsin/inkan"; +import { inkan, t, type App } from "@inkanjs/inkan"; import type { serve as Serve } from "./index.js"; const quiet = { log: false, gracefulShutdown: false } as const; diff --git a/packages/vite/CHANGELOG.md b/packages/vite/CHANGELOG.md index 4fa567d..abdee93 100644 --- a/packages/vite/CHANGELOG.md +++ b/packages/vite/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 0.2.1 + +- Works with `@inkanjs/inkan`, the new name of the core (it was `@vxnsin/inkan`). Install + `@inkanjs/inkan` 0.9.2 or later next to it. + ## 0.2.0 - Vite's start shows where the API docs and the inspector are, under its own links. diff --git a/packages/vite/README.md b/packages/vite/README.md index dbdc503..9aacec7 100644 --- a/packages/vite/README.md +++ b/packages/vite/README.md @@ -5,7 +5,7 @@ and the API on one port, no proxy and no CORS, and the API reloaded on every sav for every Vite project: Vue, React, Svelte, Solid, plain TypeScript. ```sh -npm install @vxnsin/inkan +npm install @inkanjs/inkan npm install -D @inkanjs/vite ``` @@ -23,7 +23,7 @@ The app keeps its routes, and its docs, document and inspector, under the prefix ```ts // src/server/app.ts -import { inkan, routes } from "@vxnsin/inkan"; +import { inkan, routes } from "@inkanjs/inkan"; const teas = routes().get("/teas", () => listTeas()); @@ -72,7 +72,7 @@ Pair it with the typed client and every call in the frontend is checked against by the compiler (it sees the routes of a chain and of `mount`): ```ts -import { client } from "@vxnsin/inkan/client"; +import { client } from "@inkanjs/inkan/client"; import type { app } from "../server/app"; const api = client(location.origin); diff --git a/packages/vite/fixture/app.ts b/packages/vite/fixture/app.ts index 443d4e6..1e2291b 100644 --- a/packages/vite/fixture/app.ts +++ b/packages/vite/fixture/app.ts @@ -1,4 +1,4 @@ -import { inkan, plugin, t } from "@vxnsin/inkan"; +import { inkan, plugin, t } from "@inkanjs/inkan"; const hello = "world"; // what the test reads: which app started and stopped, in this process diff --git a/packages/vite/package.json b/packages/vite/package.json index 3e88423..28d95e3 100644 --- a/packages/vite/package.json +++ b/packages/vite/package.json @@ -1,6 +1,6 @@ { "name": "@inkanjs/vite", - "version": "0.2.0", + "version": "0.2.1", "description": "Your inkan API inside the Vite dev server: one port, reloaded on every save, /docs next to your frontend.", "type": "module", "license": "MIT", @@ -10,8 +10,8 @@ "exports": { ".": { "types": "./index.d.ts", "default": "./index.js" } }, "files": ["index.js", "index.d.ts", "README.md", "CHANGELOG.md"], "engines": { "node": ">=22.18" }, - "peerDependencies": { "@vxnsin/inkan": ">=0.4.0", "vite": ">=5" }, - "devDependencies": { "@vxnsin/inkan": "^0.4.0" }, + "peerDependencies": { "@inkanjs/inkan": ">=0.4.0", "vite": ">=5" }, + "devDependencies": { "@inkanjs/inkan": "^0.9.2" }, "scripts": { "test": "node --test test.ts" }, "publishConfig": { "access": "public" } } diff --git a/packages/vite/test.ts b/packages/vite/test.ts index 0796d4e..9211c90 100644 --- a/packages/vite/test.ts +++ b/packages/vite/test.ts @@ -6,7 +6,7 @@ import type { AddressInfo } from "node:net"; import { createLogger, createServer, preview } from "vite"; import inkan from "./index.js"; -// a copy of the fixture next to this file, so "@vxnsin/inkan" resolves from node_modules +// a copy of the fixture next to this file, so "@inkanjs/inkan" resolves from node_modules const root = mkdtempSync(join(import.meta.dirname, ".tmp-")); cpSync(join(import.meta.dirname, "fixture"), root, { recursive: true }); const events = () => ((globalThis as { inkanEvents?: string[] }).inkanEvents ??= []); diff --git a/recipes/README.md b/recipes/README.md index 03303c2..2888c24 100644 --- a/recipes/README.md +++ b/recipes/README.md @@ -6,7 +6,7 @@ under the prefix the framework routes to it, so every link on the docs page poin ```ts // server/app.ts, the same in every recipe -import { inkan, plugin, t } from "@vxnsin/inkan"; +import { inkan, plugin, t } from "@inkanjs/inkan"; const api = plugin((app) => { app.get("/teas/:id", { params: t.object({ id: t.int() }) }, ({ params }) => findTea(params.id));