Skip to content

Commit

Permalink
build(deps-dev): bump the npm-deps group with 4 updates (#5865)
Browse files Browse the repository at this point in the history
* build(deps-dev): bump the npm-deps group with 4 updates

Bumps the npm-deps group with 4 updates: [@types/chrome](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/chrome), [eslint](https://github.com/eslint/eslint), [puppeteer](https://github.com/puppeteer/puppeteer) and [undici-types](https://github.com/nodejs/undici).


Updates `@types/chrome` from 0.0.280 to 0.0.283
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/chrome)

Updates `eslint` from 9.14.0 to 9.15.0
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md)
- [Commits](eslint/eslint@v9.14.0...v9.15.0)

Updates `puppeteer` from 23.7.1 to 23.8.0
- [Release notes](https://github.com/puppeteer/puppeteer/releases)
- [Changelog](https://github.com/puppeteer/puppeteer/blob/main/release-please-config.json)
- [Commits](puppeteer/puppeteer@puppeteer-v23.7.1...puppeteer-v23.8.0)

Updates `undici-types` from 6.20.0 to 6.21.0
- [Release notes](https://github.com/nodejs/undici/releases)
- [Commits](nodejs/undici@v6.20.0...v6.21.0)

---
updated-dependencies:
- dependency-name: "@types/chrome"
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: npm-deps
- dependency-name: eslint
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: npm-deps
- dependency-name: puppeteer
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: npm-deps
- dependency-name: undici-types
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: npm-deps
...

Signed-off-by: dependabot[bot] <[email protected]>

* fix

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Roma Sosnovsky <[email protected]>
  • Loading branch information
dependabot[bot] and sosnovsky authored Nov 18, 2024
1 parent b8aa4be commit ecbfa45
Show file tree
Hide file tree
Showing 7 changed files with 63 additions and 52 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ export class GmailWebmailStartup {

private injectFCVarScript = () => {
const scriptElement = document.createElement('script');
// eslint-disable-next-line @typescript-eslint/no-deprecated
scriptElement.src = chrome.runtime.getURL('/js/common/core/feature-config-injector.js');
(document.head || document.documentElement).appendChild(scriptElement);
};
Expand Down
96 changes: 49 additions & 47 deletions package-lock.json

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

8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@
"@openpgp/web-stream-tools": "^0.0.13",
"@types/chai": "4.3.19",
"@types/chai-as-promised": "7.1.8",
"@types/chrome": "0.0.280",
"@types/chrome": "0.0.283",
"@types/dompurify": "3.0.5",
"@types/jquery": "3.5.32",
"@types/mailparser": "3.4.5",
"ava": "5.3.1",
"chai": "4.5.0",
"chai-as-promised": "7.1.2",
"eslint": "^9.14.0",
"eslint": "9.14.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-header": "github:FlowCrypt/eslint-plugin-header",
"eslint-plugin-jsdoc": "^50.5.0",
Expand All @@ -32,12 +32,12 @@
"openpgp": "5.11.2",
"pdfjs-dist": "4.8.69",
"prettier": "^3.3.3",
"puppeteer": "23.7.1",
"puppeteer": "23.8.0",
"stylelint": "16.10.0",
"stylelint-config-standard": "36.0.1",
"typescript": "5.6.3",
"typescript-eslint": "^8.13.0",
"undici-types": "^6.20.0",
"undici-types": "^6.21.0",
"web-ext": "8.3.0",
"webpack-cli": "^5.1.1"
},
Expand Down
2 changes: 2 additions & 0 deletions test/source/browser/controllable.ts
Original file line number Diff line number Diff line change
Expand Up @@ -867,6 +867,7 @@ export class ControllablePage extends ControllableBase {
const result = await this.target.evaluate(
async keys =>
await new Promise(resolve => {
// eslint-disable-next-line @typescript-eslint/no-deprecated
chrome.storage.local.get(keys, resolve);
}),
keys
Expand All @@ -875,6 +876,7 @@ export class ControllablePage extends ControllableBase {
};

public setLocalStorage = async (key: string, value: string | null): Promise<void> => {
// eslint-disable-next-line @typescript-eslint/no-deprecated
await this.target.evaluate(async (key, value) => await chrome.storage.local.set({ [key]: value }), key, value);
};

Expand Down
2 changes: 2 additions & 0 deletions test/source/patterns.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,12 @@ for (const srcFilePath of getAllFilesInDir('./extension', /\.ts$/)) {
* check for problems in manifest file (because dynamically generated)
* https://github.com/FlowCrypt/flowcrypt-browser/issues/2934
*/
// eslint-disable-next-line @typescript-eslint/no-deprecated
const expectedPermissions: chrome.runtime.ManifestPermissions[] = ['alarms', 'scripting', 'storage', 'tabs', 'unlimitedStorage'];
const expectedConsumerHostPermissions = ['https://*.google.com/*', 'https://www.googleapis.com/*', 'https://flowcrypt.com/*'];
const expectedEnterpriseHostPermissions = ['https://*.google.com/*', 'https://*.googleapis.com/*', 'https://flowcrypt.com/*'];
for (const buildType of ['chrome-consumer', 'chrome-enterprise', 'thunderbird-consumer', 'firefox-consumer']) {
// eslint-disable-next-line @typescript-eslint/no-deprecated
const manifest = JSON.parse(readFileSync(`./build/${buildType}/manifest.json`).toString()) as chrome.runtime.Manifest;
const isManifestV3Build = buildType.includes('chrome') || buildType.includes('firefox');
const expectedHostPermissions = buildType.includes('consumer') ? expectedConsumerHostPermissions : expectedEnterpriseHostPermissions;
Expand Down
1 change: 1 addition & 0 deletions test/source/tests/page-recipe/abstract-page-recipe.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ export abstract class PageRecipe {
return await controllable.target.evaluate(
async msg =>
await new Promise(resolve => {
// eslint-disable-next-line @typescript-eslint/no-deprecated
chrome.runtime.sendMessage(msg, resolve);
}),
msg
Expand Down
5 changes: 4 additions & 1 deletion tooling/build-types-and-manifests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ import { execSync as exec } from 'child_process';
const DIR = './build';
const version: string = (JSON.parse(readFileSync('./package.json').toString()) as { version: string }).version;

// eslint-disable-next-line @typescript-eslint/no-deprecated
const addManifest = (toBuildType: string, transform: (manifest: chrome.runtime.Manifest) => void, fromBuildType = 'generic-extension-wip') => {
// eslint-disable-next-line @typescript-eslint/no-deprecated
const manifest = JSON.parse(readFileSync(`${DIR}/${fromBuildType}/manifest.json`).toString()) as chrome.runtime.ManifestV3;
transform(manifest);
writeFileSync(`${DIR}/${toBuildType}/manifest.json`, JSON.stringify(manifest, undefined, 2));
Expand All @@ -37,7 +39,7 @@ addManifest('firefox-consumer', manifest => {
type: 'module',
scripts: ['/js/service_worker/background.js'],
};
// eslint-disable-next-line @typescript-eslint/naming-convention, @typescript-eslint/no-unused-vars
// eslint-disable-next-line @typescript-eslint/naming-convention, @typescript-eslint/no-unused-vars, @typescript-eslint/no-deprecated
const { service_worker, ...newManifest } = manifest.background as chrome.runtime.ManifestV3;
manifest = newManifest;
manifest.permissions = manifest.permissions?.filter((p: string) => p !== 'unlimitedStorage');
Expand All @@ -52,6 +54,7 @@ addManifest(
manifest.name = 'FlowCrypt Encryption for Thunderbird';
manifest.description = 'Simple end-to-end encryption to secure email and attachments on Thunderbird';
manifest.permissions = [...(manifest.permissions ?? []), 'compose', 'messagesRead', 'messagesUpdate', 'messagesModify', 'accountsRead'];
// eslint-disable-next-line @typescript-eslint/no-deprecated
const manifestV3 = manifest as chrome.runtime.ManifestV3;
manifest.web_accessible_resources = manifestV3.web_accessible_resources?.[0].resources;
manifest.content_security_policy = manifestV3.content_security_policy?.extension_pages;
Expand Down

0 comments on commit ecbfa45

Please sign in to comment.