Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create Release #25

Merged
merged 1 commit into from
Nov 12, 2023
Merged

Create Release #25

merged 1 commit into from
Nov 12, 2023

Conversation

github-actions[bot]
Copy link
Contributor

@github-actions github-actions bot commented Oct 9, 2023

This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.

Releases

@sv443-network/userutils@3.0.0

Major Changes

  • 1859022: onSelector() has been turned into the SelectorObserver class to reduce the performance impact on larger sites:

    • its instances can be scoped to any element lower in the DOM tree, unlike before where it was always observing the entire body with all its children
    • separate instances can be disabled and reenabled individually on demand
    • separate instances can have different MutationObserver options set to further reduce performance impact
    • the separation into instances allows for a new "chaining" paradigm where selector listeners are only added and checked for once they are actually needed (see examples in the documentation)
    • when using chaining, separate instances can be created and have listeners added to them before their base element is available in the DOM tree
    • every listener can have a set debounce time, so that it doesn't get called too often (works the same as the debounce() function, but is disabled by default)
    • there are now multiple methods to get and delete specific listeners

    The SelectorObserver.addListener() method is backwards compatible with the old onSelector() function, so you can just add the class instance in front (for full backwards compat use document.body for the baseElement parameter of the constructor), then change the old function's name and it should work as before.
    For more info and examples, please view the SelectorObserver documentation

Minor Changes

  • 0db73b5: Removed the limiter (DynamicsCompressorNode) from amplifyMedia() for clear and undistorted audio.

    Notable changes:

    • The property source has been renamed to sourceNode to fit the naming of the gainNode property
    • A boolean property enabled has been added to check if the amplification is enabled or not
    • The parameter initialMultiplier has been renamed to initialGain to reduce confusion (it is not a multiplier strictly speaking)
  • 736784f: Added function randomId() to randomly generate cryptographically strong hexadecimal IDs

  • 563e515: Added utility type NonEmptyArray for typing an array with at least 1 item

Patch Changes

  • a123da6: Added @linkcode references to the JSDoc in-IDE documentation

@github-actions github-actions bot force-pushed the changeset-release/main branch 11 times, most recently from 49259c1 to e6ccb59 Compare October 17, 2023 15:34
@github-actions github-actions bot force-pushed the changeset-release/main branch from e6ccb59 to 411be14 Compare October 30, 2023 07:12
@Sv443 Sv443 mentioned this pull request Nov 5, 2023
23 tasks
@github-actions github-actions bot force-pushed the changeset-release/main branch 13 times, most recently from 7d39277 to 2527652 Compare November 9, 2023 20:19
@github-actions github-actions bot force-pushed the changeset-release/main branch from 2527652 to 2dd2a56 Compare November 12, 2023 21:52
@github-actions github-actions bot force-pushed the changeset-release/main branch from 2dd2a56 to 38002d7 Compare November 12, 2023 23:10
@Sv443 Sv443 merged commit 375e8a1 into main Nov 12, 2023
@Sv443 Sv443 deleted the changeset-release/main branch November 12, 2023 23:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant