Releases: 1Password/typeshare
Releases · 1Password/typeshare
Version 1.2.0
Release Notes
This release brings Scala functionality to the CLI, support for Apple Silicon as a pre-built binary, and refactors how
we handle language variants internally to be more type-safe.
typeshare-cli
- Scala is now a language generation target! Try it out with
typeshare --lang=scala --scala-package=com.your.package.here some/file.rs
- Future releases (including this one) now support aarch64-apple-darwin as an additional architecture.
- Scala is now a language generation target! Try it out with
typeshare-core
- Language variants are now represented as enums instead of strings.
Community contributors
Thank you to the following community contributors for your work on this release:
Install typeshare-cli 1.2.0
Install prebuilt binaries via shell script
# WARNING: this installer is experimental
curl --proto '=https' --tlsv1.2 -LsSf https://github.com/1Password/typeshare/releases/download/v1.2.0/typeshare-cli-v1.2.0-installer.sh | sh
Install prebuilt binaries via powershell script
# WARNING: this installer is experimental
irm https://github.com/1Password/typeshare/releases/download/v1.2.0/typeshare-cli-v1.2.0-installer.ps1 | iex
Download typeshare-cli 1.2.0
target | kind | download |
---|---|---|
aarch64-apple-darwin | tarball | typeshare-cli-v1.2.0-aarch64-apple-darwin.tar.xz |
x86_64-apple-darwin | tarball | typeshare-cli-v1.2.0-x86_64-apple-darwin.tar.xz |
x86_64-pc-windows-msvc | tarball | typeshare-cli-v1.2.0-x86_64-pc-windows-msvc.zip |
x86_64-unknown-linux-gnu | tarball | typeshare-cli-v1.2.0-x86_64-unknown-linux-gnu.tar.xz |
Version 1.1.0
Download
target | kind | download |
---|---|---|
x86_64-unknown-linux-gnu | tarball | typeshare-v1.1.0-x86_64-unknown-linux-gnu.tar.xz |
x86_64-apple-darwin | tarball | typeshare-v1.1.0-x86_64-apple-darwin.tar.xz |
x86_64-pc-windows-msvc | tarball | typeshare-v1.1.0-x86_64-pc-windows-msvc.zip |
x86_64-pc-windows-msvc | symbols | typeshare-v1.1.0-x86_64-pc-windows-msvc.pdb |
Release Notes
This release brings major new additions, the largest of which is support for Scala as a language generation target.
Additionally, the code generation API has been expanded/revised, and many bugs have been fixed.
-
typeshare-cli
- Kotlin now uses
val
consistently for defining fields. - Some issues with the command line options have been corrected.
- Unit structs that don't use bracket syntax are now supported.
- Typescript can now handle type aliases of optional types.
- Empty structs are now represented as objects in Kotlin.
- You can now define read-only Typescript properties with
#[typeshare(typescript(readonly))]
. - Doubly-nested option types (
Option<Option<T>>
) are now supported in Typescript. - Default protocols for generated Swift types can now be specified in
typeshare.toml
withswift.default_decorators
.
- Kotlin now uses
-
typeshare-core
- The
Language
trait now takesself
mutably for more flexibility in implementations. - Scala is now a supported language for code generation, though the CLI does not use it yet.
- The attribute parser has been reworked to be more robust and flexible for future additions.
- The
-
Miscellaneous
- We now have a proper release system and prebuilt binaries for anyone to download 🎉
- Releases will be weekly on every Thursday.
Community Contributors
Thank you to the following community contributors for your work on this release:
exoego, Czocher, ccouzens,
McAJBen, adriangb, kareid,
nihaals, ChrisMcKenzie, justintime4tea,
prestontw, and julienfouilhe!
v1.1.0-prerelease02
Download
target | kind | download |
---|---|---|
x86_64-unknown-linux-gnu | tarball | typeshare-v1.1.0-prerelease02-x86_64-unknown-linux-gnu.tar.xz |
x86_64-apple-darwin | tarball | typeshare-v1.1.0-prerelease02-x86_64-apple-darwin.tar.xz |
x86_64-pc-windows-msvc | tarball | typeshare-v1.1.0-prerelease02-x86_64-pc-windows-msvc.zip |
x86_64-pc-windows-msvc | symbols | typeshare-v1.1.0-prerelease02-x86_64-pc-windows-msvc.pdb |
v1.1.0-prerelease01
Download
target | kind | download |
---|---|---|
x86_64-unknown-linux-gnu | tarball | typeshare-v1.1.0-prerelease01-x86_64-unknown-linux-gnu.tar.xz |
x86_64-apple-darwin | tarball | typeshare-v1.1.0-prerelease01-x86_64-apple-darwin.tar.xz |
x86_64-pc-windows-msvc | tarball | typeshare-v1.1.0-prerelease01-x86_64-pc-windows-msvc.zip |
x86_64-pc-windows-msvc | symbols | typeshare-v1.1.0-prerelease01-x86_64-pc-windows-msvc.pdb |