Skip to content

Releases: studiometa/js-toolkit

v2.0.0-beta.5

13 Dec 16:43
2.0.0-beta.5
d6ce051
Compare
Choose a tag to compare
v2.0.0-beta.5 Pre-release
Pre-release

Fixed

  • Fix the scrollToutility calculations (8c03043)

Changed

  • Update NPM dependencies (#171)

v2.0.0-beta.4

23 Nov 10:11
2.0.0-beta.4
867bbff
Compare
Choose a tag to compare
v2.0.0-beta.4 Pre-release
Pre-release

Fixed

  • Bump version number in package.json files (b25cd3f)

v2.0.0-beta.3

23 Nov 10:21
2.0.0-beta.3
76e66f9
Compare
Choose a tag to compare
v2.0.0-beta.3 Pre-release
Pre-release

Fixed

  • Fix changelog generation in release action (8226d9a)

Changed

  • Improve GitHub actions performances (746c4d4)

v2.0.0-beta.2

23 Nov 08:11
2.0.0-beta.2
b74b80c
Compare
Choose a tag to compare
v2.0.0-beta.2 Pre-release
Pre-release

Fixed

v2.0.0-beta.1

22 Nov 19:10
2.0.0-beta.1
2b043fb
Compare
Choose a tag to compare
v2.0.0-beta.1 Pre-release
Pre-release

Added

  • Doc: Add a migration guide from v1 to v2 (#164)

Fixed

  • Doc: Fix a broken link (#163)

v2.0.0-beta.0

16 Nov 15:27
2.0.0-beta.0
494c4d5
Compare
Choose a tag to compare
v2.0.0-beta.0 Pre-release
Pre-release

Changed

  • Breaking: Refs are searched from the ones defined in the config only
<div data-component="Foo">
  <div data-ref="defined"></div>
  <div data-ref="undefined"></div>
</div>

<script>
  class Foo extends Base {
    static config = {
      name: 'Foo',
      refs: ['defined'],
    };

    mounted() {
      console.log(this.$refs); // Before: { defined: HTMLElement, undefined: HTMLElement }
      console.log(this.$refs); // After: { defined: HTMLElement }
    }
  }
</script>
  • Breaking: Refs are no longer resolved to the element's attached Base instance if it exists
<div data-component="Foo">
  <div data-ref="bar" data-component="Bar"></div>
</div>

<script>
  class Bar extends Base {
    static config = { name: 'Bar' };
  }

  class Foo extends Base {
    static config = { 
      name: 'Foo',
      refs: ['bar'],
      components: { Bar },
    }

    mounted() {
      console.log(this.$refs); // Before: { bar: Bar }
      console.log(this.$refs); // After: { bar: HTMLElement }
    }
  }
</script>
  • Breaking: Refs are only resolved when the component is mounted (#137)
  • Breaking: Children components are only resolved when the component is mounted (#137)
  • Improve typings (2642ab5, #137)
  • Improve Accordion component tests (08bc1f2, #137)
  • Breaking: remove the autobind of all methods (21d24e3, #137)
  • Breaking: change build target to browsers supporting ESM (359cd84, #137)
  • Breaking: Replace default export with named export (3a0a22c, #137)
  • Breaking: Refactor OptionsManager to not update the DOM when setting Array or Object options (56ffe0b, #137)
  • Improve withBreakpointManager decorator (633d2c5, #137)
  • Refactor EventsManager to use EventListener objects (8c0644c, #137)
  • Refactor the debug method (977b5d3, #137)
  • Replace private properties by public properties prefixed by __ (5d0d064, #137)
  • Breaking: Refactor the config and options management (7556c2f, #137)
  • Breaking: Refactor the events' management (b37bc9c, #137)
  • Refactor the Service abstract class (b0eeb1e, #137)
  • Refactor child components management (05f9040, #137)
  • Breaking: Flatten the exports of the @studiometa/js-toolkit/utils path (#154)
  • Breaking: Rename the push and replace function from the history utils to historyPush and historyReplace (#154)

Added

  • Add a memoize(fn) utility (cb6848d, db6bb74, b62deb8, #137)
  • Add helpers exports to the main entry point (0e7407b, #137)
  • Add support for negated boolean options with data-option-no-... (#143)
  • Add a withVue2 decorator (#148)
  • Add a withScrolledInView decorator (#156)
  • Add a scrollTo utility (#135)

Deleted

  • Breaking: remove legacy helpers (bbbd9cc, #137)
  • Breaking: Remove the $once() method (aee1acc, #137)
  • Breaking: Remove the full build (13af657, #137)
  • Breaking: Delete an obsolete folder level (3aeebb8, #137)
  • Breaking: Remove the legacy options management (d9806a1, #137)
  • Remove an obsolete import/export (02a1979, #137)
  • Breaking: Remove refs resolution to component instance (131c20d, #137)

Fixed

  • Fix a bug where the withBreakpointManager was mixing its child instances (8875db6, #137)
  • Fix a bug where the resize event was triggered by an infinite loop (9006fc2, #137)

New Contributors

Full Changelog: 1.7.3...2.0.0-beta.0

v1.7.3

01 Oct 09:35
1.7.3
e5d5fb3
Compare
Choose a tag to compare

Fixed

  • Fix the version published on NPM with the "latest" tag

v1.7.2

27 Sep 17:26
1.7.2
cef3708
Compare
Choose a tag to compare

Fixed

  • Fix usage of objectToURLSearchParams server side (91f78a8)

Changed

  • Improve nextFrame tests (9ecf91b)

v1.7.1

07 Sep 14:35
1.7.1
17ef282
Compare
Choose a tag to compare

Fixed

v1.7.0

03 Sep 12:44
1.7.0
01efc07
Compare
Choose a tag to compare

Added

  • Add support for negated boolean option with true as default value with the data-option-no-<boolean-option-name> attribute pattern (#143)