Skip to content

Commit b01b98a

Browse files
committed
Merge remote-tracking branch 'origin/main' into ps/pm-14503/lang-attr
2 parents b3653f8 + 9d743a7 commit b01b98a

File tree

1,816 files changed

+46442
-28555
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,816 files changed

+46442
-28555
lines changed

.github/CODEOWNERS

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ libs/tools @bitwarden/team-tools-dev
3939
apps/web/src/app/dirt @bitwarden/team-data-insights-and-reporting-dev
4040
bitwarden_license/bit-common/src/dirt @bitwarden/team-data-insights-and-reporting-dev
4141
bitwarden_license/bit-web/src/app/dirt @bitwarden/team-data-insights-and-reporting-dev
42+
libs/dirt @bitwarden/team-data-insights-and-reporting-dev
4243

4344
## Localization/Crowdin (Platform and Tools team)
4445
apps/browser/src/_locales @bitwarden/team-tools-dev @bitwarden/team-platform-dev
@@ -94,7 +95,6 @@ apps/web/src/app/core @bitwarden/team-platform-dev
9495
apps/web/src/app/shared @bitwarden/team-platform-dev
9596
apps/web/src/translation-constants.ts @bitwarden/team-platform-dev
9697
# Workflows
97-
# Any changes here should also be reflected in Renovate configuration
9898
.github/workflows/automatic-issue-responses.yml @bitwarden/team-platform-dev
9999
.github/workflows/automatic-pull-request-responses.yml @bitwarden/team-platform-dev
100100
.github/workflows/build-browser-target.yml @bitwarden/team-platform-dev
@@ -117,6 +117,9 @@ apps/web/src/translation-constants.ts @bitwarden/team-platform-dev
117117
.github/workflows/version-auto-bump.yml @bitwarden/team-platform-dev
118118
# ESLint custom rules
119119
libs/eslint @bitwarden/team-platform-dev
120+
# Typescript tooling
121+
tsconfig.base.json @bitwarden/team-platform-dev
122+
nx.json @bitwarden/team-platform-dev
120123

121124
## Autofill team files ##
122125
apps/browser/src/autofill @bitwarden/team-autofill-dev
@@ -164,7 +167,6 @@ apps/desktop/src/locales/en/messages.json
164167
apps/web/src/locales/en/messages.json
165168

166169
## BRE team owns these workflows ##
167-
# Any changes here should also be reflected in Renovate configuration ##
168170
.github/workflows/brew-bump-desktop.yml @bitwarden/dept-bre
169171
.github/workflows/deploy-web.yml @bitwarden/dept-bre
170172
.github/workflows/publish-cli.yml @bitwarden/dept-bre
@@ -185,5 +187,9 @@ apps/web/src/locales/en/messages.json
185187
**/entrypoint.sh
186188

187189
## Overrides
188-
# tsconfig files are potentially dangerous and will be reviewed by platform to prevent misconfigurations
190+
# For the time being platform owns tsconfig and jest config
191+
# These overrides will be removed after Nx is implemented
192+
# To track that effort please see https://bitwarden.atlassian.net/browse/PM-21636
189193
**/tsconfig.json @bitwarden/team-platform-dev
194+
**/jest.config.js @bitwarden/team-platform-dev
195+
**/project.jsons @bitwarden/team-platform-dev

.github/ISSUE_TEMPLATE/desktop.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ body:
7373
- Homebrew
7474
- Chocolatey
7575
- Snap
76+
- Flatpak
7677
- Other
7778
validations:
7879
required: true

