@skillstech/thunderlang 1.4.3 → 1.5.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.
- package/CHANGELOG.md +23 -0
- package/dist/core.cjs +402 -159
- package/dist/index.cjs +490 -170
- package/dist/learn.cjs +398 -155
- package/package.json +1 -1
- package/src/cli.mjs +1 -1
- package/src/emit.mjs +1 -1
- package/src/mcp.mjs +2 -2
- package/src/passport.mjs +9 -2
- package/src/read-repo-fs.mjs +3 -2
- package/src/trace-cli.mjs +3 -3
- package/src/trace-data.mjs +219 -0
- package/src/trace-fs.mjs +10 -3
- package/src/trace.mjs +207 -16
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,26 @@
|
|
|
1
|
+
# 1.5.0
|
|
2
|
+
|
|
3
|
+
- **Thunder Trace reads tables, settings, and packages.** `thunder trace` now links SQL to the repository that
|
|
4
|
+
creates the table (`CREATE TABLE` in its SQL files), and a dependency to the repository that publishes the package
|
|
5
|
+
(`package.json` name, `go.mod` module, `.csproj` `PackageId`). It also lists what repositories share: setting keys
|
|
6
|
+
more than one reads (`process.env.ORDERS_URL`, `os.getenv("ORDERS_URL")`, and the other languages' ways), tables
|
|
7
|
+
more than one uses, and packages asked for at different versions in different repositories. `thunder trace impact`
|
|
8
|
+
takes `table:orders`, `setting:ORDERS_URL`, and `package:@acme/client` (or the plain name), and `--diff` reports a
|
|
9
|
+
changed, dropped (`DROP TABLE`), or no-longer-created table with every place in another repository that still uses
|
|
10
|
+
it, SQL on another repository's table, a changed setting other repositories read, and a change inside a package
|
|
11
|
+
other repositories depend on. The same rules as routes: facts only, one hop, test and fixture files left out, every
|
|
12
|
+
item cited `repo@sha:file:line`. SQL in code counts only in strings shaped like a statement, so a sentence such as
|
|
13
|
+
"Delete your data from Profile" is never read as SQL. The MCP `intent_trace` tool takes the same names.
|
|
14
|
+
- **Fix: a pure deletion in `--diff`** (lines removed, none added) no longer marks the line before it as changed. It
|
|
15
|
+
touches only what spans the gap, such as the function or statement it was inside.
|
|
16
|
+
- **Passport** words the new table links ("billing reads the orders table, which orders creates").
|
|
17
|
+
|
|
18
|
+
**Upgrade note.** No command, flag, or exit code changed. The `thunder-trace-v1` graph gains fields: each repository
|
|
19
|
+
has `packages`, `settings`, and `tables`; links can have `kind: "data"` or `kind: "package"`; and there is a new
|
|
20
|
+
`shared` object. `rulesVersion` is now `"2"`, so fingerprints differ from rules v1 for the same commits. Readers that
|
|
21
|
+
switch on `link.kind` should handle (or skip) the two new kinds. `thunder trace` now reads `package.json`, `go.mod`,
|
|
22
|
+
`requirements.txt`, and `*.csproj` files from each folder.
|
|
23
|
+
|
|
1
24
|
# 1.4.3
|
|
2
25
|
|
|
3
26
|
**Upgrade note.** No command, flag, exit code, or JSON shape changed. `readingLayout` can now end with a new
|