Skip to content

Latest commit

 

History

History
182 lines (93 loc) · 9.48 KB

CHANGELOG.md

File metadata and controls

182 lines (93 loc) · 9.48 KB

Changelog

5.0.2

Patch Changes

5.0.1

Patch Changes

5.0.0

Major Changes

  • #270 a49ca6c Thanks @nicholascostadev! - [BREAKING] using Map for items instead of POJO for better performance and insertion order preservation (#269)

4.0.0

Major Changes

3.0.3

Patch Changes

3.0.2

Patch Changes

  • #160 2ab1c3e Thanks @vnphanquang! - Logic correction to correctly cache & reset operations when toc is used in layout and across page navigation

3.0.1

Patch Changes

  • b2e3f02 Thanks @vnphanquang! - support reactive attribute update for elements using toclink. This fixes issue where toclink is reused (in layouts, for example) across page transitions.

3.0.0

Major Changes

2.1.3

Patch Changes

  • #135 a86347a Thanks @vnphanquang! - execute toclink operation on mount, and remove rerun on update, resolves #133

2.1.2

Patch Changes

2.1.1

Patch Changes

2.1.0

Minor Changes

  • 8d02c83 Thanks @vnphanquang! - add idiomatic support with complementary action toclink for anchor tags that link to toc items (typically those in a table of contents)

Patch Changes

  • 8d02c83 Thanks @vnphanquang! - undefined anchor & observe should correctly take default options

  • 80730b4 Thanks @vnphanquang! - refator to toggleAttribute in favor of setAttribute for markers

2.0.4

Patch Changes

  • 07ccc5b Thanks @vnphanquang! - refactor for better logics organization and only export necessary things at index

2.0.3

Patch Changes

2.0.2

Patch Changes

  • d04d44e Thanks @vnphanquang! - deprecate internal svelte store (for tracking active item within action operations, no effect on the user-provided store parameter) in favor of simple callback for smaller bundle size

  • a8cd5c2 Thanks @vnphanquang! - add docs about lack of dynamic update support

  • a8cd5c2 Thanks @vnphanquang! - improve perf by making observe operation async (prioritize tocinit for initial rendering)

  • 60c2029 Thanks @vnphanquang! - use as few IntersectionObserver as possible, only create for each new threshold, otherwise reuse

  • 6058f0c Thanks @vnphanquang! - add additional export entry internal for use within docs

2.0.1

Patch Changes

2.0.0

Major Changes

  • #93 4d379db Thanks @vnphanquang! - [BREAKING] complete overhaul, drier code with scroll-margin-top and more customizable anchor options

Patch Changes

1.0.8

Patch Changes

1.0.7

Patch Changes

1.0.6

Patch Changes

1.0.5

Patch Changes

  • feaf0be Thanks @vnphanquang! - fix svelte kit migration build step, should use separate svelte-package

1.0.4

Patch Changes

1.0.3

Patch Changes

1.0.2

Patch Changes

1.0.1

Patch Changes

  • 6565e46 Thanks @vnphanquang! - .

    • Fixed broken imports from Toc.svelte
    • Better caching: only return cache when parameters are the same
    • Temporarily fix the onMount issue where action doesn't run if page is loaded / navigated to from client side
    • Added playground page for svelte-put/toc

1.0.0

Major Changes

  • b9c2d52 Thanks @vnphanquang! - Introduction of use:toc and <Toc> component for building table of contents