.github/codecov.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ component_management:
4444
- component_id: key-management-keys
4545
name: Key Management - Keys
4646
paths:
47+
- apps/desktop/src/key-management/electron-key.service.ts
4748
- libs/key-management/src/kdf-config.service.ts
4849
- libs/key-management/src/key.service.ts
4950
- libs/common/src/key-management/master-password/**

.github/renovate.json5

Lines changed: 93 additions & 89 deletions
Original file line numberDiff line numberDiff line change
@@ -4,57 +4,22 @@
44
enabledManagers: ["cargo", "github-actions", "npm"],
55
packageRules: [
66
{
7-
// Group all build/test/lint workflows for GitHub Actions together for Platform.
8-
// Since they are code owners we don't need to assign a review team in Renovate.
9-
// Any changes here should also be reflected in CODEOWNERS.
10-
groupName: "github-action",
7+
// Group all Github Action minor updates together to reduce PR noise.
8+
groupName: "Minor github-actions updates",
119
matchManagers: ["github-actions"],
12-
matchFileNames: [
13-
"./github/workflows/automatic-issue-responses.yml",
14-
"./github/workflows/automatic-pull-request-responses.yml",
15-
"./github/workflows/build-browser.yml",
16-
"./github/workflows/build-cli.yml",
17-
"./github/workflows/build-desktop.yml",
18-
"./github/workflows/build-web.yml",
19-
"./github/workflows/chromatic.yml",
20-
"./github/workflows/crowdin-pull.yml",
21-
"./github/workflows/enforce-labels.yml",
22-
"./github/workflows/lint.yml",
23-
"./github/workflows/locales-lint.yml",
24-
"./github/workflows/repository-management.yml",
25-
"./github/workflows/scan.yml",
26-
"./github/workflows/stale-bot.yml",
27-
"./github/workflows/test.yml",
28-
"./github/workflows/version-auto-bump.yml",
29-
],
30-
commitMessagePrefix: "[deps] Platform:",
10+
matchUpdateTypes: ["minor"],
11+
addLabels: ["hold"],
3112
},
3213
{
33-
// Group all release-related workflows for GitHub Actions together for BRE.
34-
// Since they are code owners we don't need to assign a review team in Renovate.
35-
// Any changes here should also be reflected in CODEOWNERS.
36-
groupName: "github-action",
37-
matchManagers: ["github-actions"],
38-
matchFileNames: [
39-
"./github/workflows/brew-bump-desktop.yml",
40-
"./github/workflows/deploy-web.yml",
41-
"./github/workflows/publish-cli.yml",
42-
"./github/workflows/publish-desktop.yml",
43-
"./github/workflows/publish-web.yml",
44-
"./github/workflows/retrieve-current-desktop-rollout.yml",
45-
"./github/workflows/staged-rollout-desktop.yml",
46-
"./github/workflows/release-cli.yml",
47-
"./github/workflows/release-desktop-beta.yml",
48-
"./github/workflows/release-desktop.yml",
49-
"./github/workflows/release-web.yml",
50-
],
51-
commitMessagePrefix: "[deps] BRE:",
52-
addLabels: ["hold"],
14+
// Enable support for Rust toolchain updates.
15+
matchManagers: ["custom.regex"],
16+
matchDepNames: ["rust"],
17+
commitMessageTopic: "Rust",
5318
},
5419
{
5520
// By default, we send patch updates to the Dependency Dashboard and do not generate a PR.
5621
// We want to generate PRs for a select number of dependencies to ensure we stay up to date on these.
57-
matchPackageNames: ["browserslist", "electron", "rxjs", "typescript", "webpack"],
22+
matchPackageNames: ["browserslist", "electron", "rxjs", "typescript", "webpack", "zone.js"],
5823
matchUpdateTypes: ["patch"],
5924
dependencyDashboardApproval: false,
6025
},
@@ -80,49 +45,7 @@
8045
enabled: false,
8146
},
8247
{
83-
// Renovate should manage patch updates for TypeScript and Zone.js, despite ignoring major and minor.
84-
matchPackageNames: ["typescript", "zone.js"],
85-
matchUpdateTypes: "patch",
86-
},
87-
{
88-
// We want to update all the Jest-related packages together, to reduce PR noise.
89-
groupName: "jest",
90-
matchPackageNames: ["@types/jest", "jest", "ts-jest", "jest-preset-angular"],
91-
},
92-
{
93-
// We need to group all napi-related packages together to avoid build errors caused by version incompatibilities.
94-
groupName: "napi",
95-
matchPackageNames: ["napi", "napi-build", "napi-derive"],
96-
},
97-
{
98-
// We need to group all macOS/iOS binding-related packages together to avoid build errors caused by version incompatibilities.
99-
groupName: "macOS/iOS bindings",
100-
matchPackageNames: ["core-foundation", "security-framework", "security-framework-sys"],
101-
},
102-
{
103-
// We need to group all zbus-related packages together to avoid build errors caused by version incompatibilities.
104-
groupName: "zbus",
105-
matchPackageNames: ["zbus", "zbus_polkit"],
106-
},
107-
{
108-
matchPackageNames: [
109-
"base64-loader",
110-
"buffer",
111-
"bufferutil",
112-
"core-js",
113-
"css-loader",
114-
"html-loader",
115-
"mini-css-extract-plugin",
116-
"postcss",
117-
"postcss-loader",
118-
"process",
119-
"sass",
120-
"sass-loader",
121-
"style-loader",
122-
"ts-loader",
123-
"url",
124-
"util",
125-
],
48+
matchPackageNames: ["buffer", "bufferutil", "core-js", "process", "url", "util"],
12649
description: "Admin Console owned dependencies",
12750
commitMessagePrefix: "[deps] AC:",
12851
reviewers: ["team:team-admin-console-dev"],
@@ -136,6 +59,7 @@
13659
{
13760
matchPackageNames: [
13861
"@angular-eslint/schematics",
62+
"@eslint/compat",
13963
"@typescript-eslint/rule-tester",
14064
"@typescript-eslint/utils",
14165
"angular-eslint",
@@ -158,6 +82,7 @@
15882
{
15983
matchPackageNames: [
16084
"@angular-eslint/schematics",
85+
"@eslint/compat",
16186
"@typescript-eslint/rule-tester",
16287
"@typescript-eslint/utils",
16388
"angular-eslint",
@@ -173,7 +98,7 @@
17398
"lint-staged",
17499
"typescript-eslint",
175100
],
176-
groupName: "Linting minor-patch",
101+
groupName: "Minor and patch linting updates",
177102
matchUpdateTypes: ["minor", "patch"],
178103
},
179104
{
@@ -219,6 +144,10 @@
219144
"@electron/notarize",
220145
"@electron/rebuild",
221146
"@ngtools/webpack",
147+
"@nx/devkit",
148+
"@nx/eslint",
149+
"@nx/jest",
150+
"@nx/js",
222151
"@types/chrome",
223152
"@types/firefox-webext-browser",
224153
"@types/glob",
@@ -230,13 +159,15 @@
230159
"anyhow",
231160
"arboard",
232161
"babel-loader",
162+
"base64-loader",
233163
"base64",
234164
"bindgen",
235165
"browserslist",
236166
"byteorder",
237167
"bytes",
238168
"core-foundation",
239169
"copy-webpack-plugin",
170+
"css-loader",
240171
"dirs",
241172
"electron",
242173
"electron-builder",
@@ -248,6 +179,7 @@
248179
"futures",
249180
"hex",
250181
"homedir",
182+
"html-loader",
251183
"html-webpack-injector",
252184
"html-webpack-plugin",
253185
"interprocess",
@@ -256,6 +188,7 @@
256188
"libc",
257189
"log",
258190
"lowdb",
191+
"mini-css-extract-plugin",
259192
"napi",
260193
"napi-build",
261194
"napi-derive",
@@ -266,15 +199,23 @@
266199
"oslog",
267200
"pin-project",
268201
"pkg",
202+
"postcss",
203+
"postcss-loader",
269204
"rand",
270205
"rxjs",
206+
"sass",
207+
"sass-loader",
271208
"scopeguard",
272209
"security-framework",
273210
"security-framework-sys",
211+
"semver",
274212
"serde",
275213
"serde_json",
276214
"simplelog",
215+
"style-loader",
277216
"sysinfo",
217+
"ts-node",
218+
"ts-loader",
278219
"tsconfig-paths-webpack-plugin",
279220
"type-fest",
280221
"typenum",
@@ -296,6 +237,52 @@
296237
commitMessagePrefix: "[deps] Platform:",
297238
reviewers: ["team:team-platform-dev"],
298239
},
240+
{
241+
// We need to group all napi-related packages together to avoid build errors caused by version incompatibilities.
242+
groupName: "napi",
243+
matchPackageNames: ["napi", "napi-build", "napi-derive"],
244+
},
245+
{
246+
// We need to group all macOS/iOS binding-related packages together to avoid build errors caused by version incompatibilities.
247+
groupName: "macOS/iOS bindings",
248+
matchPackageNames: ["core-foundation", "security-framework", "security-framework-sys"],
249+
},
250+
{
251+
// We need to group all zbus-related packages together to avoid build errors caused by version incompatibilities.
252+
groupName: "zbus",
253+
matchPackageNames: ["zbus", "zbus_polkit"],
254+
},
255+
{
256+
// We group all webpack build-related minor and patch updates together to reduce PR noise.
257+
// We include patch updates here because we want PRs for webpack patch updates and it's in this group.
258+
matchPackageNames: [
259+
"@babel/core",
260+
"@babel/preset-env",
261+
"babel-loader",
262+
"base64-loader",
263+
"browserslist",
264+
"copy-webpack-plugin",
265+
"css-loader",
266+
"html-loader",
267+
"html-webpack-injector",
268+
"html-webpack-plugin",
269+
"mini-css-extract-plugin",
270+
"postcss-loader",
271+
"postcss",
272+
"sass-loader",
273+
"sass",
274+
"style-loader",
275+
"ts-loader",
276+
"tsconfig-paths-webpack-plugin",
277+
"webpack-cli",
278+
"webpack-dev-server",
279+
"webpack-node-externals",
280+
"webpack",
281+
],
282+
description: "webpack-related build dependencies",
283+
groupName: "Minor and patch webpack updates",
284+
matchUpdateTypes: ["minor", "patch"],
285+
},
299286
{
300287
matchPackageNames: [
301288
"@angular-devkit/build-angular",
@@ -354,6 +341,11 @@
354341
commitMessagePrefix: "[deps] SM:",
355342
reviewers: ["team:team-secrets-manager-dev"],
356343
},
344+
{
345+
// We need to update several Jest-related packages together, for version compatibility.
346+
groupName: "jest",
347+
matchPackageNames: ["@types/jest", "jest", "ts-jest", "jest-preset-angular"],
348+
},
357349
{
358350
matchPackageNames: [
359351
"@microsoft/signalr-protocol-msgpack",
@@ -421,6 +413,18 @@
421413
commitMessagePrefix: "[deps] KM:",
422414
reviewers: ["team:team-key-management-dev"],
423415
},
416+
{
417+
// Any versions of lowdb above 1.0.0 are not compatible with CommonJS.
418+
matchPackageNames: ["lowdb"],
419+
allowedVersions: "1.0.0",
420+
description: "Higher versions of lowdb are not compatible with CommonJS",
421+
},
422+
{
423+
// Pin types as well since we are not upgrading past v1 (and also v2+ does not need separate types).
424+
matchPackageNames: ["@types/lowdb"],
425+
allowedVersions: "< 2.0.0",
426+
description: "Higher versions of lowdb do not need separate types",
427+
},
424428
],
425-
ignoreDeps: ["@types/koa-bodyparser", "bootstrap", "node-ipc", "node", "npm"],
429+
ignoreDeps: ["@types/koa-bodyparser", "bootstrap", "node-ipc", "@bitwarden/sdk-internal"],
426430
}

.github/whitelist-capital-letters.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,3 +34,4 @@
3434
./apps/browser/src/safari/safari/Info.plist
3535
./apps/browser/src/safari/desktop.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
3636
./SECURITY.md
37+
./libs/nx-plugin/src/generators/files/README.md__tmpl__

.github/workflows/build-browser-target.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,9 @@ name: Build Browser on PR Target
88

99
on:
1010
pull_request_target:
11-
types: [opened, synchronize]
12-
branches-ignore:
13-
- 'l10n_master'
14-
- 'cf-pages'
11+
types: [opened, synchronize, reopened]
12+
branches:
13+
- main
1514
paths:
1615
- 'apps/browser/**'
1716
- 'libs/**'

.github/workflows/build-cli-target.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,9 @@ name: Build CLI on PR Target
88

99
on:
1010
pull_request_target:
11-
types: [opened, synchronize]
12-
branches-ignore:
13-
- 'l10n_master'
14-
- 'cf-pages'
11+
types: [opened, synchronize, reopened]
12+
branches:
13+
- main
1514
paths:
1615
- 'apps/cli/**'
1716
- 'libs/**'

0 commit comments

Comments
 (0)