Skip to content

Commit fccc0b9

Browse files
authored
Merge branch 'master' into feat/nm-mode-hardlinks-local
2 parents 86b3c67 + 4883b3a commit fccc0b9

File tree

8 files changed

+55
-20
lines changed

8 files changed

+55
-20
lines changed

.yarn/versions/d60ffdcd.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
releases:
2+
"@yarnpkg/core": major
3+
4+
declined:
5+
- "@yarnpkg/plugin-compat"
6+
- "@yarnpkg/plugin-constraints"
7+
- "@yarnpkg/plugin-dlx"
8+
- "@yarnpkg/plugin-essentials"
9+
- "@yarnpkg/plugin-exec"
10+
- "@yarnpkg/plugin-file"
11+
- "@yarnpkg/plugin-git"
12+
- "@yarnpkg/plugin-github"
13+
- "@yarnpkg/plugin-http"
14+
- "@yarnpkg/plugin-init"
15+
- "@yarnpkg/plugin-interactive-tools"
16+
- "@yarnpkg/plugin-link"
17+
- "@yarnpkg/plugin-nm"
18+
- "@yarnpkg/plugin-npm"
19+
- "@yarnpkg/plugin-npm-cli"
20+
- "@yarnpkg/plugin-pack"
21+
- "@yarnpkg/plugin-patch"
22+
- "@yarnpkg/plugin-pnp"
23+
- "@yarnpkg/plugin-pnpm"
24+
- "@yarnpkg/plugin-stage"
25+
- "@yarnpkg/plugin-typescript"
26+
- "@yarnpkg/plugin-version"
27+
- "@yarnpkg/plugin-workspace-tools"
28+
- "@yarnpkg/builder"
29+
- "@yarnpkg/cli"
30+
- "@yarnpkg/doctor"
31+
- "@yarnpkg/extensions"
32+
- "@yarnpkg/nm"
33+
- "@yarnpkg/pnpify"
34+
- "@yarnpkg/sdks"

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ Yarn now accepts sponsorships! Please give a look at our [OpenCollective](https:
1616
- Some legacy layers have been sunset:
1717
- Plugins cannot access the Clipanion 2 APIs anymore (upgrade to [Clipanion 3](https://github.com/arcanis/clipanion))
1818
- Plugins cannot access the internal copy of Yup anymore (use [Typanion](https://github.com/arcanis/typanion) instead)
19+
- The network settings configuration option has been renamed from `caFilePath` to `httpsCaFilePath`.
1920
- Set `nmMode` to `hardlinks-local` by default.
2021

2122
### **API Changes**

packages/acceptance-tests/pkg-tests-specs/sources/https.test.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ describe(`Https tests`, () => {
2626
);
2727

2828
test(
29-
`it should install when providing valid CA certificate via root caFilePath`,
29+
`it should install when providing valid CA certificate via root httpsCaFilePath`,
3030
makeTemporaryEnv(
3131
{
3232
dependencies: {[`@private/package`]: `1.0.0`},
@@ -37,7 +37,7 @@ describe(`Https tests`, () => {
3737

3838
await writeFile(`${path}/rootCA.crt`, certs.ca.certificate);
3939
await writeFile(`${path}/.yarnrc.yml`, [
40-
`caFilePath: ${path}/rootCA.crt`,
40+
`httpsCaFilePath: ${path}/rootCA.crt`,
4141
`npmScopes:`,
4242
` private:`,
4343
` npmRegistryServer: "${url}"`,
@@ -68,7 +68,7 @@ describe(`Https tests`, () => {
6868
await writeFile(`${path}/.yarnrc.yml`, [
6969
`networkSettings:`,
7070
` "*":`,
71-
` caFilePath: ${path}/rootCA.crt`,
71+
` httpsCaFilePath: ${path}/rootCA.crt`,
7272
`npmScopes:`,
7373
` private:`,
7474
` npmRegistryServer: "${url}"`,
@@ -99,7 +99,7 @@ describe(`Https tests`, () => {
9999
await writeFile(`${path}/.yarnrc.yml`, [
100100
`networkSettings:`,
101101
` "localhost":`,
102-
` caFilePath: ${path}/rootCA.crt`,
102+
` httpsCaFilePath: ${path}/rootCA.crt`,
103103
`npmScopes:`,
104104
` private:`,
105105
` npmRegistryServer: "${url}"`,
@@ -130,7 +130,7 @@ describe(`Https tests`, () => {
130130
await writeFile(`${path}/.yarnrc.yml`, [
131131
`networkSettings:`,
132132
` "foo":`,
133-
` caFilePath: ${path}/rootCA.crt`,
133+
` httpsCaFilePath: ${path}/rootCA.crt`,
134134
`npmScopes:`,
135135
` private:`,
136136
` npmRegistryServer: "${url}"`,
@@ -152,7 +152,7 @@ describe(`Https tests`, () => {
152152
const url = await startPackageServer({type: `https`});
153153

154154
await writeFile(`${path}/.yarnrc.yml`, [
155-
`caFilePath: ${path}/missing.crt`,
155+
`httpsCaFilePath: ${path}/missing.crt`,
156156
`npmScopes:`,
157157
` private:`,
158158
` npmRegistryServer: "${url}"`,

packages/gatsby/src/components/markdown.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ const Content = styled.div`
162162
163163
color: #007aa2;
164164
165-
font-family: "PT Mono";
165+
font-family: "PT Mono", monospace;
166166
}
167167
168168
pre code {

packages/gatsby/src/components/navigation.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ const MenuEntry = styled(Link)`
8787
const Tag = styled.code`
8888
color: #007aa2;
8989
90-
font-family: "PT Mono";
90+
font-family: "PT Mono", monospace;
9191
9292
${ifDesktop} {
9393
margin-left: auto;

packages/gatsby/static/configuration/yarnrc.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
"format": "uri-reference",
2727
"default": "./.yarn/cache"
2828
},
29-
"caFilePath": {
29+
"httpsCaFilePath": {
3030
"_package": "@yarnpkg/core",
3131
"description": "Path to file containing one or multiple Certificate Authority signing certificates",
3232
"type": "string",
@@ -365,8 +365,8 @@
365365
"description": "The hostname to override settings for (glob patterns are supported)",
366366
"type": "object",
367367
"properties": {
368-
"caFilePath": {
369-
"$ref": "#/properties/caFilePath"
368+
"httpsCaFilePath": {
369+
"$ref": "#/properties/httpsCaFilePath"
370370
},
371371
"enableNetwork": {
372372
"$ref": "#/properties/enableNetwork"
@@ -384,7 +384,7 @@
384384
"$ref": "#/properties/httpsProxy"
385385
}
386386
},
387-
"_exampleKeys": ["caFilePath", "enableNetwork", "httpProxy", "httpsCertFilePath", "httpsKeyFilePath", "httpsProxy"]
387+
"_exampleKeys": ["httpsCaFilePath", "enableNetwork", "httpProxy", "httpsCertFilePath", "httpsKeyFilePath", "httpsProxy"]
388388
}
389389
},
390390
"_exampleKeys": ["*.example.com"]

packages/yarnpkg-core/sources/Configuration.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,7 @@ export const coreDefinitions: {[coreSettingName: string]: SettingsDefinition} =
372372
description: ``,
373373
type: SettingsType.SHAPE,
374374
properties: {
375-
caFilePath: {
375+
httpsCaFilePath: {
376376
description: `Path to file containing one or multiple Certificate Authority signing certificates`,
377377
type: SettingsType.ABSOLUTE_PATH,
378378
default: null,
@@ -405,7 +405,7 @@ export const coreDefinitions: {[coreSettingName: string]: SettingsDefinition} =
405405
},
406406
},
407407
},
408-
caFilePath: {
408+
httpsCaFilePath: {
409409
description: `A path to a file containing one or multiple Certificate Authority signing certificates`,
410410
type: SettingsType.ABSOLUTE_PATH,
411411
default: null,
@@ -593,14 +593,14 @@ export interface ConfigurationValueMap {
593593
httpRetry: number;
594594
networkConcurrency: number;
595595
networkSettings: Map<string, miscUtils.ToMapValue<{
596-
caFilePath: PortablePath | null;
596+
httpsCaFilePath: PortablePath | null;
597597
enableNetwork: boolean | null;
598598
httpProxy: string | null;
599599
httpsProxy: string | null;
600600
httpsKeyFilePath: PortablePath | null;
601601
httpsCertFilePath: PortablePath | null;
602602
}>>;
603-
caFilePath: PortablePath | null;
603+
httpsCaFilePath: PortablePath | null;
604604
httpsKeyFilePath: PortablePath | null;
605605
httpsCertFilePath: PortablePath | null;
606606
enableStrictSsl: boolean;

packages/yarnpkg-core/sources/httpUtils.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ export function getNetworkSettings(target: string | URL, opts: { configuration:
124124

125125
const mergedNetworkSettings: UndefinableSettings = {
126126
enableNetwork: undefined,
127-
caFilePath: undefined,
127+
httpsCaFilePath: undefined,
128128
httpProxy: undefined,
129129
httpsProxy: undefined,
130130
httpsKeyFilePath: undefined,
@@ -258,14 +258,14 @@ async function requestImpl(target: string | URL, body: Body, {configuration, hea
258258
const socketTimeout = configuration.get(`httpTimeout`);
259259
const retry = configuration.get(`httpRetry`);
260260
const rejectUnauthorized = configuration.get(`enableStrictSsl`);
261-
const caFilePath = networkConfig.caFilePath;
261+
const httpsCaFilePath = networkConfig.httpsCaFilePath;
262262
const httpsCertFilePath = networkConfig.httpsCertFilePath;
263263
const httpsKeyFilePath = networkConfig.httpsKeyFilePath;
264264

265265
const {default: got} = await import(`got`);
266266

267-
const certificateAuthority = caFilePath
268-
? await getCachedFile(caFilePath)
267+
const certificateAuthority = httpsCaFilePath
268+
? await getCachedFile(httpsCaFilePath)
269269
: undefined;
270270
const certificate = httpsCertFilePath
271271
? await getCachedFile(httpsCertFilePath)

0 commit comments

Comments
 (0)