Skip to content

v1.1.0-alpha.1: native TypeScript release

Latest
Compare
Choose a tag to compare
@agilgur5 agilgur5 released this 15 Feb 04:16
· 1 commit to main since this release

Release

Native TypeScript Release

  • the API surface is entirely backward-compatible, hence why this is releasing as SemVer minor

  • first official release of the TypeScript rewrite

    • this has been on the main branch for a few years (c.f. #42), but had not been released until now
      • v1.0.6 and v1.0.7 were both backported from initial changes to the main branch
    • as it is natively in TS now, @types/react-signature-canvas is no longer necessary
      • please file an issue if there are any problems with the typings! this is released as an alpha just in case!
    • as it is natively in TS now, the build process needed quite a lot of updating
      • it's now built with Rollup (as this is a library, not an app) and various plugins (some of which I help maintain, like rollup-plugin-typescript2) instead of Webpack v1 from like a ~decade ago (did Rollup even exist back then?)
      • there is now a native ESM build and a UMD build for backward-compatibility
        • note: the UMD build may be removed at a later date during a SemVer major update/breaking change
      • please file an issue if there are any problems with the build / distribution! this is released as an alpha just in case!

Changelog

Packaging

  • Standardize test config, upgrade (some) devDeps, add named export by @agilgur5 in #70
  • TypeScript Rewrite by @agilgur5 in #42
  • optim: add assumptions to Babel config, mirroring previous config by @agilgur5 in #79
  • optim: specify version in @babel/plugin-transform-runtime by @agilgur5 in #80

Peer Dependencies

  • deps: update peerDeps to support React 18 without warnings by @agilgur5 in #89
  • deps: update peerDeps to support React 19 without warnings by @agilgur5 in #116
  • deps: move peer types to optional peerDeps by @agilgur5 in #122

Documentation

  • docs: change CI badge to use GH Actions instead of Travis by @agilgur5 in #85
  • docs: fix & update badges by @agilgur5 in #99
  • pkg: update description to mention current features by @agilgur5 in #123

Examples

  • fix: upgrade react-hot-loader for example to work with latest React by @agilgur5 in #71
  • docs: update examples to use newer React syntax by @agilgur5 in #119
  • docs: update link to new CodeSandbox example by @agilgur5 in #120
  • docs: update other CodeSandbox link as well by @agilgur5 in #121

Internal Changes

Tests

CI

  • ci: migrate to GitHub Actions w/ matrix by @agilgur5 in #84
  • fix(ci): temporarily pin matrix to Node 16 on Ubuntu by @agilgur5 in #113
  • fix(ci): update codecov-action to v5 by @agilgur5 in #114
  • fix(ci): run GH action on external PRs as well by @agilgur5 in #112

Dev Dependencies

  • env: npm audit fix some devDeps by @agilgur5 in #72
  • deps: use rollup-plugin-node-externals by @agilgur5 in #83
  • deps: upgrade to rpt2 0.32.1 to fix configPlugin declarationMap issue by @agilgur5 in #86
  • deps: use @agilgur5/tsconfig to simplify tsconfig by @agilgur5 in #87
  • deps: update node-canvas, Node, actions, + npm audit fix by @agilgur5 in #115
  • deps: update jest et al to v29, concurrently to v9 by @agilgur5 in #118

Full Changelog: v1.0.5...v1.1.0-alpha.1