Releases: codehs/chs-js-lib
0.2.18
This is another entirely internal release to test a GitHub actions workflow. Please ignore!
What's Changed
- Use action from Marketplace to extract the version of the package by @anderoonies in #126
Full Changelog: 0.2.17...0.2.18
0.2.17
0.2.17
This release has no public changes and is only being done to host a new version of the library behind a codehs.com URL for school firewalls.
What's Changed
- Workflow for publishing distributed library to s3 by @anderoonies in #125
Full Changelog: 0.2.16...0.2.17
0.2.16
Summary
This is a patch for fixing a bug where getDistance was not exposed and fullReset would cause an error.
What's Changed
- Expose
getDistancein entrypoints by @anderoonies in #123
Full Changelog: 0.2.15...0.2.16
0.2.15
0.2.15
This version of the library has been in use in CodeHS over the past month, which means that we have a lot of bug fixes for uses I couldn't predict!
Thank you to everyone who has reported an issue through CodeHS.
Summary of Changes
Fix devicePixelRatio scaling when in fullscreen mode
When in fullscreen mode (via setFullscreen()), context scaling based on devicePixelRatio wasn't happening, which meant that the graphics only took up a portion of the canvas.
All timers with the same name are stopped when stopTimer is called
This fixes a bug where a timer would become unstoppable! if another timer with the same name was created.
Target es2015
Old versions of Chrome (like my Chromebook has) don't support some ES6 syntax, like optional chaining and the nullish coalescing operator. The project now targets ES 2015 to widen support.
Handle edge case from add()ing elements twice
This was a sneaky bug that would sometimes cause elements to disappear. For more details, see #118
What's Changed
- Perform context scaling according to devicePixelRatio when setting fullscreen by @anderoonies in #116
- Stop all timers with the same name when calling
stopTimerby @anderoonies in #114 - Target es2015 with builds to improve browser support by @anderoonies in #113
- Handle edge cases from add()ing elements twice by @anderoonies in #122
- Fix typo in README by @anderoonies in #118
New Contributors
- @allcontributors made their first contribution in #110
Full Changelog: 0.2.14...0.2.15
0.2.14
What's Changed
Public API Changes
- Reintroduce
setTypeandgetTypeby @anderoonies in #112
Internal Changes
- Expand documentation with READMEs and contributing guide by @anderoonies in #105
- Fix title of accessibility/groups/groups.md, groups.js by @anderoonies in #109
Full Changelog: 0.2.13...0.2.14
0.2.13
What's Changed
- Fix for local site with types by @anderoonies in #102
- Fix 2d Perlin noise implementation to handle boundary cases by @anderoonies in #103
- Create PULL_REQUEST_TEMPLATE.md by @anderoonies in #106
- Fixes for input re-prompting by @anderoonies in #107
Full Changelog: 0.2.12...0.2.13
0.2.12
What's Changed
- Expose data structures, tests for distributed builds, tests for data structures by @anderoonies in #101
This release exposes Grid, Stack, Queue, and Set, data structures which can simplify some common tasks.
Examples for using these data structures are needed, if you have a good example please create a pull request!
0.2.11
Full Changelog: 0.2.10...0.2.11
This makes sure types.d.ts are included.
0.2.10
What's Changed
- Add TypeScript dependency for generating declaration file by @anderoonies in #99
This doesn't change the API at all, just adds support for generating a typescript declaration (.d.ts) file when publishing.
0.2.9
What's Changed
- Support printing multiple elements with
printto prepare for printing objects. by @anderoonies in #98
This is a small release that changes the behavior of print and println to allow sites embedding the library to have fuller control over how things are displayed, including stringifying objects before printing them.