Граф коммитов

142 Коммитов

Автор SHA1 Сообщение Дата
Mark Lee 06dfc0882e chore: use detect-libc types 2021-08-24 07:15:42 -07:00
Mark Lee 3b21283a46
fix: put the node-api-version dependency in the correct location (#802) 2021-08-09 18:16:54 -07:00
Mark Lee 818d98f7c7
feat: support `prebuild-install` for Node-API modules (#800)
Co-authored-by: Tim Fish <tim@timfish.uk>
2021-08-09 13:25:19 -07:00
Samuel Attard e166132a20
chore: update deps, require Node 12 (#784)
* test(electron-locator): use fixtures instead of running npm
* build(deps): upgrade to node-gyp@^8.1.0
* chore: require Node 12 LTS
* build(deps-dev): upgrade @types/yargs to ^17.0.2
* build(deps-dev): upgrade ts-node 10 10.2.0
* chore: emit and lint against ES2019
* refactor: use optional catch bindings

Co-authored-by: Mark Lee <electronjs@lazymalevolence.com>
Co-authored-by: Mark Lee <malept@users.noreply.github.com>
2021-08-08 19:20:20 -07:00
dependabot[bot] 4ddf16382f build(deps-dev): bump @types/mocha from 8.2.3 to 9.0.0
Bumps [@types/mocha](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/mocha) from 8.2.3 to 9.0.0.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/mocha)

---
updated-dependencies:
- dependency-name: "@types/mocha"
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-07-23 15:54:28 -07:00
dependabot[bot] 5007c4a410 build(deps): bump @malept/cross-spawn-promise from 1.1.1 to 2.0.0
Bumps [@malept/cross-spawn-promise](https://github.com/malept/cross-spawn-promise) from 1.1.1 to 2.0.0.
- [Release notes](https://github.com/malept/cross-spawn-promise/releases)
- [Changelog](https://github.com/malept/cross-spawn-promise/blob/main/NEWS.md)
- [Commits](https://github.com/malept/cross-spawn-promise/compare/v1.1.1...v2.0.0)

---
updated-dependencies:
- dependency-name: "@malept/cross-spawn-promise"
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-07-11 22:08:09 -07:00
dependabot[bot] 6b25ec6504
build(deps-dev): bump @types/node from 15.14.0 to 16.0.1
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 15.14.0 to 16.0.1.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-07-08 00:04:59 +00:00
dependabot[bot] 8863949c4a build(deps-dev): bump mocha from 8.4.0 to 9.0.1
Bumps [mocha](https://github.com/mochajs/mocha) from 8.4.0 to 9.0.1.
- [Release notes](https://github.com/mochajs/mocha/releases)
- [Changelog](https://github.com/mochajs/mocha/blob/master/CHANGELOG.md)
- [Commits](https://github.com/mochajs/mocha/compare/v8.4.0...v9.0.1)

---
updated-dependencies:
- dependency-name: mocha
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-06-18 19:10:28 -07:00
dependabot[bot] ac640b4801 build(deps-dev): bump ts-node from 9.1.1 to 10.0.0
Bumps [ts-node](https://github.com/TypeStrong/ts-node) from 9.1.1 to 10.0.0.
- [Release notes](https://github.com/TypeStrong/ts-node/releases)
- [Commits](https://github.com/TypeStrong/ts-node/compare/v9.1.1...v10.0.0)

---
updated-dependencies:
- dependency-name: ts-node
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-06-18 19:09:47 -07:00
Charles Kerr 5e7f8c8319
Merge pull request #699 from electron/dependabot/npm_and_yarn/fs-extra-10.0.0
build(deps): bump fs-extra from 9.1.0 to 10.0.0
2021-06-17 08:43:17 -05:00
Charles Kerr bff0bc1ed8
Merge pull request #694 from electron/dependabot/npm_and_yarn/yargs-17.0.1
build(deps): bump yargs from 16.2.0 to 17.0.1
2021-06-16 23:42:44 -05:00
dependabot[bot] 01913cd977
build(deps): bump fs-extra from 9.1.0 to 10.0.0
Bumps [fs-extra](https://github.com/jprichardson/node-fs-extra) from 9.1.0 to 10.0.0.
- [Release notes](https://github.com/jprichardson/node-fs-extra/releases)
- [Changelog](https://github.com/jprichardson/node-fs-extra/blob/master/CHANGELOG.md)
- [Commits](https://github.com/jprichardson/node-fs-extra/compare/9.1.0...10.0.0)

Signed-off-by: dependabot[bot] <support@github.com>
2021-06-14 19:07:39 +00:00
dependabot[bot] 98feb85c9a
build(deps): bump lzma-native from 7.0.1 to 8.0.1
Bumps [lzma-native](https://github.com/addaleax/lzma-native) from 7.0.1 to 8.0.1.
- [Release notes](https://github.com/addaleax/lzma-native/releases)
- [Changelog](https://github.com/addaleax/lzma-native/blob/main/CHANGELOG.md)
- [Commits](https://github.com/addaleax/lzma-native/compare/v7.0.1...v8.0.1)

---
updated-dependencies:
- dependency-name: lzma-native
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-06-14 18:43:34 +00:00
dependabot[bot] 5fb985e399
build(deps): bump yargs from 16.2.0 to 17.0.1
Bumps [yargs](https://github.com/yargs/yargs) from 16.2.0 to 17.0.1.
- [Release notes](https://github.com/yargs/yargs/releases)
- [Changelog](https://github.com/yargs/yargs/blob/master/CHANGELOG.md)
- [Commits](https://github.com/yargs/yargs/compare/v16.2.0...v17.0.1)

Signed-off-by: dependabot[bot] <support@github.com>
2021-05-13 05:04:40 +00:00
dependabot[bot] 1fb738c78f
build(deps-dev): bump @types/node from 14.14.39 to 15.0.2
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 14.14.39 to 15.0.2.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

Signed-off-by: dependabot[bot] <support@github.com>
2021-05-05 05:04:08 +00:00
dependabot[bot] 858ec5b41e
build(deps-dev): bump electron from 11.3.0 to 12.0.0 (#633)
* build(deps-dev): bump electron from 11.3.0 to 12.0.0

Bumps [electron](https://github.com/electron/electron) from 11.3.0 to 12.0.0.
- [Release notes](https://github.com/electron/electron/releases)
- [Changelog](https://github.com/electron/electron/blob/master/docs/breaking-changes.md)
- [Commits](https://github.com/electron/electron/compare/v11.3.0...v12.0.0)

Signed-off-by: dependabot[bot] <support@github.com>

* build: update xcode
* test(macOS): increase timeout for rebuild all modules test to 5m
* build(deps-dev): upgrade electron to ^12.0.2

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Samuel Attard <sattard@slack-corp.com>
Co-authored-by: Mark Lee <electronjs@lazymalevolence.com>
2021-04-09 15:44:20 -07:00
dependabot[bot] 8de3e82f4c build(deps): bump lzma-native from 6.0.1 to 7.0.1
Bumps [lzma-native](https://github.com/addaleax/lzma-native) from 6.0.1 to 7.0.1.
- [Release notes](https://github.com/addaleax/lzma-native/releases)
- [Changelog](https://github.com/addaleax/lzma-native/blob/v7.0.1/CHANGELOG.md)
- [Commits](https://github.com/addaleax/lzma-native/compare/v6.0.1...v7.0.1)

Signed-off-by: dependabot[bot] <support@github.com>
2021-03-11 22:38:50 -08:00
dependabot[bot] 3904e504b2 build(deps-dev): bump @types/yargs from 15.0.12 to 16.0.0
Bumps [@types/yargs](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/yargs) from 15.0.12 to 16.0.0.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/yargs)

Signed-off-by: dependabot[bot] <support@github.com>
2021-02-23 14:43:12 -08:00
Mark Lee e2f149ec7f
build(deps): upgrade @malept/cross-spawn-promise to ^1.1.1 2020-12-05 14:02:05 -08:00
Erick Zhao 18ec992c54
chore: use @types/node-abi (#525) 2020-12-02 11:18:20 -08:00
dependabot[bot] 0996abe55f build(deps-dev): bump electron from 10.1.5 to 11.0.2
Bumps [electron](https://github.com/electron/electron) from 10.1.5 to 11.0.2.
- [Release notes](https://github.com/electron/electron/releases)
- [Changelog](https://github.com/electron/electron/blob/master/docs/breaking-changes.md)
- [Commits](https://github.com/electron/electron/compare/v10.1.5...v11.0.2)

Signed-off-by: dependabot[bot] <support@github.com>
2020-11-19 23:38:50 -08:00
dependabot[bot] 5d5e5810b1
build(deps): bump node-abi from 2.19.1 to 2.19.2 (#502)
* build(deps): bump node-abi from 2.19.1 to 2.19.2

Bumps [node-abi](https://github.com/lgeiger/node-abi) from 2.19.1 to 2.19.2.
- [Release notes](https://github.com/lgeiger/node-abi/releases)
- [Commits](https://github.com/lgeiger/node-abi/compare/v2.19.1...v2.19.2)

Signed-off-by: dependabot[bot] <support@github.com>

* build(deps): update package.json dependency

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Mark Lee <electronjs@lazymalevolence.com>
2020-11-17 21:51:03 -08:00
Samuel Attard dd22885668
feat: use electrons sysroot when building with clang on linux (#443)
* feat: use electrons sysroot when building with clang on linux

* chore: fix up linting warnings

* chore: add SHA1 hash validation of the sysroot
2020-10-02 13:16:21 -07:00
Samuel Attard a757b7b204
feat: use electron clang to build native modules (#431)
* feat: use electron clang to build native modules

* fix: ensure the macosSDK is used as the sysroot on macOS

* fix: restore environment variables properly on windows

* fix: pass /p VS flags to node-gyp to use clang-cl on windows
2020-10-01 14:27:53 -07:00
Mark Lee fda43db426 build: emit ES2018 (Node 10) JS from tsc 2020-09-08 22:23:07 -07:00
Mark Lee 6ec64c0ecc chore: limit module files to lib 2020-09-08 22:23:07 -07:00
dependabot[bot] 17d18bce8a build(deps): bump yargs from 15.4.1 to 16.0.0
Bumps [yargs](https://github.com/yargs/yargs) from 15.4.1 to 16.0.0.
- [Release notes](https://github.com/yargs/yargs/releases)
- [Changelog](https://github.com/yargs/yargs/blob/master/CHANGELOG.md)
- [Commits](https://github.com/yargs/yargs/compare/v15.4.1...v16.0.0)

Signed-off-by: dependabot[bot] <support@github.com>
2020-09-08 22:18:23 -07:00
Mark Lee 9b524c8d4e build(deps): upgrade ora to ^5.1.0 2020-09-06 20:04:42 -07:00
dependabot[bot] 49b0c59b4e
build(deps-dev): bump @typescript-eslint/{eslint-plugin,parser} from 3.10.1 to ^4.0.1 (#396)
* build(deps-dev): bump @typescript-eslint/eslint-plugin

Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) from 3.10.1 to 4.0.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v4.0.0/packages/eslint-plugin)

Signed-off-by: dependabot[bot] <support@github.com>

* build(deps-dev): upgrade @typescript-eslint/{eslint-plugin,parser} to ^4.0.1

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Mark Lee <electronjs@lazymalevolence.com>
2020-09-02 00:19:54 -07:00
Mark Lee ac4165f980
build: add support for code coverage & uploading to codecov (#399) 2020-09-01 23:26:16 -07:00
Mark Lee 108762b25e
build: test/CI enhancements (#386)
* build(ci): test against Node 14

* refactor: replace Object.assign with object spread

* test: replace @nlv8/signun with @newrelic/native-metrics for Node 14 support

* test: re-enable workspace tests

* test(workspaces): use snappy instead of ref-napi

* test(workspaces): use sleep instead of ffi-napi

* test: derive test electron version/range from package.json

* test: handle Electron version location on macOS

* build(deps-dev): upgrade electron to ^10.0.0

* build: run npm audit fix

* test: emit stderr when npm/yarn fail

* chore: enable GitHub Dependabot on the repo
2020-08-27 11:33:25 -07:00
Mark Lee 2e19f76904 fix: node-gyp requires Node 10.12 2020-08-25 07:36:04 -07:00
Mark Lee eef71ea918 build(deps-dev): upgrade @typescript-eslint/{eslint-plugin,parser} to ^3.10.0 2020-08-25 07:36:04 -07:00
Mark Lee 7d23b9926d build(deps): upgrade node-abi to ^2.19.1 2020-08-25 07:36:04 -07:00
Mark Lee 3b362684ff
refactor: replace spawn-rx with @malept/cross-spawn-promise (#384) 2020-08-24 10:45:22 -07:00
Mark Lee 8f3b1d23b1
build: upgrade dependencies (#383)
* build: remove obsolete tslint config
* build(deps): upgrade node-abi to ^2.19.0
* build(deps-dev): upgrade @types/chai to ^4.2.12
* build(deps-dev): upgrade deps-dev to ^7.1.3
* build(deps): upgrade fs-extra to ^9.0.1
* build(deps-dev): upgrade mocha to ^8.1.1
* build(deps-dev): upgrade @types/node to ^14.6.0
* build(deps): upgrade yargs to ^15.4.1
* build(deps-dev): upgrade typescript to ^4.0.2
* build(deps): upgrade ora to ^5.0.0
* build(deps-dev): upgrade ts-node to ^9.0.0
* build(deps-dev): upgrade semantic-release to ^17.1.1
* build(ci): drop Node 8, add Node 12
* build(deps-dev): upgrade cross-env to ^7.0.2
* build(deps-dev): upgrade eslint and related packages
2020-08-23 22:05:44 -07:00
Samuel Attard e02b410342
fix: update minimum node version requirement
BREAKING CHANGE: We now require node 10
2020-08-20 16:04:50 -07:00
Samuel Attard a6bb419318
feat: update node-gyp to support apple silicon (#380)
* feat: update node-gyp to support apple silicon

* fix: create dev dir if not exists

* build: do not restore badd cache

* fix: node-gyp 7.1.0 does not like simul-builds
2020-08-20 15:46:47 -07:00
Mark Lee eeed61fa67 build(deps): upgrade yargs to ^14.2.0 2020-01-23 13:57:34 -08:00
Mark Lee a949a02114 build(deps-dev): upgrade @types/node to ^13.5.0 2020-01-23 13:57:34 -08:00
Mark Lee f77425c465 build: sync Electron version in devDependencies with version in tests 2020-01-23 13:57:34 -08:00
Mark Lee 6fd8e8f169
build(deps): upgrade fs-extra to 8.1.0 2019-12-09 23:05:27 -08:00
Mark Lee 6494778bf4
build(deps-dev): update devDependencies 2019-12-09 23:05:26 -08:00
Mark Lee 7518744202
build(deps-dev): upgrade type definitions 2019-12-09 23:05:26 -08:00
Mark Lee 1ab55653d6
refactor: replace tslint with eslint (#340) 2019-12-09 22:36:22 -08:00
Samuel Attard 31f750b88c build: use CFA v2 2019-11-19 12:50:24 -08:00
Mark Lee 11cb8d9e37 chore: add CFA support (#306)
* refactor: fix source file name misspelling

* refactor: rename and split up locateElectronModule

* refactor: resolve package.json instead of module folder

* chore: add CFA support

* test: do not save changes from running npm in tests

* test: ensure the electron package doesn't exist

* build: replace AppVeyor with CircleCI's Windows support

* Replace ref/ffi which don't work on Node 12

* chore(deps): upgrade node-abi to ^2.11.0

* Replace benchr/microtime with deasync-promise/deasync

* Replace deasync-promise/deasync with asyncawait/fibers

* Replace srand with deasync

* Replace deasync with serialport

* @serialport/bindings, not serialport

* Replace @serialport/bindings with snappy

* Replace asyncawait/fibers with poutchdb/leveldown

* Remove only

* Replace pouchdb with level

* Replace level/leveldown with electron-markdown/cmark-gfm

* Electron 1.6 probably doesn't have node_api.h

* Replace sodium-native with farmhash

* Back to ffi/ref + move to Electron 6

* test: do not save changes from running npm in tests

* Remove .only

* Fix prebuild tests

* Set the environment variable

* Update modules yet again

* Add @types/node for running prebuild via ts-node

* Fix more tests

* Fix bcrypt

* Use a for loop instead of forEach & skip over the napi_versions key

* Remove AppVeyor config

* Remove Travis CI badge

* Revert test stdio change
2019-11-15 12:22:53 -08:00
Mark Lee 9d669233c7
chore(deps): upgrade node-gyp to ^6.0.1 (#327)
Use Node 8 in Travis CI, since Electron >= 7 uses @electron/get & a newer sumchecker,
which require Node 8
2019-11-08 09:40:14 -08:00
Samuel Attard 90f67d9697 1.8.6 2019-08-16 10:52:54 -07:00
Mark Lee bdcf4bcda3 chore: upgrade dependencies 2019-08-15 20:37:43 -07:00