diff --git a/CHANGELOG.md b/CHANGELOG.md index 963148d6..bacb01fe 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -24,6 +24,10 @@ DO NOT TOUCH. SAVE IT ON TOP. --> +## [3.0.0] - 2021-02-03 +### Breaking +- Requires `Node 12+` + ## [2.1.1] - 2020-10-17 ### Fixed - [#472](https://github.com/browserslist/browserslist-useragent-regexp/issues/472) diff --git a/README.md b/README.md index 00655722..d6c30b37 100644 --- a/README.md +++ b/README.md @@ -99,6 +99,8 @@ As was written in article ["Smart Bundling: Shipping legacy code to only legacy Development was inspired by [this proposal from Mathias Bynens](https://twitter.com/mathias/status/1105857829393653761). +How to make differential resource loading and other optimizations with `browserslist-useragent-regexp` you can read in article ["Speed up with Browserslist"](https://dev.to/dangreen/speed-up-with-browserslist-30lh). + [Demo](https://browserslist.github.io/browserslist-useragent-regexp/demo.html) ([sources](https://github.com/browserslist/browserslist-useragent-regexp/blob/7cf6afb7da2b6c77179abb8b8bd1bbcb61cf376a/docs/demo.html#L17-L29), [build script](https://github.com/browserslist/browserslist-useragent-regexp/blob/7cf6afb7da2b6c77179abb8b8bd1bbcb61cf376a/examples/buildDemo.js#L61-L74)). ## CLI @@ -123,11 +125,11 @@ yarn exec -- browserslist-useragent-regexp [query] [...options] Module exposes two main methods: -### [getUserAgentRegExps(options)](https://browserslist.github.io/browserslist-useragent-regexp/modules/_useragentregexp_useragentregexp_.html#getuseragentregexps) +### [getUserAgentRegExps(options)](https://browserslist.github.io/browserslist-useragent-regexp/modules/index.html#getuseragentregexps) Compile browserslist query to [RegExps for each browser](#regexp-info-object). -### [getUserAgentRegExp(options)](https://browserslist.github.io/browserslist-useragent-regexp/modules/_useragentregexp_useragentregexp_.html#getuseragentregexp) +### [getUserAgentRegExp(options)](https://browserslist.github.io/browserslist-useragent-regexp/modules/index.html#getuseragentregexp) Compile browserslist query to one RegExp. diff --git a/package.json b/package.json index 19f2d436..f657ffd7 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "browserslist-useragent-regexp", - "version": "2.1.1", + "version": "3.0.0", "description": "A utility to compile browserslist query to a RegExp to test browser useragent.", "author": "dangreen", "license": "MIT", @@ -35,14 +35,11 @@ "regexp" ], "dependencies": { - "@babel/runtime": "^7.12.5", "@types/node": "^14.14.22", "argue-cli": "^1.2.0", "browserslist": "^4.16.3", "chalk": "^4.0.0", - "core-js": "^3.8.3", "easy-table": "^1.1.1", - "regenerator-runtime": "^0.13.7", "useragent": "^2.3.0" }, "devDependencies": { diff --git a/yarn.lock b/yarn.lock index f96e898c..943597d6 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3095,7 +3095,7 @@ core-js-compat@^3.8.0: browserslist "^4.16.1" semver "7.0.0" -core-js@^3.2.1, core-js@^3.8.2, core-js@^3.8.3: +core-js@^3.2.1, core-js@^3.8.2: version "3.8.3" resolved "https://registry.yarnpkg.com/core-js/-/core-js-3.8.3.tgz#c21906e1f14f3689f93abcc6e26883550dd92dd0" integrity sha512-KPYXeVZYemC2TkNEkX/01I+7yd+nX3KddKwZ1Ww7SKWdI2wQprSgLmrTddT8nw92AjEklTsPBoSdQBhbI1bQ6Q== @@ -7908,7 +7908,7 @@ regenerate@^1.4.0: resolved "https://registry.yarnpkg.com/regenerate/-/regenerate-1.4.2.tgz#b9346d8827e8f5a32f7ba29637d398b69014848a" integrity sha512-zrceR/XhGYU/d/opr2EKO7aRHUeiBI8qjtfHqADTwZd6Szfy16la6kqD0MIUs5z5hx6AaKa+PixpPrR289+I0A== -regenerator-runtime@^0.13.4, regenerator-runtime@^0.13.7: +regenerator-runtime@^0.13.4: version "0.13.7" resolved "https://registry.yarnpkg.com/regenerator-runtime/-/regenerator-runtime-0.13.7.tgz#cac2dacc8a1ea675feaabaeb8ae833898ae46f55" integrity sha512-a54FxoJDIr27pgf7IgeQGxmqUNYrcV338lf/6gH456HZ/PhX+5BcwHXG9ajESmwe6WRO0tAzRUrRmNONWgkrew==