feat!: ez init's layout, main.bend at the root and modules under src/ - #19
Merged
Merged
Conversation
The hub describes a package by the first line of its first file by path.
With everything under ezhttp/ that was src b64's header. main.bend now sits
at the package root, beside LICENSE, and opens with a one-sentence
description; every module the entry walks is under src/ (wire's C and JS
effects under src/effs/). LAWS.bend, PROOF.bend and ENTRY.bend sit at the
root, outside the walk, as in ezjson. ez.toml's entry is main.bend; the
bench, the flake's proofs check and the README follow the new paths.
The walk: LICENSE, main.bend, src/{auth,b64,body,cache,client,cookie,
cors,http,server,url,wire,wirespec}.bend, src/effs/wire.{c,js}.
BREAKING CHANGE: ezhttp's internal modules moved from ezhttp/ to src/, and
the entry from ezhttp/main.bend to main.bend. Importers of main.bend by the
package's hub name are unaffected; importers of any other module update the
path, e.g. <hash>/http.bend becomes <hash>/src/http.bend.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
The hub describes a package by the first line of its first file by path (LICENSE skipped); ezhttp's flat
ezhttp/layout made thatezhttp/b64: Base64 encoding….main.bendat the package root, first line:# ezhttp: HTTP/1.1 client and server for Bend 2, with auth, cookie and CORS helpers.src/(effects undersrc/effs/);src/json.bend(private, not in the walk) too.LAWS.bend,PROOF.bend,ENTRY.bendat the root, outside the walk (as in ezjson).ez.tomlentry =main.bend; bench, flake proofs check, README import paths updated (hub hash unchanged).Walk (sorted):
LICENSE,main.bend,src/auth.bend,src/b64.bend,src/body.bend,src/cache.bend,src/client.bend,src/cookie.bend,src/cors.bend,src/effs/wire.c,src/effs/wire.js,src/http.bend,src/server.bend,src/url.bend,src/wire.bend,src/wirespec.bend.On bend 2.0.34:
PROOF.bendprints ALL PROOFS CHECK;ENTRY.bendfails only with the foreign-code list;nix flake checkpasses (proofs, lint 0 errors, http-compare 43/43).BREAKING: importers of any module other than
main.bendmust addsrc/to the path.🤖 Generated with Claude Code