Skip to content

Conversation

@sugoidogo
Copy link

As of Wrangler v3.91.0 Cloudflare recommends using wrangler.jsonc for new projects, and some newer Wrangler features will only be available to projects using a JSON config file. In my projects, wrangler init no longer prompts for a choice between TOML and JSON, or seems to have an option to produce TOML at all, instead producing a JSONC file automatically. This PR adds the ability for selflare to read json(c) files, and converts JSONC to JSON for miniflare. I don't know if it's because of the version of miniflare used in selflare, but it's unable to parse the produced JSONC file, and passing the object after manual parsing instead of the filename produces internal errors. A second example worker and test was also added and passed for JSON(C) parsing.

@changeset-bot
Copy link

changeset-bot bot commented Oct 21, 2025

🦋 Changeset detected

Latest commit: b89939a

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
selflare Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@sugoidogo
Copy link
Author

sugoidogo commented Oct 21, 2025

Not sure what needs to be done to make changeset-bot happy, tried running the changeset command but there doesn't seem to be a changeset config in the repo
Don't know how the .changeset folder dissapeared on me before, re-did everything and it seems to be working now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant