Skip to content

Commit d9f4c89

Browse files
committed
release: 0.1.1, ship scriptc ^0.3.0 (covers 0.3.1)
Loosen the scriptc peer dep from exact 0.3.0 to ^0.3.0: the plugin only depends on the scriptc build flag surface and the v1 diagnostics JSON envelope, both stable across the 0.3 line, so bug-fix releases like 0.3.1 flow through without a plugin bump. 0.4.0 stays an explicit upgrade (re-check flags and schemaVersion when it lands). Refreshes pnpm-lock.yaml so dev installs resolve scriptc 0.3.1. Updates README/docs/AGENTS.md and the buildArgs comment to reflect the minor range instead of an exact pin.
1 parent d6633af commit d9f4c89

6 files changed

Lines changed: 39 additions & 39 deletions

File tree

‎AGENTS.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ unplugin wrapper that runs `scriptc build` inside bundler pipelines and surfaces
1313

1414
- **One responsibility.** The plugin runs the compiler. It never re-implements scriptc's analysis: diagnostics are parsed from the `--print diagnostics` JSON envelope and re-emitted, nothing is inferred locally. If a check requires knowing the compilable subset, it comes from scriptc or nowhere.
1515
- **Every flag is reachable.** `ScriptcBuildOptions` mirrors the `scriptc build` option surface of the pinned release one-to-one; `args` is the escape hatch for newer flags. When scriptc adds flags, add the option rather than telling users to pass `args` permanently.
16-
- **scriptc is pinned.** `peerDependencies["scriptc"]` is an exact version. Bump it deliberately with a commit that notes what changed in the flag surface or diagnostics schema (schemaVersion on the envelope is the contract).
16+
- **scriptc is pinned to a minor range.** `peerDependencies["scriptc"]` is `^0.3.0` — accepts every 0.3.x release (patch + bug-fix) without a plugin bump, and refuses 0.4.0+. The plugin only relies on the `scriptc build` flag surface and the v1 diagnostics JSON envelope, both stable within the 0.3 line. When scriptc ships a new minor, bump the peer range with a commit that re-checks the flag surface and the envelope schema (schemaVersion is the contract).
1717
- **Reporter contract.** `this.warn`/`this.error` exist only on some bundler hook contexts; `makeReporter` falls back to `console.warn`/`console.error` with the `[unplugin-scriptc]` prefix. Never call `this.warn` directly in a hook that lacks it.
1818

1919
## Commands

‎README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ The plugin does one thing: run `scriptc build` on your app entry as part of the
1010
npm i -D unplugin-scriptc scriptc
1111
```
1212

13-
`scriptc` is a peer dependency pinned to `0.3.0` on purpose: scriptc evolves fast and breaks flags between releases. Upgrade the pin deliberately.
13+
`scriptc` is a peer dependency pinned to `^0.3.0`: it accepts any 0.3.x release, so patch and bug-fix releases flow through without a plugin bump, but the next minor (0.4.0) is an explicit upgrade. The plugin only relies on the `scriptc build` flag surface and the v1 diagnostics JSON envelope, both stable within the 0.3 line.
1414

1515
## Usage
1616

‎docs/index.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ bun add -D unplugin-scriptc scriptc
2828

2929
:::
3030

31-
`scriptc` is a peer dependency pinned to `0.3.0`. scriptc evolves fast and changes flags between releases, so the pin is deliberate; upgrade it when you are ready to re-check your build flags.
31+
`scriptc` is a peer dependency pinned to `^0.3.0`: it accepts any 0.3.x release, so patch and bug-fix releases flow through without a plugin bump, but the next minor (0.4.0) is an explicit upgrade. The plugin only relies on the `scriptc build` flag surface and the v1 diagnostics JSON envelope, both stable within the 0.3 line.
3232

3333
## Usage
3434

‎package.json‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "unplugin-scriptc",
3-
"version": "0.1.0",
3+
"version": "0.1.1",
44
"description": "scriptc native compilation for any bundler via unplugin",
55
"keywords": [
66
"scriptc",
@@ -47,7 +47,7 @@
4747
"unplugin": "^3.4.0"
4848
},
4949
"peerDependencies": {
50-
"scriptc": "0.3.0",
50+
"scriptc": "^0.3.0",
5151
"typescript": ">=5.0.0"
5252
},
5353
"devDependencies": {

‎pnpm-lock.yaml‎

Lines changed: 33 additions & 33 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎src/scriptc.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export interface ScriptcBuildOptions {
3636
ffi?: string[];
3737
// --npm-static: "auto" opts every eligible direct import in; a string list
3838
// names packages explicitly (each entry becomes one flag). Eligible
39-
// dependencies already compile automatically in v0.3.0.
39+
// dependencies already compile automatically in v0.3.x.
4040
npmStatic?: "auto" | string[];
4141
// --provenance-sources: compile npm deps from provenance-attested source.
4242
provenanceSources?: boolean;

0 commit comments

Comments
 (0)