v1.5.0
This change lays a bunch of groundwork for 2.0, mostly for things which are not related to production code, so very little has changed from 1.4.2 to 1.5.0.
The key new feature here is a temporary feature to help migration to 2.0: @attr
by default comes with a data-
prefix, this is being dropped in 2.0, and 1.5.0 now observed a classes attrPrefix
static property (which defaults to data-
). To enable an easier migration to 2.0, you can use this to refactor your code and drop the data-
attr prefix:
class HelloWorldController extends HTMLElement {
static attrPrefix = '' // defaults to 'data-'
}
What's Changed
- clean up register tests, use register like decorator by @keithamus in #214
- Expand docs on minification options by @keithamus in #217
- Create guide page for Testing by @keithamus in #218
- improve type definition for custom element class/instance by @keithamus in #222
- Upgrade outdated packages by @keithamus in #223
- Improve docs around manual naming to avoid minifier mangling by @keithamus in #224
- Update target tests by @koddsson in #225
- Support dasherizing symbols by using their descriptions by @keithamus in #226
- add marks feature by @keithamus in #227
- Cherry-pick attr tests from
use-delegates
. by @koddsson in #228 - add createAbility by @keithamus in #229
- amend attr tests to use two word attrs by @keithamus in #230
- fix reference to lockfile by @koddsson in #231
- Fix up types in tests by @keithamus in #232
- rework tests for bind by @keithamus in #234
- improve documentation around method/getter/setter decorators by @keithamus in #235
- add initializer to marks by @keithamus in #236
- split out ability & controllable by @keithamus in #238
- Add providable ability by @keithamus in #241
- Fix typo in providable code sample by @steves in #242
- ability subclasses should retain original class name by @keithamus in #244
- add tag observer by @keithamus in #245
- Fix providable bugs by @keithamus in #243
- ensure marks default to configurable+enumerable by @keithamus in #246
- align jekyll versions to github pages by @keithamus in #237
- Upgrade actions runners by @keithamus in #247
- swap
@providable
decorator in docs by @keithamus in #248 - small doc tweaks by @keithamus in #249
- rename tag-observer exports by @keithamus in #253
- add createAbility docs by @keithamus in #254
- tweaks to create-ability docs by @keithamus in #256
- simplify abilities docs - link to expanded Create Ability docs by @keithamus in #258
- Bump jpeg-js from 0.4.3 to 0.4.4 by @dependabot in #264
- allow for customising prefix of @attr names by @keithamus in #265
New Contributors
Full Changelog: v1.4.2...v1.5.0