pnpm
is now used for package management instead ofnpm
. This change only affects the development of the package and is not forced on consumers. Read more here: https://pnpm.io/pnpm-vs-npmnode
v22 is now used for testing in GItHub actions (older versions are not tested against however, versions still under support/development can be requested by opening an issue/pull request.)- Improve caching of dependencies in GitHub Actions workflows.
- Update
typescript
package tov5.7.2
(for project distribution build and examples.) - Perform
pnmp update
onexamples/package
andexamples/project
projects. - Generated JavaScript code now targets
ES5
, transpiling TypeScript sources for maximum compatibility. If desired, code size can be reduced by compiling the TypeScript sources to a more modern standard. AlpineBindingContext
,AlpineData
andKnownGenericConstructor
types are now exported and covered by API versioning.
Changes from v0.0.4
(skipped release cycle):
- Move generated
index.js
todist
directory for distribution (no longer in package root.) - 'alpine' dependency moved from
devDependencies
topeerDependencies
. Component.ts
/AlpineComponent
: addbinding()
helper method for declaring alpinex-bind
objects. Useful for immediately binding boolean property changes to modify state on in-scope elements. See: https://alpinejs.dev/directives/bind#binding-classes https://github.com/NxtLvLSoftware/alpine-typescript/blob/39598c13df0da8b08484eb8ceaac00754bc3e4a4/examples/package/src/components/AlertComponent.ts#L39