New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@patternslib/patternslib

Package Overview
Dependencies
Maintainers
7
Versions
169
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@patternslib/patternslib - npm Package Versions

1
17

9.3.1

Diff

Changelog

Source

9.3.1 (2022-09-21)

Maintenance

  • Build: Upgrade pat-upload to 3.1.1 to fix the previous pat-upload brown bag release. (030b801)pat-upload 3.1.0 did not include the advertised changes and was basically the same as 3.0.0.
thet
published 9.3.0 •

Changelog

Source

9.3.0 (2022-09-20)

Features

  • pat navigation: Mark the navigation items after injection. (ec2a795)After a pat-inject has updated the navigation, re-mark all navigation items. This is an alternative and approach to the previous mutation observer based one.

Maintenance

  • Build: Upgrade dependencies. (60b4e2e)
thet
published 9.3.0-beta.0 •

Changelog

Source

9.3.0-beta.0 (2022-09-16)

Maintenance

  • core base: Remove console.log statement from tests. (09d533e)

Breaking Changes

  • pat navigation: Improve performance by removing the unnecessary mutation observer. (7c28913)Since we're almost always using pat-inject for replacing or adding DOM nodes and we already have support for pat-inject here, the mutation observer is not necessary. Removing it improves the performance in situations where the navigation structure is updated - for example off-canvas navigation updates with pat-tabs would invoke many mutation observer callback hits. The previous performance improvement solved the performance penalty by deferring the callback for 10ms, but this is taking that further by avoiding it at all.
thet
published 9.2.1 •

Changelog

Source

9.2.1 (2022-09-16)

Bug Fixes

  • pat navigation: Do not break when no item wrapper is found. (6c84a41)

  • pat navigation: Improve the performance when the navigation elements change. (a6ec32b)Debounce the mutation observer callback which initialized the markings for 100ms for better performance.

  • pat navigation: Initialize the click handler on the element directly. (0b099cc)This way it needs to be initialized only once, even if the subtree changes. Remove the init_listeners from the mutation observer for better performance.

  • pat navigation: Only search within the current element. (417085e)

  • pat navigation: Remove mockup-related checking of input fields. (1e5afe7)

thet
published 9.2.0 •

Changelog

Source

9.2.0 (2022-09-15)

Features

  • pat close panel: Support for closing dialog panels. (7593048)

  • pat navigation: Add URL-based navigation markers. (9a0f7a3)That feature was also present in the old implementation but is now improved.

  • pat navigation: Always set in-path classes. (16bc8a2)When doing URL based checkings do always set the in-path classes for an active submenu item, even if it does not match the URL path hierachy.

  • pat navigation: Support click-only markings. (904e54f)Mark the navigation items also on clicks on anchors without pat-inject.

  • pat navigation: When a navigation wrapper is in-path, also mark the corresponding anchor as in-path. (e9da003)

Bug Fixes

  • Build: Register jQuery globally. (e72f41a)Since the module federation support jQuery was registered globally too late for some scripts. Now jQuery is registered as soon as the index.js is loaded. This allows for following scripts to use jQuery.

  • core base: Do not break when initialized with no element. (cd16107)

Breaking Changes

  • pat navigation: Set explicit pattern trigger. (968edca)Do only trigger the pattern on the .pat-navigation class and remove the trigger for .navigation classes and <nav> elements.

Maintenance

  • core dom: Code optimization for dom.find_parents. (de1fb71)

  • core dom: Update documentation. (4ac25cc)

  • HTMLDialogElement support not in @patternslib/dev 2.7.0. (d2c279f)

  • Modernize header markup in demo files. (2f366e9)

  • pat inject: Move core.utils.rebaseURL to inject patterns. (144240d)core.utils.rebaseURL was only used by the inject pattern and is in this form not useful for broader use. If you need to rebase an relative or absolute URL against a base url, use: new URL(url, base_url)

  • pat inject: Specify allowed values for the history parameter. (e36c58c)

  • pat navigation: Modernize code. (f5269de)

  • pat navigation: Refactor implementation for more stability. (458e76b)

  • Upgrade dependencies. (806fc24)

thet
published 9.1.1 •

Changelog

Source

9.1.1 (2022-09-08)

Bug Fixes

  • pat display time: Fix relative time for timezone corner cases. (3c62c65)For date-only from-now, just use Intl.RelativeTimeFormat to avoid any timezone calculation mistakes. This prevents a case where in days in the future or past were shown as 9 days due to timezone differences in some circumstances.

Maintenance

  • pat display time: Extend the demo. (2bd1ff6)

  • pat inject: Correct docs that the history parameter does not have record set as default. (7f06eda)

  • pat inject: Re-organize the demos. (3d3e8c3)- Create dedicated demo folder and move demo files in there.

  • Remove inject-history folder and move demo into inject.
thet
published 9.1.0 •

Changelog

Source

9.1.0 (2022-09-06)

Bug Fixes

  • pat sortable: Fix sorting functionality when sort item has any other class than .sortable. (75815a6)

Maintenance

  • pat display time: Fix tests and demo which failed due to timezone offsets around midnight. (a5d0695)
thet
published 9.1.0-beta.4 •

Changelog

Source

9.1.0-beta.4 (2022-09-05)

Bug Fixes

  • Build: Resolve to jquery 3.6.1 to not include mutliple jquery versions. (e1c7d01)
thet
published 9.1.0-beta.3 •

Changelog

Source

9.1.0-beta.3 (2022-09-05)

Features

  • pat sortable: Trigger pat-update after sorting changes. (3bb5513)Other patterns can react on that for example submitting the form with pat-auto-submit.

Bug Fixes

  • pat auto submit: Support pat-clone and pat-sortable. (4ec72ef)When pat-clone adds an element, initialize that element to listen for changes. When pat-clone removes an element or pat-sortable changes the order, submit the form.

Maintenance

  • Build: Upgrade dependencies. (e5e2c7b)
thet
published 9.1.0-beta.2 •

Changelog

Source

9.1.0-beta.2 (2022-08-23)

Maintenance

  • Upgrade pat-tiptap to 4.5.0. (423dfc7)
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc