Releases: Patternslib/dev
Release 3.1.2
Release 3.1.1
Release 3.1.0
3.1.0 (2022-11-15)
Features
- Allow to add the compiled bundles to npm packages. (84bdefd)Creating a npm release with the Makefile prepares now a bundle build
with the correct package version added as a comment to the bundle files.
The compiled bundle can then be uploaded to npm if it is part of the git
repository (included by .gitignore) or part of the npm release
(preferred, included by .npmignore).
Adding the compiled bundle to npm allows to directly include it via a
CDN like so:
https://cdn.jsdelivr.net/npm/@patternslib/[email protected]/dist/bundle.min.js
or
https://unpkg.com/@patternslib/[email protected]/dist/bundle.min.js
We have to compile the bundle with the correct version BEFORE the npm
package is created with release-it. The next version is queried using
the LEVEL parameter (set by the different release targets) and the
"semver" tool.
Maintenance
- Upgrade dependencies. (e687405)
Release 3.0.0
3.0.0 (2022-10-15)
Features
- Build: Add Module Federation configuration for webpack. (b84c2fb)
Breaking Changes
-
Build: Remove the showdown-prettify loading config and the now unused imports-loader. (27ba90f)
-
Tests: Remove dependency on jQuery. (259d801)Use the following in your test setup to provide jQuery to external
libraries if they depend on a global jQuery object or extend from the
jest config from @patternslib/patternslib:
import jquery from "jquery";
global.$ = global.jQuery = jquery;
- Tests: Remove the Dependency on @patternslib/patternslib. (afe8fee)If you need Patternslib specific test setup, extend from Patternslib.
Maintenance
- Upgrade dependencies. (f868454)
Release 2.7.2
Release 2.7.1
Release 2.7.0
Release 2.6.0
Release 2.5.0
2.5.0 (2022-08-19)
Features
- Makefile: Add empty bundle-pre target for customization. (0290e61)The empty bundle-pre target is run before the bundle target and can be
overwritten in extending projects to add some tasks before bundle generation.
This can be used to unlink and reinstall any dependencies before bundle generation.
Maintenance
- Upgrade dependencies. (64094da)
Release 2.4.0
2.4.0 (2022-08-11)
Features
-
Webpack: Add bundle name and version to the banner. (1058b6d)For this, you have to pass your project's package.json as argument to the webpack config factory.
Both values - name and version - are taken from the package.json data. -
Webpack: Add config export with named parameters. (f7b2471)Add config export along with the default export to support named parameters via parameter destructuring.