@typed-sql/cli 1.0.0-beta.3 → 1.0.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 (3) hide show
  1. package/CHANGELOG.md +49 -0
  2. package/README.md +11 -21
  3. package/package.json +5 -5
package/CHANGELOG.md CHANGED
@@ -1,5 +1,54 @@
1
1
  # @typed-sql/cli
2
2
 
3
+ ## 1.0.0
4
+
5
+ ### Major Changes
6
+
7
+ - 7ca256b: Release the first public typed-sql beta: exact TypeScript 7 row inference from static PostgreSQL and
8
+ MySQL, versioned schema introspection, application-owned drivers, config-driven grammar plugins,
9
+ CLI verification, editor language-server integration, versioned diagnostics, bounded parsing, and
10
+ real-database plus packed-tarball verification.
11
+
12
+ ### Patch Changes
13
+
14
+ - 1563a7a: Declare and enforce the 1.0 package stability boundary. Core SQL, compiler, schema, config, AST,
15
+ PostgreSQL, MySQL, and CLI packages form the stable train; the TypeScript preview bridge and
16
+ language server remain explicitly experimental. Freeze public entrypoints and query type contracts,
17
+ and remove internal compiler/type helpers from stable package-root exports before 1.0.
18
+ - 16e2475: Prove npm trusted publishing and provenance after the initial registry bootstrap.
19
+ - 90bae18: Show help and version information without requiring a project configuration, and reject unknown commands before config discovery.
20
+ - 69c7d87: Report `TSQ004` for bare nested templates used as conditional SQL structure and offer an alias-aware
21
+ language-server quick fix that prefixes the template with `sql.fragment`. Ordinary and nested
22
+ values remain parameterized across the edit.
23
+ - Updated dependencies [eb16de7]
24
+ - Updated dependencies [b6389e4]
25
+ - Updated dependencies [eb16de7]
26
+ - Updated dependencies [b6389e4]
27
+ - Updated dependencies [eb16de7]
28
+ - Updated dependencies [1563a7a]
29
+ - Updated dependencies [9dd6bc4]
30
+ - Updated dependencies [7ca256b]
31
+ - Updated dependencies [16e2475]
32
+ - Updated dependencies [bd26d6e]
33
+ - Updated dependencies [69c7d87]
34
+ - Updated dependencies [3e2c75c]
35
+ - @typed-sql/core@1.0.0
36
+ - @typed-sql/schema@1.0.0
37
+ - @typed-sql/config@1.0.0
38
+ - @typed-sql/compiler@1.0.0
39
+
40
+ ## 1.0.0-rc.0
41
+
42
+ ### Patch Changes
43
+
44
+ - 69c7d87: Report `TSQ004` for bare nested templates used as conditional SQL structure and offer an alias-aware
45
+ language-server quick fix that prefixes the template with `sql.fragment`. Ordinary and nested
46
+ values remain parameterized across the edit.
47
+ - Updated dependencies [69c7d87]
48
+ - @typed-sql/core@1.0.0-rc.0
49
+ - @typed-sql/compiler@1.0.0-rc.0
50
+ - @typed-sql/config@1.0.0-rc.0
51
+
3
52
  ## 1.0.0-beta.3
4
53
 
5
54
  ### Patch Changes
package/README.md CHANGED
@@ -1,37 +1,27 @@
1
1
  # @typed-sql/cli
2
2
 
3
- The config-driven command line interface for [typed-sql](https://github.com/Lojhan/typed-sql).
4
- It generates deterministic database snapshots, verifies inferred queries through TypeScript 7, and
5
- detects live schema drift.
3
+ The stable, config-driven command line interface for
4
+ [typed-sql](https://github.com/Lojhan/typed-sql). It generates deterministic database snapshots,
5
+ checks inferred queries through TypeScript, and detects schema drift.
6
6
 
7
7
  ```sh
8
- pnpm add -D @typed-sql/cli@next typescript@7.0.2
8
+ pnpm add -D @typed-sql/cli typescript@7.0.2
9
9
  ```
10
10
 
11
- Install one dialect and its application-owned driver, then create `typed-sql.config.ts` as shown in
12
- the [root guide](https://github.com/Lojhan/typed-sql#configure-the-database-contract).
11
+ Install a grammar and its application-owned driver, then create `typed-sql.config.ts`.
13
12
 
14
13
  ```sh
15
- pnpm exec typed-sql --help
16
- pnpm exec typed-sql --version
17
- ```
18
-
19
- ```sh
20
- # Introspect the configured database and write schema metadata.
21
14
  pnpm exec typed-sql generate
22
-
23
- # Compile SQL inference into an isolated overlay and ask TypeScript 7 to check it.
24
15
  pnpm exec typed-sql check --file src/query.ts --project tsconfig.json
25
-
26
- # Compare the committed snapshot with the current live catalog and type policy.
27
16
  pnpm exec typed-sql drift
28
17
  ```
29
18
 
30
- Use `--config path/to/typed-sql.config.ts` when discovery is not appropriate. `generate` also accepts
31
- `--out`; `check` accepts `--file` and `--project`.
19
+ Use `--config path/to/typed-sql.config.ts` to bypass config discovery. Run
20
+ `pnpm exec typed-sql --help` for command options.
32
21
 
33
- The CLI contains no PostgreSQL, MySQL, `pg`, or `mysql2` dependency. It loads the installed dialect
34
- and schema provider through the project config. Diagnostics use the versioned
35
- [`TSQ` registry](https://github.com/Lojhan/typed-sql/tree/main/packages/core#diagnostics).
22
+ The CLI contains no PostgreSQL, MySQL, `pg`, or `mysql2` dependency. It loads the installed grammar
23
+ and schema provider through the application config. Read
24
+ [Configuration](https://github.com/Lojhan/typed-sql/blob/main/docs/getting-started/configuration.md) and
25
+ [Schema snapshots](https://github.com/Lojhan/typed-sql/blob/main/docs/guides/schema-snapshots.md).
36
26
 
37
27
  MIT © typed-sql contributors
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@typed-sql/cli",
3
- "version": "1.0.0-beta.3",
3
+ "version": "1.0.0",
4
4
  "description": "Config-driven typed-sql generation, checking, and schema drift CLI.",
5
5
  "license": "MIT",
6
6
  "author": "Lojhan",
@@ -35,10 +35,10 @@
35
35
  "typed-sql": "./dist/packages/cli/src/cli.js"
36
36
  },
37
37
  "dependencies": {
38
- "@typed-sql/compiler": "1.0.0-beta.2",
39
- "@typed-sql/core": "1.0.0-beta.2",
40
- "@typed-sql/config": "1.0.0-beta.2",
41
- "@typed-sql/schema": "1.0.0-beta.2"
38
+ "@typed-sql/core": "1.0.0",
39
+ "@typed-sql/schema": "1.0.0",
40
+ "@typed-sql/compiler": "1.0.0",
41
+ "@typed-sql/config": "1.0.0"
42
42
  },
43
43
  "scripts": {
44
44
  "test": "poku test --reporter=compact --enforce",