Open
Conversation
46fb320 to
2710358
Compare
2613e18 to
1dc22b3
Compare
2710358 to
b443a70
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to master, this PR will be updated.
masteris currently in pre mode so this branch has prereleases rather than normal releases. If you want to exit prereleases, runchangeset pre exitonmaster.Releases
@noormdev/cli@1.0.0-alpha.20
Minor Changes
88b33ce: ## Added
feat(dt):DT file modifier — drop, add, or rename columns and filter rows from exported.dt/.dtz/.dtzxfiles without re-exporting from the source databasefeat(cli):"Modify .dt file" option in the Data Transfer screen with interactive recipe builder, schema preview, and streaming output2955758: ### Added
feat(headless):Addrun inspectcommand — inspect template context (data files, helpers, builtins, config, secrets) without executing, with--jsonsupportfeat(headless):Addrun previewcommand — render .sql.tmpl files and output raw SQL to stdout, pipeable to files or other toolsFixed
fix(errors):Propagate SQL Server TDS diagnostic info (line numbers, error codes, procedure names, severity) through to TUI — errors now show e.g.[Line 42, Err 207] Invalid column nameinstead of just the message textfix(errors):Propagate PostgreSQL and MySQL diagnostic info (error codes, SQLSTATE, severity) through to TUIfix(errors):Handle Kysely-unpackedAggregateErrorarrays from TDS with multi-line displayfix(template):EtaautoTrimleft-trim was eating newlines after interpolation tags, joining SQL lines (e.g.ENDAS,ENDIF NOT EXISTS) — disabled autoTrim and implemented directive-line stripping for-- {% %}conventionfix(db):Disconnect shared TUI connection beforeDROP DATABASEto prevent ECONNRESET errorsfix(db):Show friendly "Not Created" notice instead of aggressive ERROR badge when database does not existfix(tui):Show full multi-line SQL errors in all run/change screens instead of truncating to 60 charactersPatch Changes
2328fa2: ### Fixed
fix(headless):Produce structured JSON error output ({ success, error }) when--jsonis set — previously errors were only logged as text, leaving CI pipelines with no parseable output on failurefix(headless):Enrich SQL error messages with dialect-aware diagnostics (line numbers, error codes, procedure names, severity) viagetSqlErrorMessagein all headless command error pathsfix(headless):Standardizerun buildexit code from2to1to match the0/1convention used by all other headless commandsfix(headless):Replace stale.sql.etafile extension references with.sql.tmplacross CLI argument parsing, help text, and documentationAdded
feat(headless):Addsqlcommand to the home help commands listfeat(headless):Document.sql.tmpltemplate file support inrunhelp text3ab86b8: ### Fixed
fix(template):Resolve$helpersloading in compiled binaries — bare specifier resolution now usesBun.build()to bundle helper files with all dependencies, fixingCannot find packageerrors in pnpm projectsfix(inspect):Show$helpersexports in Inspect Template screen — categorization now uses source-based tracking instead of type-guessing, and load errors are surfaced instead of silently swallowedAdded
feat(cli):Adddev/test-helpersdiagnostic command for verifying$helpersloading from any execution context@noormdev/sdk@1.0.0-alpha.20
Minor Changes
1dc22b3: ## Added
feat(sdk):Per-request user impersonation viactx.impersonate()— borrow a dedicated pool connection, switch database identity, and run queries as a specific principal with guaranteed revertfeat(sdk):Callback mode (auto-reverts on completion or throw) and explicit mode (caller-managed lifecycle for cross-boundary use cases like Hapi request hooks)feat(sdk):MSSQL (EXECUTE AS USER/REVERT) and PostgreSQL (SET ROLE/RESET ROLE) dialect support with SQL injection prevention via username validation and dialect-specific quotingPatch Changes
8b20702: ### Fixed
fix(sdk):Bundle all runtime dependencies — resolvesCannot find package 'json5'and similar errors when importing the SDKfix(sdk):AddcreateRequirebanner for CJS packages that userequire('process')in ESM bundlesfix(template):Resolve$helpersloading in compiled binaries viaBun.build()bundlingChanged
perf(sdk):Lazy-load template data parsers (JSON5, YAML, CSV) — heavy parser libraries are now deferred until first use, reducing SDK startup timeperf(sdk):Replacevocadependency with inlinecamelCaseimplementation (~1500 lines removed from bundle)perf(sdk):Stubansisterminal color library — SDK consumers don't need ANSI output