Samuel Attard
81795744cf
fix: ensure the typescript definitions only export correct value types ( #28712 )
...
* fix: ensure the typescript definitions only export correct value types
In typescript there are two main types of "types" you can export, value types (class, const) and definition types (type, interface). The typescript compiler will let anything declared via const or class be used as a value. Unfortunately we were exporting a bunch of things (see the diff) as class/const when they weren't actually exported values. This lead to typescript being happy but the runtime throwing errors (not something we want).
This change passes "exported-in" context through our docs, to the parser and then to the definitions generator to ensure we only mark things as exported in the ts defs that we actually export.
Fixes #22167
* chore: update typescript-defs
* chore: update typescript-defs
* chore: fix bad typescript in IPC test
* docs: test rendering of new syntax
* chore: update per feedback, use same syntax but with 'this is not exportedd' line
2021-06-15 13:50:31 -07:00
dependabot[bot]
e01faedaa5
build(deps): bump lodash from 4.17.20 to 4.17.21 ( #29066 )
...
Bumps [lodash](https://github.com/lodash/lodash ) from 4.17.20 to 4.17.21.
- [Release notes](https://github.com/lodash/lodash/releases )
- [Commits](https://github.com/lodash/lodash/compare/4.17.20...4.17.21 )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-11 14:02:14 -07:00
Samuel Attard
35f2ed8978
build: offload hash checking logic to lambda worker during release ( #29096 )
2021-05-11 09:30:35 -07:00
dependabot[bot]
dca3b41ee6
build(deps): bump hosted-git-info from 2.7.1 to 2.8.9 ( #29079 )
...
Bumps [hosted-git-info](https://github.com/npm/hosted-git-info ) from 2.7.1 to 2.8.9.
- [Release notes](https://github.com/npm/hosted-git-info/releases )
- [Changelog](https://github.com/npm/hosted-git-info/blob/v2.8.9/CHANGELOG.md )
- [Commits](https://github.com/npm/hosted-git-info/compare/v2.7.1...v2.8.9 )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-10 16:43:19 -07:00
Naoki Maeda
a1a90ed03b
chore: Update husky v6.0.0 ( #28827 )
2021-04-29 09:46:15 +02:00
dependabot[bot]
362e8421d6
build(deps): bump elliptic from 6.5.3 to 6.5.4 ( #28066 )
...
Bumps [elliptic](https://github.com/indutny/elliptic ) from 6.5.3 to 6.5.4.
- [Release notes](https://github.com/indutny/elliptic/releases )
- [Commits](https://github.com/indutny/elliptic/compare/v6.5.3...v6.5.4 )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-04-22 12:10:50 +02:00
dependabot[bot]
c4931ff70e
build(deps): bump ssri from 6.0.1 to 6.0.2 ( #28723 )
...
Bumps [ssri](https://github.com/npm/ssri ) from 6.0.1 to 6.0.2.
- [Release notes](https://github.com/npm/ssri/releases )
- [Changelog](https://github.com/npm/ssri/blob/v6.0.2/CHANGELOG.md )
- [Commits](https://github.com/npm/ssri/compare/v6.0.1...v6.0.2 )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-04-21 11:56:24 -04:00
Samuel Attard
400d7c4bce
chore: update ts parser for description comment fixes and generic types ( #28709 )
...
* chore: update ts parser for description comment fixes
* docs: strongly type the getUserDefault API
* spec: add getUserMedia type assertions to smoke run
2021-04-19 11:44:58 -07:00
dependabot[bot]
52262a9db0
build(deps): bump y18n from 4.0.0 to 4.0.1 ( #28448 )
...
Bumps [y18n](https://github.com/yargs/y18n ) from 4.0.0 to 4.0.1.
- [Release notes](https://github.com/yargs/y18n/releases )
- [Changelog](https://github.com/yargs/y18n/blob/master/CHANGELOG.md )
- [Commits](https://github.com/yargs/y18n/commits )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-03-30 23:22:06 -07:00
Milan Burda
70190ec2b1
chore: update to latest TypeScript, which has built-in WeakRef declarations ( #27425 )
2021-01-22 11:25:47 -08:00
David Sanders
63ca878210
chore: use markdownlint to lint the docs ( #26792 )
...
* chore: use markdownlint to lint the docs
* chore: fix markdown lints
Co-authored-by: Cheng Zhao <zcbenz@gmail.com>
2021-01-14 17:31:26 +09:00
dependabot[bot]
6ccebdf712
build(deps): bump ini from 1.3.5 to 1.3.7 ( #26930 )
...
Bumps [ini](https://github.com/isaacs/ini ) from 1.3.5 to 1.3.7.
- [Release notes](https://github.com/isaacs/ini/releases )
- [Commits](https://github.com/isaacs/ini/compare/v1.3.5...v1.3.7 )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-12-15 13:50:10 -08:00
loc
0b85fdf26c
feat: add webContents.setWindowOpenHandler API ( #24517 )
...
Co-authored-by: Jeremy Rose <jeremya@chromium.org>
2020-11-10 09:06:03 -08:00
David Sanders
e296813578
build: support for running clang-tidy ( #26150 )
2020-11-05 10:24:17 +09:00
Samuel Attard
07ee75b745
build: auto-push patch file changes ( #26235 )
...
* build: auto-push patch file changes
* chore: change patch for testing purposes
* build: remove stray log
* build: push as electron bot
* build: suppress all output of the push-patch script
* chore: fix linting
2020-10-29 14:21:23 -04:00
David Sanders
30b5e15ddc
chore: bump @typescript-eslint version ( #25986 )
...
* chore: bump @typescript-eslint version
* chore: update config for newer @typescript-eslint
* chore: disable eslint no-undef rule for typescript
2020-10-26 11:59:35 +09:00
David Sanders
4379a14335
chore: bump @electron/docs-parser version ( #26088 )
2020-10-25 12:29:47 -05:00
Julie Koubová
56d1fafe66
build: Wrap bundles using webpack ( #25557 )
2020-10-20 12:10:15 -07:00
Samuel Maddock
704d69a8f9
feat: add webFrameMain API to the main process ( #25464 )
2020-10-09 09:50:46 -07:00
Jeremy Rose
7027217dbb
build: use aws-sdk-js instead of boto ( #25693 )
2020-09-30 13:30:10 -07:00
John Kleinschmidt
ebc7d54765
chore: add got for release script ( #25671 )
...
* chore: add got for release script
* Use same version of got we used to use
2020-09-28 21:10:28 -04:00
Shelley Vohr
77038b7bda
chore: upgrade to Node.js v14.9.0 ( #25249 )
2020-09-17 16:08:57 -06:00
Samuel Attard
b1d8057ec9
chore: update dependencies ( #25456 )
2020-09-14 14:00:15 -07:00
Samuel Attard
8baa9deccd
build: update to typescript 4 ( #25091 )
2020-08-24 11:23:25 -07:00
Samuel Attard
1646f938f3
Revert "refactor: use aws-sdk-js instead of boto ( #24863 )"
...
This reverts commit a3581aa992
.
2020-08-22 16:42:45 -07:00
Jeremy Rose
a3581aa992
refactor: use aws-sdk-js instead of boto ( #24863 )
...
* refactor: use js instead of boto for s3put
* replace merge-electron-checksums.py with js, remove boto
* fix auth
* actually pass the env to execute()
2020-08-13 13:25:40 -04:00
Shelley Vohr
9274117e12
build: quash octokit deprecation warning ( #24790 )
2020-08-05 11:59:52 -04:00
Samuel Attard
c9aa68e32c
build: update octicons ( #24492 )
2020-07-09 18:12:18 -07:00
Samuel Attard
42f716bbc6
build: update in-range dependencies ( #24480 )
2020-07-09 16:32:21 -07:00
Samuel Attard
dcb56923cb
build: update @types packages and fs-extra ( #24475 )
2020-07-09 10:57:50 -07:00
Samuel Attard
eb6616e4e9
build: update to standard 14 ( #24479 )
2020-07-09 10:18:49 -07:00
Samuel Attard
4305707ca8
build: update typescript parser deps ( #24474 )
2020-07-09 01:12:23 -07:00
Samuel Attard
8d25847318
build: update webpack / TS build deps ( #24460 )
...
* build: update webpack / TS build deps
* chore: fix JS inferred types
2020-07-09 01:05:16 -07:00
Samuel Attard
ad16e6c647
build: update linting deps ( #24461 )
2020-07-08 21:19:49 -07:00
Samuel Attard
e59370f541
build: update ts defs generator ( #24459 )
2020-07-08 13:08:31 -07:00
Alexey Kuzmin
4133c71105
build: fix for "enable_desktop_capturer = false" ( #23864 )
2020-06-01 10:13:47 -04:00
Jeremy Apthorp
6fa05dd123
test: refactor crashReporter tests ( #23178 )
2020-04-22 15:53:12 -07:00
Samuel Attard
0d2e967960
feat: expose electron/{process} typed modules ( #22937 )
...
* feat: expose electron/{process} typed modules
* chore: update imports for common modules
* chore: update typescript generator
* chore: remap electron/* to the internal packages
2020-04-06 17:04:09 -07:00
Samuel Attard
1d158399a6
feat: expose the sameSite value for cookies ( #22789 )
...
* feat: expose the sameSite value for cookies
* Apply suggestions from code review
Co-Authored-By: Charles Kerr <ckerr@github.com>
* Apply suggestions from code review
Align with cookie samesite values for the extensions API
https://developer.chrome.com/extensions/cookies#type-SameSiteStatus
* chore: add tests for sameSite cookies get/set
* chore: update docs parser
* chore: update docs for MessageChannel and MessagePort to have correct process information
* chore: remove LOG warning
* chore: throw error if the string->samesite conversion fails
Co-authored-by: Charles Kerr <ckerr@github.com>
2020-04-02 11:28:43 -07:00
Mark Lee
8ff7a1160a
build: upgrade asar to a version that requires Node 10 ( #22351 )
...
* build(deps-dev): upgrade asar to ^2.1.0
* build(deps-dev): upgrade asar to ^3.0.1
2020-03-27 09:52:53 +09:00
Samuel Attard
aa15a2cc03
build: update typescript and webpack ( #22776 )
2020-03-19 16:55:49 -07:00
Samuel Attard
e7b0a9ca8f
feat: add API for receiving logs from service workers ( #20624 )
...
* feat: add API for receiving logs from service workers
* feat: add new serviceWorkerContext APIs
* chore: add missing #include's
* refactor: rename serviceWorkerContext to serviceWorkers
* chore: clean up based on review
* chore: remove native_mate
* chore: add tests for the service worker module
* Update spec-main/api-service-workers-spec.ts
Co-Authored-By: Jeremy Apthorp <jeremya@chromium.org>
* chore: fix linting
* chore: handle renames
Co-authored-by: Jeremy Apthorp <nornagon@nornagon.net>
2020-02-20 15:19:06 -08:00
Samuel Attard
fcee7212ce
chore: upgrade ts generator for better type safety ( #20975 )
...
* chore: upgrade ts generator for better type safety
* spec: fix tests
2019-11-05 13:34:04 -08:00
Jeremy Apthorp
ecd9e1f26e
chore: lint spec-main ( #20835 )
2019-11-01 13:37:02 -07:00
Jeremy Apthorp
8dad0c7aaa
test: move crashReporter specs to the main process ( #20417 )
2019-10-14 14:38:54 -07:00
Jeremy Apthorp
5d696c5c69
fix: return type of webview.printToPDF is now Uint8Array ( #20505 )
2019-10-10 11:25:11 -07:00
dependabot[bot]
8da9a3c416
build(deps): bump eslint-utils from 1.3.1 to 1.4.2 ( #20481 )
...
Bumps [eslint-utils](https://github.com/mysticatea/eslint-utils ) from 1.3.1 to 1.4.2.
- [Release notes](https://github.com/mysticatea/eslint-utils/releases )
- [Commits](https://github.com/mysticatea/eslint-utils/compare/v1.3.1...v1.4.2 )
Signed-off-by: dependabot[bot] <support@github.com>
2019-10-08 11:06:52 -04:00
Samuel Attard
0d16be9560
feat: add nativeTheme.themeSource to allow apps to override Chromiums theme choice ( #19960 )
...
* feat: add nativeTheme.shouldUseDarkColorsOverride to allow apps to override Chromiums theme choice
* spec: add tests for shouldUseDarkColorsOverride
* chore: add missing forward declarations
* refactor: rename overrideShouldUseDarkColors to themeSource
* chore: only run appLevelAppearance specs on Mojave and up
* chore: update patch with more info and no define
* Update spec-main/api-native-theme-spec.ts
Co-Authored-By: Jeremy Apthorp <jeremya@chromium.org>
* Update api-native-theme-spec.ts
* Update api-native-theme-spec.ts
* Update api-native-theme-spec.ts
2019-09-05 10:57:04 -07:00
Jeremy Apthorp
bdc84d0bfb
test: tsify session spec ( #19604 )
2019-08-27 14:55:19 -07:00
Shelley Vohr
da2401ff39
spec: fix dirtyChai spec failures ( #19652 )
2019-08-06 10:27:33 -07:00