Skip to content

Commit

Permalink
v1.1.1 (#1541)
Browse files Browse the repository at this point in the history
  • Loading branch information
romainmenke authored May 7, 2023
1 parent 09e4288 commit 2f9516a
Show file tree
Hide file tree
Showing 11 changed files with 34 additions and 31 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@ run-tests-e2e: build-pages
watch-tests: install
(cd packages/core-web-tests && npm run watch)

version-minor: $(packages)
version-patch: $(packages)

$(packages): install
(cd $@ && npm version minor --no-git-tag-version)
(cd $@ && npm version patch --no-git-tag-version)

publish: install
(cd ./packages/core-web && npm publish)
Expand Down
26 changes: 13 additions & 13 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"prettier": {
"useTabs": true
},
"version": "1.1.0",
"version": "1.1.1",
"volta": {
"node": "18.10.0"
}
Expand Down
14 changes: 9 additions & 5 deletions packages/babel-plugin-core-web/lib/injector.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,15 +49,15 @@ class Injector {
}

inject(path, state) {
if (this.debug) {
logImportedPolyfills([...this.importSet]);
}

// Allow users to block polyfills.
for (const ignore of this.ignoreSet.values()) {
this.importSet.delete(ignore);
}

if (this.debug) {
logImportedPolyfills([...this.importSet], state);
}

// insert in reverse order
let all = [...this.importSet];

Expand Down Expand Up @@ -265,7 +265,7 @@ class Injector {

module.exports = Injector;

function logImportedPolyfills(list) {
function logImportedPolyfills(list, state) {
if (!list || !list.length) {
return;
}
Expand All @@ -279,5 +279,9 @@ function logImportedPolyfills(list) {
}
});

if (state?.file?.opts?.filename) {
console.log('@mrhenry/core-web - from: ' + state.file.opts.filename);
}

console.log(`@mrhenry/core-web - importing: ${Math.ceil(cost / 1000)}KB -`, list.sort().join(', '));
}
4 changes: 2 additions & 2 deletions packages/babel-plugin-core-web/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@mrhenry/babel-plugin-core-web",
"version": "1.1.0",
"version": "1.1.1",
"description": "browser feature polyfills as a babel plugin",
"main": "lib/index.js",
"author": "Simon Menke <[email protected]>",
Expand Down Expand Up @@ -33,7 +33,7 @@
"dependencies": {
"@babel/helper-module-imports": "^7.15.4",
"@babel/types": "^7.21.5",
"@mrhenry/core-web": "^1.1.0",
"@mrhenry/core-web": "^1.1.1",
"fast-deep-equal": "^3.1.3"
},
"bugs": {
Expand Down
2 changes: 1 addition & 1 deletion packages/core-web-example/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@mrhenry/core-web-example",
"version": "1.1.0",
"version": "1.1.1",
"private": true,
"scripts": {
"build": "babel src -d lib"
Expand Down
2 changes: 1 addition & 1 deletion packages/core-web-generator/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@mrhenry/core-web-generator",
"version": "1.1.0",
"version": "1.1.1",
"private": true,
"scripts": {
"clean": "rm -rf ./lib/",
Expand Down
4 changes: 2 additions & 2 deletions packages/core-web-tests/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@mrhenry/core-web-tests",
"version": "1.1.0",
"version": "1.1.1",
"private": true,
"scripts": {
"build": "webpack",
Expand All @@ -11,7 +11,7 @@
"@babel/core": "^7.21.8",
"@babel/preset-env": "^7.21.5",
"@mrhenry/babel-plugin-core-web": "^1.1.0",
"@mrhenry/core-web": "^1.1.0",
"@mrhenry/core-web": "^1.1.1",
"babel-loader": "^9.0.0",
"core-js": "^3.21.0",
"eslint": "^8.39.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/core-web/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@mrhenry/core-web",
"version": "1.1.0",
"version": "1.1.1",
"description": "browser feature polyfills as a babel plugin",
"main": "lib/index.js",
"author": "Simon Menke <[email protected]>",
Expand Down
2 changes: 1 addition & 1 deletion packages/pages-worker/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@mrhenry/pages-worker",
"main": "index.js",
"version": "1.1.0",
"version": "1.1.1",
"license": "MIT",
"private": true,
"scripts": {
Expand Down
3 changes: 1 addition & 2 deletions packages/pages/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@mrhenry/pages",
"version": "1.1.0",
"version": "1.1.1",
"description": "generator for GitHub pages.",
"license": "MIT",
"main": "lib/pages.js",
Expand All @@ -23,7 +23,6 @@
"dev-server": "npx http-server ./dist -p 3080"
},
"dependencies": {
"@babel/core": "^7.18.13",
"@babel/core": "^7.21.8",
"@babel/preset-env": "^7.21.5",
"@mdn/browser-compat-data": "^5.2.55",
Expand Down

0 comments on commit 2f9516a

Please sign in to comment.