Repository navigation
Tags
Tags
chore: release 0.1.0-alpha.4 (#28) ## Why The changes of #22 and #23 are on `main` and ready for a release. ## What changed - The packages move to `0.1.0-alpha.4` in the six published manifests. - The `Unreleased` section of `CHANGELOG.md` becomes the section of `0.1.0-alpha.4`, dated 2026-11-23. A short "What's new" sums up the release, and the entries of each package follow under "All changes". The comparison links at the bottom of the file are updated. - The archive URLs in the "Installing from a release" section of the README point to `v0.1.0-alpha.4`. `UPGRADING.md` already has the section "From 0.1.0-alpha.3 to 0.1.0-alpha.4", so it does not change. ## Checks - Prettier passes. `yarn install --immutable` passes, so the lockfile does not change. - The `awk` step of the release workflow, run locally on the new changelog, extracts the section of `0.1.0-alpha.4`. ## After the merge Tag the merge commit with `v0.1.0-alpha.4` and push the tag. The release workflow then publishes a GitHub pre-release with the archives.
docs: review the documentation, export the options of the loader, and… … release 0.1.0-alpha.3 (#18) ## Why The toolkit is ready for another pre-release, `0.1.0-alpha.3`, with the Result APIs, the new messages, hot reloading through the patched `elm/core`, the archive commands of the kernel patcher, and Elm 0.19.3. The packages are still released as archives on GitHub, until they are published on npm. Before the release, the documentation needed a review. The unreleased part of the changelog listed changes by kind, with the packages mixed and with notes for the people who develop the toolkit, so a reader could not see what the release brings or what to change in a project. The README of `cli-lib` still described the library before `Maybe`, `Result`, and `CliError`, and the example of the patcher as a library no longer compiled. ## What changes **Changelog and upgrading guide** - The changelog section opens with "What's new", an announcement for programmers: the Result API for tools, hot reloading that keeps the state thanks to the kernel patches of lydell, kernel patches from any Git commit, and messages that say what broke. - "All changes" lists every change by package, with the packages that most projects use first. - The steps and diffs to upgrade move to a new `UPGRADING.md`, with one section for each version. The changelog links to it with full URLs, because the notes of a GitHub release do not resolve relative links. - `AGENTS.md` and the release steps of the root README say how the next changes keep this shape. **READMEs** - The root README lists the packages, with what each one does, and its section about tests names the two `messages` scripts. - The README of `cli-lib` is rewritten around `Maybe`, `Result`, `CliError`, and `CliSuccess`. - The README of the kernel patcher shows `patchKernel` as a library, and the two steps with `andThen`. The old example called `replaceKernelPackages(prepareArgs(…))`, which does not compile with the Result API. - The README of `node-elm-compiler` says who the Result API is for, and shows `compileWorker`. The loader README says how to get the patched `elm/core`, and thanks lydell. - The notes meant for maintainers leave the READMEs of the packages: `dist/`, the development scripts, and `ELM_TEST_BINARY`. **API docs** - `ReplaceKernelArgs`, `manifestName`, and `archiveName`, the three public symbols without an example, get one. - Module docs that named things that changed are corrected. The archive builder named `Result.attempt`, which is `Result.fromAttempt`. **Typed options of the loader** - `ElmLoaderOptions` is exported, with the ten documented options and without the index signature, so a `webpack.config.ts` gets an error for a misspelled option. A rule names the loader by its package name or path, so the options are the part that TypeScript can check. - The loader still reads the options through an internal type that accepts any key, so the behaviour at run time does not change. - A test file checks a typed configuration with `tsc`, and the loader README shows a typed `webpack.config.ts` with the plugin of the kernel patcher. That example was checked once against the real plugin. **Release** - The six public packages are at `0.1.0-alpha.3`, the changelog section has the version and the date, and the installation examples of the root README point to the archives of `v0.1.0-alpha.3`. ## Checks - Lint, format, build, and every test suite pass. - The release workflow was simulated locally. Its script extracts the notes of `0.1.0-alpha.3` from the changelog, 232 lines from "What's new" to the last entry of `cli-lib`. `yarn pack` produces the six archives with the names that the README uses, and the dependencies between the packages become `^0.1.0-alpha.3` in the packed manifests. ## After the merge The tag `v0.1.0-alpha.3` on the merge commit starts the release workflow, which publishes the GitHub release with the archives.