electron-mksnapshot 21.0.0 → 22.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1 @@
1
+ * @electron/wg-releases
@@ -18,10 +18,10 @@ jobs:
18
18
  runs-on: ${{ matrix.os }}
19
19
  steps:
20
20
  - uses: actions/checkout@v3
21
- - name: Install Dependencies
22
- run: npm i
23
21
  - name: Update Version
24
22
  run: node script/update-version.js ${{ github.event.inputs.version }}
23
+ - name: Install Dependencies
24
+ run: npm i
25
25
  - name: Run Tests
26
26
  run: npm test
27
27
  create_new_version:
package/README.md CHANGED
@@ -1,14 +1,13 @@
1
1
  # Electron mksnapshot
2
2
 
3
- [![AppVeyor Build status](https://ci.appveyor.com/api/projects/status/ugparq4awqbf4fq5/branch/master?svg=true)](https://ci.appveyor.com/project/electron-bot/mksnapshot/branch/master)
4
- [![Linux and Mac Build Status](https://circleci.com/gh/electron/mksnapshot/tree/master.svg?style=shield)](https://circleci.com/gh/electron/mksnapshot/tree/master)
3
+ [![AppVeyor Build status](https://ci.appveyor.com/api/projects/status/ugparq4awqbf4fq5/branch/main?svg=true)](https://ci.appveyor.com/project/electron-bot/mksnapshot/branch/main)
4
+ [![Linux and Mac Build Status](https://circleci.com/gh/electron/mksnapshot/tree/main.svg?style=shield)](https://circleci.com/gh/electron/mksnapshot/tree/main)
5
5
  <br>
6
6
  [![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat)](http://standardjs.com/)
7
- [![devDependencies:?](https://img.shields.io/david/electron/mksnapshot.svg)](https://david-dm.org/electron/mksnapshot)
8
- <br>
9
7
  [![license:mit](https://img.shields.io/badge/license-mit-blue.svg)](https://opensource.org/licenses/MIT)
10
- [![npm:](https://img.shields.io/npm/v/electron-mksnapshot.svg)](https://www.npmjs.com/packages/electron-mksnapshot)
11
- [![dependencies:?](https://img.shields.io/npm/dm/electron-mksnapshot.svg)](https://www.npmjs.com/packages/electron-mksnapshot)
8
+ <br>
9
+ [![npm:](https://img.shields.io/npm/v/electron-mksnapshot.svg)](https://www.npmjs.com/package/electron-mksnapshot)
10
+ [![dependencies:?](https://img.shields.io/npm/dm/electron-mksnapshot.svg)](https://www.npmjs.com/package/electron-mksnapshot)
12
11
 
13
12
  Simple node module to download the `mksnapshot` binaries compatible with
14
13
  Electron for creating v8 snapshots.
package/mksnapshot.js CHANGED
@@ -58,8 +58,10 @@ if (fs.existsSync(argsFile)) {
58
58
  // Use args from args file if it is provided as these match what is used to generate the original snapshot
59
59
  const mksnapshotArgsFile = fs.readFileSync(argsFile, 'utf8')
60
60
  const newlineRegEx = /(\r\n|\r|\n)/g
61
+ const turboProfileRegEx = /--turbo-profiling/g
62
+ const builtinsRegEx = /.*builtins-pgo.*/g
61
63
  const mksnapshotArgsFromFile = mksnapshotArgsFile.split(newlineRegEx).filter((arg) => {
62
- return (!arg.match(newlineRegEx) && arg !== '')
64
+ return (!arg.match(newlineRegEx) && !arg.match(turboProfileRegEx) && !arg.match(builtinsRegEx) && arg !== '')
63
65
  })
64
66
  const mksnapshotBinaryPath = path.parse(mksnapshotArgsFromFile[0])
65
67
  if (mksnapshotBinaryPath.dir) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "electron-mksnapshot",
3
- "version": "21.0.0",
3
+ "version": "22.0.0",
4
4
  "description": "Electron version of the mksnapshot binary",
5
5
  "repository": "https://github.com/electron/mksnapshot",
6
6
  "bin": {
@@ -13,13 +13,13 @@
13
13
  },
14
14
  "license": "MIT",
15
15
  "dependencies": {
16
- "@electron/get": "^1.12.2",
16
+ "@electron/get": "^2.0.1",
17
17
  "extract-zip": "^2.0.0",
18
18
  "fs-extra": "^7.0.1",
19
19
  "temp": "^0.8.3"
20
20
  },
21
21
  "devDependencies": {
22
- "mocha": "^7.1.2",
22
+ "mocha": "^10.1.0",
23
23
  "standard": "^14.3.1"
24
24
  },
25
25
  "standard": {
@@ -30,4 +30,4 @@
30
30
  "engines": {
31
31
  "node": ">=10.5.0"
32
32
  }
33
- }
33
+ }