7 Commits

Author SHA1 Message Date
Joe Pea
dec679d4ed chore: convert the project to type:module (ES Module mode); update prettier, typescript, and rollup; remove sinonjs because of too much complexity getting it to work in ESM mode and instead mock performance.now ourselves for our tests, which ends up being simpler anyway!; get browser tests in nodeunit.html working; party 🎉 2023-04-22 20:47:40 -07:00
Joe Pea
5767ff82b8 chore: convert test code to TypeScript
This is good for checking our own type definitions make sense. Some types were updated based on their usage in the tests.
2020-10-23 16:11:23 -07:00
Joe Pea
db581b5dfd chore: improve dev script so output can be meaningfully watched
This makes it work well in VS Code (f.e. it will use $ts-watch mode to read errors from stdout and display them in the "PROBLEMS" pane).

Plus this tells newcomers how to quickly get things started in dev mode (watch mode) for easy dev cycles.
2020-10-22 00:51:50 -07:00
Joe Pea
825bd2b466 fix: restore default export for backwards compat
Brings back default exports for backwards compatibility, but this time in a way that works with AMD and CJS module formats without build tool hacks. Uses rollup-plugin-dts to generate the type declaration for the bundle output, removing the brittle regex-based wrangling we were doing.
2020-10-20 00:01:09 -07:00
Joe Pea
bf4048706e format all files in the project now that we have prettier. Yay! 2020-06-02 23:29:00 -07:00
Alex Rodin
846d3de5e9 Migration to Typescript maintaining backward compatibility 2019-12-15 13:39:21 -03:00
Kevin Peters
cb0895c4ee feat: include rollup to bundle library 2018-04-04 14:00:23 +02:00