Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@patternslib/patternslib

Package Overview
Dependencies
Maintainers
7
Versions
164
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.8.1-alpha.0

Diff

Changelog

Source

9.8.1-alpha.0 (2023-01-25)

Features

  • pat checklist: Toggle checkbox to toggle checked boxes true/false. (2a435fa)

Maintenance

  • Build: Upgrade dependencies. (7e7cc20)

  • pat-checklist: Document the available options. (625f7e5)

thet
published 9.8.0 •

Changelog

Source

9.8.0 (2022-12-23)

Maintenance

  • Build: Upgrade dependencies. (befb845)
thet
published 9.8.0-beta.6 •

Changelog

Source

9.8.0-beta.6 (2022-12-22)

Bug Fixes

  • pat-sortable: Initialize already existing sortable handles. (b3f5077)

    Also allow the sortable itself to be the handle.

thet
published 9.8.0-beta.5 •

Changelog

Source

9.8.0-beta.5 (2022-12-22)

Features

  • pat-sortable: Support initialization after injection. (afaf388)
thet
published 9.8.0-beta.4 •

Changelog

Source

9.8.0-beta.4 (2022-12-22)

Bug Fixes

  • pat-sortable: Show dragable item image while dragging. (1c9eb80)

  • pat-sortable: sortable-handle needs to be injected at last element of the sortable item. (db02541)

thet
published 9.8.0-beta.3 •

Changelog

Source

9.8.0-beta.3 (2022-12-22)

Features

  • core events: Add dragstart and dragend event factories. (73d7fc7)

Bug Fixes

  • Build: Load modernizr early and non-asynchronously. (8bc9b66)

    Include the modernizr bundle by injecting a script tag. This ensures modernizr is loaded synchronously and executing early and sets it's feature detection classes before the layout is done by the browser.

    This reverts the breaking change from the previous Patternslib 9.8.0-beta.2 release. The separate modernizr.min.js build file is still kept, but modernizr is included by the main Patternslib bundle. There is no need to add another script tag to include modernizr.

    You can disable loading of modernizr by setting the following before the Patternslib bundle.min.js is included:

    <script>window.__patternslib_disable_modernizr = true;</script>

    Also, the "js" class is set on the HTML root tag when a "no-js" class was present regardless of the "__patternslib_disable_modernizr" setting.

    Since Patternslib 9.0.0-alpha.0 where we introduced webpack module federation for our bundles, Modernizr is loaded asynchronously and applying it's CSS classes a tick too late. For example, the change from the "no-js" to the "js" class was done while the tiles have already been drawn and visible on the screen, resulting in screen flickering. There are a number of projects which depend on Modernizr being applied early.

  • pat-sortable: Initialize sorting on cloned elements. (d7abbc0)

    Fix sorting behavior on cloned elements, which broke on Patternslib 9.8.0-alpha.0.

Maintenance

  • Build: Do not include the example minimalpattern in the build. (9712019)

  • Build: Remove now unused globals module. (8e05515)

    jQuery is now imported and set earlier.

  • Docs: Update some documentation. (4ccf1bd)

  • pat-sortable: Modernize tests. (bf25dc4)

thet
published 9.8.0-beta.2 •

Changelog

Source

9.8.0-beta.2 (2022-12-19)

Bug Fixes

  • Build: Also include necessary _sass directory in the npm package. (70da6b1)

  • Build: Also include the webpack configs in the npm package. (f6bf2bf)

    Previous packages depending on @patternslib/patternslib also extended Patternslib' webpack configs. Include these configs for backwards compatibility.

  • pat-bumper: Remove style import from the patterns SCSS file. (094010b)

Breaking Changes

  • Build: Separate modernizr into a own bundle. (875b041)

    Since Patternslib 9.0.0-alpha.0 where we introduced webpack module federation for our bundles, Modernizr is loaded asynchronously and applying it's CSS classes a tick too late. For example, the change from the no-js to the js class was done while the tiles have already been drawn and visible on the screen, resulting in screen flickering. There are a number of projects which depend on Modernizr being applied early.

    This change now fixes the problem by separating the Modernizr build from the Patternslib bundle.

    If you depend on Modernzir, please include the new modernizr.min.js bundle in a script tag, preferably before the Patternslib bundle bundle.min.js.

    The global switch "window.__patternslib_disable_modernizr" is also removed, as it got useless.

