Skip to content

Release 9.8.0-alpha.2

Pre-release
Pre-release
Compare
Choose a tag to compare
@thet thet released this 07 Dec 00:56
· 558 commits to master since this release

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

Features

  • Build: Include the build in the npm package. (544b589)The compiled build is now included in npm packages by including the dist
    directory in .npmignore. To not increase the package size too much the
    JavaScript map files are not included. Now you can include Patternslib
    by using unpkg or jsDelivr like so:

https://unpkg.com/@patternslib/[email protected]/dist/bundle.min.js
or
https://cdn.jsdelivr.net/npm/@patternslib/[email protected]/dist/bundle.min.js

  • core dom: Add is_input method. (554e32e)Add "is_input" to test if a element is of input type.
    This is basically the same as $(":input") from Sizzle/jQuery.

  • pat-markdown: Soft-depend on pat-syntax-highlight. (cf0f6e3)Only highlight code blocks when the pattern is available.

Not hard-depending and importing pat-syntax-highlight fixes a problem
where only including pat-markup also included pat-syntax-highlight and
it's big highlight.js library.

This can reduce the generated bundle size significantly.

  • pat-tooltip: Soft-depend on pat-markdown. (1f81238)Only register the markdown data type handler when the pattern is available.

Not hard-depending and importing pat-markdown fixes a problem where only
including pat-tooltip also included pat-markdown and
pat-syntax-highlight with it's big highlight.js library.

This can reduce the generated bundle size significantly.

Bug Fixes

  • pat-bumper: Fix runtime error due to reference to wrong container. (893d392)

  • pat-collapsible: Class-based patterns cannot be jQuery plugins. (eedcc47)

  • pat-syntax-highlight: Do not load all languages. (c34d4a0)Change the import so that no language is included by default.
    Instead import the languages dynamically.

This reduces the download size when pat-syntaax-highlight is used
significantly.

  • pat-syntax-highlight: Fix language registration. (19bbb53)Fix a typo where all languages were registered as "javascript".

Maintenance

  • Add deprecation note for public_path. (f6d8124)

  • Build: Remove the IE11 polyfills-loader. (6eaddec)Clear out the polyfills-loader script but keep the module for backwards
    compatibility. No IE11 compatibility polyfills are included anymore as
    support for IE11 has recently really and finally dropped. The
    polyfills-loader.js file is still shipped but empty for compatibility
    with projects including the polyfills loader.

  • Build: Remove unused prismljs and google-code-prettify modules. (ed808e5)

  • Build: Update browserslist setting. (a29b9e8)Explicitly remove ie11 from browserslist.
    It wasn't used due to the "not dead" setting anyways.

  • Build: Upgrade @patternslib/dev. (ed8d13a)

  • Build: Upgrade pat-tiptap to 4.7.0. (ad0be10)

  • core basepattern: Avoid code linting problem. (d2836bd)Avoid code linting problem and make clear the init method is/can be
    asynchronous.

  • pat-markdown: Improve registering the markdown handler for pat-inject. (3f17e99)Wait a tick before registering the markdown type handler for pat-inject.

With that there is no need for pat-inject to be imported before
pat-markdown, as long as it is imported side by side with pat-markdown.

  • pat-markdown: Switch to class based pattern. (c6dc8b0)

  • pat-stacks: The trigger should be a static property. (4f0bb0f)

  • pat-syntax-highlight: The trigger should be a static property. (e341681)

  • pat-tooltip: Switch to class based pattern. (4fdb12a)