Skip to content

Releases: github/catalyst

v1.2.1

11 Feb 12:48
Compare
Choose a tag to compare

What's Changed

Full Changelog: v1.2.0...v1.2.1

v1.2.0

01 Feb 11:25
Compare
Choose a tag to compare

This release brings a new feature: data-action method names are optional, and omitting it will default to the handleEvent method. For more see https://github.github.io/catalyst/guide/actions/. We've updated some documentation, and some developer dependencies.

What's Changed

aa425d6 Merge pull request #164 from github/bind-handleevent-default
36946da Merge pull request #177 from github/dependabot/npm_and_yarn/y18n-4.0.3
7f608c0 chore(deps): bump y18n from 4.0.0 to 4.0.3
47a3390 Merge pull request #175 from github/dependabot/npm_and_yarn/hosted-git-info-2.8.9
5da9d06 Merge branch 'main' into dependabot/npm_and_yarn/hosted-git-info-2.8.9
074b237 Merge pull request #176 from github/dependabot/npm_and_yarn/underscore-1.13.2
a3c6c8d chore(deps): bump underscore from 1.12.0 to 1.13.2
88d6b94 chore(deps): bump hosted-git-info from 2.8.8 to 2.8.9
5862b88 Merge pull request #173 from github/dependabot/npm_and_yarn/glob-parent-5.1.2
4c85b11 Merge branch 'main' into dependabot/npm_and_yarn/glob-parent-5.1.2
bd74001 Merge pull request #174 from github/dependabot/npm_and_yarn/normalize-url-4.5.1
8ebbc7f chore(deps): bump glob-parent from 5.1.1 to 5.1.2
9211261 Merge branch 'main' into dependabot/npm_and_yarn/normalize-url-4.5.1
c5bde99 Merge pull request #172 from github/dependabot/npm_and_yarn/path-parse-1.0.7
1453238 chore(deps): bump normalize-url from 4.5.0 to 4.5.1
1423fcb Merge branch 'main' into dependabot/npm_and_yarn/path-parse-1.0.7
e8e2c20 Merge pull request #169 from github/dependabot/npm_and_yarn/engine.io-4.1.2
9ae9c59 chore(deps): bump path-parse from 1.0.6 to 1.0.7
db0f232 Merge branch 'main' into dependabot/npm_and_yarn/engine.io-4.1.2
efe15f1 Merge pull request #171 from github/dependabot/npm_and_yarn/lodash-4.17.21
e727c76 Merge branch 'main' into dependabot/npm_and_yarn/engine.io-4.1.2
7dbc959 chore(deps): bump lodash from 4.17.20 to 4.17.21
c9e2bf3 Merge pull request #167 from github/dependabot/npm_and_yarn/log4js-6.4.1
7530fcc chore(deps): bump log4js from 6.3.0 to 6.4.1

New Contributors

v1.1.4...v1.2.0

v1.1.4

05 Aug 10:36
v1.1.4
e497bfd
Compare
Choose a tag to compare

This small release brings you fixes to documentation, our build system and some developer dependency updates. Additionally, we've made sure to export functions needed for non-decorator users and inherited attrs are defined.

What's Changed

  • docs: Demonstrate that action case is preserved by @smockle in #137
  • chore(deps): bump rexml from 3.2.4 to 3.2.5 in /docs by @dependabot in #138
  • Fix typo window.customElements.register → define by @carlmjohnson in #144
  • Fix: code of <pre> element is displayed protruding. by @yamanoku in #140
  • Fix a typo in introduction.md by @kt3k in #154
  • Update reference to lhci CLI & speed up lighthouse runs by @koddsson in #150
  • Remove reference to invalid "hover" action in Documentation by @dvalinotti in #151
  • update link to more accurately represent the list heading that it goes to by @rpivo in #155
  • chore(deps): bump addressable from 2.7.0 to 2.8.0 in /docs by @dependabot in #158
  • export functions needed for non-Decorator users. fixes #152 by @jauntywunderkind in #153
  • Check for inherited attrs in initializeAttrs by @alexpdraper in #156

New Contributors

v1.1.3...v1.1.4

v1.1.3

30 Mar 17:37
Compare
Choose a tag to compare

This release fixes a regression, which was introduced between 1.0.2, which changed the call order of bind and connectedCallback so that shadowRoots were bound. In fixing this bug we introduced a new one where sometimes an element which dispatched an event inside it's connectedCallback could not be observed by other elements, in their connectedCallbacks. This release fixes the regression, but maintains the fix to ensure shadowRoots are correctly bound. In other words dispatchEvent and attachShadow inside a connectedCallback should do the expected thing with data-action.

v1.1.2

26 Feb 14:39
Compare
Choose a tag to compare

This release changes the import statements in the compiled code to include an extension, which allows this library to be used without module bundlers, or with bundlers which strictly follow ESM module identifier rules, for example Deno or WebPack v5. Fixes #119. Thanks goes out to @heynan0 and @vmsp!

v1.1.1

08 Feb 16:07
Compare
Choose a tag to compare

This release changes the @target/@targets decorators such that they work using Babel's legacy decorators transform, without TypeScript. TypeScript is still encouraged to be used with Catalyst, but this makes it possible to use Babel instead.

If you're not using Babel, or are transforming with TypeScript ahead of using Babel then this release won't make a difference to your usage.

v1.1.0

25 Jan 16:24
Compare
Choose a tag to compare

This release predominantly adds the new @attr decorator. See the full @attr guide on the website for more information. #103.

This release also optimizes memory usage for bind. There is no change to the APIs here, but it should use less memory per-controller. See #106 for more details.

v1.0.2

24 Nov 15:27
Compare
Choose a tag to compare

This release fixes a bug where shadowRoots in the connectedCallback were not automatically scanned for data-action elements. Now bind() runs after connectedCallback, meaning the shadowRoot can be created in connectedCallback and will be scanned.

v1.0.1

24 Nov 14:43
08ea837
Compare
Choose a tag to compare

This release adds the following:

  • Publish to npm as well as GitHub Packages (#84).
  • Update docs to link to ShadowDom docs (#79).

v1.0.0

06 Nov 16:21
Compare
Choose a tag to compare

This release is marked as v1.0 as we consider Catalyst stable for production! It has been in GitHub production for around 8 months now and we consider it to be battle tested enough to cut the first Stable Release!

This release has a few new features. Chiefly, support for ShadowDOM!

  • listenForBind is now automatically called on the ownerDocuments of connected elements. No need to call it manually. (#75)
  • data-target[s] and data-action now work inside the ShadowDOM, exactly as you'd expect them to. ShadowDOM targets take precedence over regular DOM. (#73)
  • If an element has a single template[data-shadowroot] element, it will automatically clone it and attach it as a ShadowDOM. (#74)
  • A new guide section in the docs all about Rendering subtrees, using the ShadowDOM (https://github.github.io/catalyst/guide/rendering/)

Plus a few minor docs improvements:

  • Docs now build on a separate branch, meaning less chance of going stale if there is a build issue (#77).
  • Minor typo fixes (#72).

Future releases will adhere to SemVer 2.0; now that Catalyst is 1.0 any changes that break existing API will be released as new major versions.