@oakoss/oakum 0.12.0 → 0.12.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/CHANGELOG.md +7 -1
- package/README.md +24 -8
- package/npm-shrinkwrap.json +2 -2
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.12.1 (2026-11-17)
|
|
4
|
+
|
|
5
|
+
### Fixed
|
|
6
|
+
|
|
7
|
+
The `.changeset/README.md` that `init` writes names the two markdown-lint settings oakum's files need (MD041 off for `.changeset/*.md`, MD024 `siblings_only` for changelogs), and `migrate` names them itself rather than claiming `init` prints them. The same README says a clean `check` prints its `check:` and `coverage:` lines, not nothing. `upgrade` refreshes a README v0.10.0 through v0.12.0 wrote.
|
|
8
|
+
|
|
3
9
|
## 0.12.0 (2026-11-16)
|
|
4
10
|
|
|
5
11
|
### Added
|
|
@@ -659,4 +665,4 @@ Release workflow checks out the homebrew tap in a subdirectory so the composite
|
|
|
659
665
|
|
|
660
666
|
Self-host release CI uploads cargo-dist artifacts into the GitHub Release oakum already created, instead of calling create again.
|
|
661
667
|
|
|
662
|
-
Generated by oakum 0.
|
|
668
|
+
Generated by oakum 0.12.0.
|
package/README.md
CHANGED
|
@@ -16,14 +16,6 @@ A library whose published range still covers the new version does not need repub
|
|
|
16
16
|
|
|
17
17
|
Oakum derives which is which — from the binary targets Cargo resolves for a package, from the `bin` field in npm — rather than asking you to declare it. Reading resolved targets rather than looking for `src/main.rs` is what makes `autobins = false` and explicit `[[bin]]` entries come out right.
|
|
18
18
|
|
|
19
|
-
## Design rules
|
|
20
|
-
|
|
21
|
-
**Config expresses preference; facts are derived.** What depends on what, what is publishable, what needs a bump, and which artifact ships are all read from the repository on every run. Templates, titles, the tag format oakum writes, and commit messages are yours, because they describe output rather than the repository, so they cannot go stale. One key is neither: `resolves-dependencies-at`, set per package under `[packages.<name>]`, which states when your package manager fixes a dependency — a fact about the ecosystem that oakum cannot read from your repository. `init` writes a `#:schema ./_schema.json` line, and `init` and `upgrade` keep `_schema.json` next to `_config.toml`, unless `_schema.json` has been deleted and the line names another schema, such as the `schema.json` the npm package ships; that directive is taplo's, not part of TOML, so editor support varies. Every key, with its type and any default, is in the [configuration reference](docs/guide/configuration.md).
|
|
22
|
-
|
|
23
|
-
**Every command writes only the files it owns.** Oakum does not install git hooks, touch git config, edit `AGENTS.md`, write CI workflows, or create commits you did not ask for. `version` owns the manifests it bumps, the lockfile entries those bumps invalidate, and declared `extra-files`. A Cargo version bump invalidates `Cargo.lock`, and a rewritten workspace range invalidates its `pnpm-lock.yaml` entry, so leaving either stale would break the next `--locked` build or frozen install. Nothing beyond that is written. `check` is pure: it reports drift and names the fix, never applies it.
|
|
24
|
-
|
|
25
|
-
**Failure is loud, and "we didn't look" is never reported as "it's fine."** Every verification has three outcomes, not two. A version that could not be confirmed says so.
|
|
26
|
-
|
|
27
19
|
## Install
|
|
28
20
|
|
|
29
21
|
Three install channels, one cargo-dist build behind all of them, so the versions cannot diverge ([ADR-0021](docs/decisions/0021-distribute-through-three-channels.md)):
|
|
@@ -34,6 +26,30 @@ Three install channels, one cargo-dist build behind all of them, so the versions
|
|
|
34
26
|
|
|
35
27
|
None of these works offline, and the npm channel needs **two** origins at install time — the registry for the package, then `github.com` for the binary. An environment with an internal npm mirror but no route to GitHub installs the package and then fails in `postinstall`; there, `cargo install oakum` through a crates.io mirror is the only channel that avoids GitHub entirely, since the shell installer and Homebrew fetch from the GitHub release too.
|
|
36
28
|
|
|
29
|
+
## Quick start
|
|
30
|
+
|
|
31
|
+
In an npm or Cargo repository:
|
|
32
|
+
|
|
33
|
+
1. `oakum init` writes `.changeset/` and prints a GitHub Actions workflow and the install pin your repository needs. Save the workflow under `.github/workflows/` and add the pin; oakum writes neither, and `add` refuses until the pin exists.
|
|
34
|
+
2. On a branch, `oakum add --packages <name>:<level> --message "<what users see>"` writes a bump file naming a package your change releases and how far (`patch`, `minor` or `major`); `oakum add --interactive` asks instead. With conventional commits on, `oakum generate` writes one from your commits.
|
|
35
|
+
3. `oakum status` shows the next release: each package, its new version, and why.
|
|
36
|
+
4. On every pull request, the workflow runs `oakum check --strict`, which fails when a changed package has nothing saying what the change releases, and comments the release plan.
|
|
37
|
+
5. On the default branch, it keeps a version pull request open with the bumped manifests and changelogs. Merging that pull request is the release: the workflow tags it and publishes the GitHub release.
|
|
38
|
+
|
|
39
|
+
Already on changesets, knope or bumpy? `oakum migrate` converts their config and pending bump files in place of step 1 ([Migrating](docs/guide/migrating.md)).
|
|
40
|
+
|
|
41
|
+
## Documentation
|
|
42
|
+
|
|
43
|
+
Start with the [user guide](docs/README.md#using-oakum): writing bump files, what covers a change, running oakum in GitHub Actions, and every config key. Design decisions and their reasons are in [docs/decisions/](docs/decisions/).
|
|
44
|
+
|
|
45
|
+
## Design rules
|
|
46
|
+
|
|
47
|
+
**Config expresses preference; facts are derived.** What depends on what, what is publishable, what needs a bump, and which artifact ships are all read from the repository on every run. Templates, titles, the tag format oakum writes, and commit messages are yours, because they describe output rather than the repository, so they cannot go stale. One key is neither: `resolves-dependencies-at`, set per package under `[packages.<name>]`, which states when your package manager fixes a dependency — a fact about the ecosystem that oakum cannot read from your repository. `init` writes a `#:schema ./_schema.json` line, and `init` and `upgrade` keep `_schema.json` next to `_config.toml`, unless `_schema.json` has been deleted and the line names another schema, such as the `schema.json` the npm package ships; that directive is taplo's, not part of TOML, so editor support varies. Every key, with its type and any default, is in the [configuration reference](docs/guide/configuration.md).
|
|
48
|
+
|
|
49
|
+
**Every command writes only the files it owns.** Oakum does not install git hooks, touch git config, edit `AGENTS.md`, write CI workflows, or create commits you did not ask for. `version` owns the manifests it bumps, the lockfile entries those bumps invalidate, and declared `extra-files`. A Cargo version bump invalidates `Cargo.lock`, and a rewritten workspace range invalidates its `pnpm-lock.yaml` entry, so leaving either stale would break the next `--locked` build or frozen install. Nothing beyond that is written. `check` is pure: it reports drift and names the fix, never applies it.
|
|
50
|
+
|
|
51
|
+
**Failure is loud, and "we didn't look" is never reported as "it's fine."** Every verification has three outcomes, not two. A version that could not be confirmed says so.
|
|
52
|
+
|
|
37
53
|
## Non-goals
|
|
38
54
|
|
|
39
55
|
No plugin runtime. Support only for the package managers this repository's projects actually use. No prerelease channels, snapshot releases, or staged publishing until a real repository needs them. No template value may execute a shell command — templates render, and anything that needs generating runs in your workflow and arrives as a file.
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"hasInstallScript": true,
|
|
20
20
|
"license": "MIT",
|
|
21
21
|
"name": "@oakoss/oakum",
|
|
22
|
-
"version": "0.12.
|
|
22
|
+
"version": "0.12.1"
|
|
23
23
|
},
|
|
24
24
|
"node_modules/detect-libc": {
|
|
25
25
|
"engines": {
|
|
@@ -48,5 +48,5 @@
|
|
|
48
48
|
}
|
|
49
49
|
},
|
|
50
50
|
"requires": true,
|
|
51
|
-
"version": "0.12.
|
|
51
|
+
"version": "0.12.1"
|
|
52
52
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"artifactDownloadUrls": [
|
|
3
|
-
"https://github.com/oakoss/oakum/releases/download/v0.12.
|
|
3
|
+
"https://github.com/oakoss/oakum/releases/download/v0.12.1"
|
|
4
4
|
],
|
|
5
5
|
"author": "Jace Babin",
|
|
6
6
|
"bin": {
|
|
@@ -105,7 +105,7 @@
|
|
|
105
105
|
"zipExt": ".tar.xz"
|
|
106
106
|
}
|
|
107
107
|
},
|
|
108
|
-
"version": "0.12.
|
|
108
|
+
"version": "0.12.1",
|
|
109
109
|
"volta": {
|
|
110
110
|
"node": "18.14.1",
|
|
111
111
|
"npm": "9.5.0"
|