Skip to content

Tags: webrpc/gen-javascript

Tags

v0.16.0

Toggle v0.16.0's commit message
fix: keep schema hash on by default, omit via -schemaHash=false

v0.15.0 made schema hash emission opt-in (default off), a breaking change for
consumers that rely on the hash and version constants. Restore the hash to on by
default and make omission opt-out instead.

- default (or -schemaHash): hash + version constants emitted, as before v0.15.0.
- -schemaHash=false: omits the hash from the header comment and the version
  constants (WebRPCVersion, WebRPCSchemaVersion, WebRPCSchemaHash). The
  "Code generated by ... DO NOT EDIT." line stays.

Regenerated _examples (hash restored).

v0.15.0

Toggle v0.15.0's commit message
feat: make schema hash and version constants opt-in via -schemaHash

The schema hash in the file header comment and the WebRPCSchemaHash constant
change on every schema edit, producing perpetual git merge conflicts in
generated files. The version constants (WebRPCVersion, WebRPCSchemaVersion,
WebRPCSchemaHash) are rarely consumed.

Gate them behind a new -schemaHash target option (default false), flipping the
previous always-on behavior:

- default: header comment carries only the name and version (no hash), and no
  version constants are emitted. The "Code generated by ... DO NOT EDIT." line stays.
- with -schemaHash: restores today's output exactly (hash in the header plus all
  three constants).

Regenerated _examples to reflect the new default.

v0.14.0

Toggle v0.14.0's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Support the new RIDL "basepath" keyword (#8)

v0.13.0

Toggle v0.13.0's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Fix -exports=true (#7)

* Fix -exports=true option

* CI: Update to [email protected]

v0.12.0

Toggle v0.12.0's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Expose as a Go module with //go:embed FS (#6)

v0.11.0

Toggle v0.11.0's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Ignore `json = -` fields (#5)

* Ignore `json = -` fields

Fixes webrpc/webrpc#66

* Fix example RIDL

* Update webrpc-gen

v0.10.0

Toggle v0.10.0's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Interoperability tests (copy from gen-typescript repo) (#3)

* Interoperability tests (copy from gen-typescript repo)

* Add .js to import file

v0.9.0

Toggle v0.9.0's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Update templates to [email protected] schema (#2)

* README: Update options

* Update to [email protected]

* Fix types

* Improve generated code

* Switch webrpc to webrpc/webrpc#171

* Regenerate tests

v0.7.1

Toggle v0.7.1's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
 Added wrapper to fetch method (#1)

v0.7.0

Toggle v0.7.0's commit message
Lowercase the webrpc-cli custom -options