naro-cli 0.9.0 → 0.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/README.md CHANGED
@@ -112,7 +112,7 @@ naro migration repair 0001_init.sql --status applied
112
112
  reverted to drop its row. Its SQL is never run
113
113
  naro gen types --output src/database.types.ts
114
114
  TypeScript types for the schema, for
115
- createClient<Database>() from @naro/sdk
115
+ createClient<Database>() from naro-js
116
116
 
117
117
  naro backend status On or off, status, URL and anon key (service key hidden)
118
118
  naro backend enable Turn the backend on: D1, sign-in and the Data API; safe
@@ -241,7 +241,7 @@ says what you asked for, it says so and writes nothing.
241
241
 
242
242
  `naro gen types` writes TypeScript for the schema: a `…Row` interface per
243
243
  table and view, and a `Database` type that `createClient<Database>()` from
244
- `@naro/sdk` reads, with `Tables<"name">`, `TablesInsert<"name">` and
244
+ `naro-js` reads, with `Tables<"name">`, `TablesInsert<"name">` and
245
245
  `TablesUpdate<"name">` to pick one out. `--lang typescript` is the default and
246
246
  the only language.
247
247
 
@@ -250,7 +250,7 @@ naro gen types --output src/database.types.ts
250
250
  ```
251
251
 
252
252
  ```ts
253
- import { createClient } from "@naro/sdk";
253
+ import { createClient } from "naro-js";
254
254
  import type { Database } from "./database.types";
255
255
 
256
256
  const naro = createClient<Database>({ url, anonKey });
@@ -273,7 +273,7 @@ and BLOB was `ArrayBuffer`: use `Tables<"users">` now. The `…Row` interfaces
273
273
  are unchanged.
274
274
 
275
275
  `naro backend` is the project's Naro backend: its own D1, email and password
276
- sign-in, and a Data API that browser code calls through `@naro/sdk` at the
276
+ sign-in, and a Data API that browser code calls through `naro-js` at the
277
277
  project's URL. It is off until you turn it on, one project at a time:
278
278
  `naro backend enable` (or the Database page of the dashboard). The anon key
279
279
  is public — it identifies the project and grants nothing. The service key
@@ -362,7 +362,7 @@ the generated `Insert` even when it is `NOT NULL` with no default — run it
362
362
  again after changing a policy.
363
363
 
364
364
  Instead of a rule, an action can hold a condition on the row, like a Supabase
365
- row-level security policy, written in the filter syntax of `@naro/sdk`'s
365
+ row-level security policy, written in the filter syntax of `naro-js`'s
366
366
  `.or()` (commas are AND) with `auth.uid()` for the signed-in user's id —
367
367
  unquoted; `"auth.uid()"` is the text, and `auth.uid` without `()` is refused
368
368
  rather than read as text:
package/dist/index.js CHANGED
@@ -4179,7 +4179,7 @@ Usage:
4179
4179
  --status applied|reverted [--yes] remove its row. Its SQL is never run (asks first)
4180
4180
  naro gen types [--lang typescript] [--output <file>]
4181
4181
  TypeScript types for the schema, for createClient<Database>()
4182
- from @naro/sdk (stdout by default)
4182
+ from naro-js (stdout by default)
4183
4183
 
4184
4184
  naro backend [status] On or off, status, URL and anon key (the service key stays hidden)
4185
4185
  naro backend enable Turn the backend on: D1, sign-in and the Data API (safe to re-run;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "naro-cli",
3
- "version": "0.9.0",
3
+ "version": "0.9.1",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "naro": "./dist/index.js"
@@ -33,11 +33,11 @@
33
33
  "tsx": "4.23.12",
34
34
  "typescript": "7.0.2",
35
35
  "vitest": "3.2.7",
36
- "@naro/sdk": "0.1.0",
36
+ "naro-js": "0.1.0",
37
37
  "@next-deploy/build": "0.1.0",
38
+ "@next-deploy/core": "0.1.0",
38
39
  "@next-deploy/config": "0.1.0",
39
40
  "@next-deploy/data-core": "0.1.0",
40
- "@next-deploy/core": "0.1.0",
41
41
  "@next-deploy/sdk": "0.1.0"
42
42
  },
43
43
  "scripts": {