Maintenance

  • Add modernizr.min.js bundle to main index.js demo file for demonstration. (96a7ed2)

  • Build: Directly build the modernizr bundle. (ee2acdc)

    Do not use an webpack entry to build the modernizr bundle with an webpack runtime overhead. Instead, build it directly but abusing the webpack CopyPlugin transform mechanism. We could also build the modernizr bundle from the Makefile but that wouldn't provide the file when watching or when running webpack-dev-server.

  • Build: Optimize modernizr configuration. (e1fd8de)

    Remove unnecessary tests in .modernizrrc.js and slim down the build size.

  • Upgrade dependencies. Also Upgrade to jQuery 3.6.2. (071e084)

thet
published 9.8.0-beta.1 •

Changelog

Source

9.8.0-beta.1 (2022-12-11)

Features

  • core basepattern: Add a destroy method. (f9ca65a)

    The destroy method removes the pattern instance from the element. This is necessary to re-initialize the same pattern on the same element.

  • core events: Support await_pattern_init with pattern double registration attempt. (e8640a9)

    When a pattern is tried to be initialized on the same element twice, throw an event and use that event in await_pattern_init to reject the promise. When using await_pattern_init you might want to try/catch the block to handle any possible double-registration errors.

  • core events: Support once-events in add_event_listener. (fc0e333)

    Add support for once-events in add_event_listener and unregister them when called from the event_listener_map.

Bug Fixes

  • pat-tooltip: Cleanup tooltip after it's destroyed. (ac27e20)

    When the tooltip is destroyed, also call the tooltip's BasePattern destroy method to clean up and release the tooltip from the element. After that it can be instantiated on the same element again. This change was necessary after the recent BasePattern change.

  • pat-validation: Make sure to cancel submit events on invalid forms. (e218af2)

    Make sure that submit events are canceled on invalid forms by using a capturing event handler which is invoked before non-capturing events.

    The previous commit exposed a problem with the submit event handling, where the then non-capturing submit event handler was registered later than the one from pat-inject because pat-validation's async init method where pat-inject's init method is yet non-async. That happened even the pat-validation's pattern initialization is enforced to run first due to registration reordering in the Pattern registry. Now with the capturing event handler this problem is fixed.

Maintenance

  • core basepattern: Use identity instead equality comaprison instead in tests for stricter testing. (ce962d2)

  • Exclude more files from npm packages. (c312b96)

  • Only include dist/ and src/ directories in the npm package. (babc4b6)

  • pat-validation: Change to class based pattern. (11543ea)

    This is needed for better customization in deriving projects.

  • Upgrade dependencies. (399105f)

  • Use browserslist defaults. (8867fd8)

thet
published 9.8.0-beta.0 •

Changelog

Source

9.8.0-beta.0 (2022-12-07)

Bug Fixes

  • Build: Fix tiptap error. (6e67655)

    Fix tiptap "Unhandled Promise Rejection" error due to multiple versions of a tiptap dependency installed. Removing yarn.lock in re-installing solves this.

thet
published 9.8.0-alpha.3 •

Changelog

Source

9.8.0-alpha.3 (2022-12-07)

Bug Fixes

  • pat-clone-code: Fix a Content-Security-Policy problem. (e38f987)

    Do not use dom.template for the wrapper template to not get caught by the browser's Content-Security-Policy. If set, a unsafe-eval error would be thrown and the pattern refuse to run.

Breaking Changes

  • pat-validation: Remove error-template option. (78c544b)

    This is a breaking change.

    Due to a Content-Security-Policy problem with dom.template when unsafe-eval is not set - which you wouldn't set if possible - we had to remove the error-template parameter. Instead the template is now defined in a error_template method on the Patten class and can be customized by subclassing and extending the pat-validation pattern or by patching it via Pattern.prototype.

Maintenance

  • Build: Upgrade dependencies. (fed2716)

  • core dom template: Warn about using dom.template due to a CSR probmel. (989fa9f)

    Warn about a problem of dom.template with a Content-Security-Policy set. If a CSR rule is set then dom.template would break the code unless 'unsafe-eval' is allowed (which you wouldn't normally allow when using a CSR). Therefore it is not recommended to use this template function.

  • pat-clone-code: Better example, correct documentation. (028ba07)

  • Remove IE related code paths. (9de0d95)

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