Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9972c89

Browse files
ianschmitzjmmorris
authored andcommitted
Bump version of Verdaccio (facebook#7787)
1 parent a6d7c57 commit 9972c89

File tree

7 files changed

+516
-521
lines changed

7 files changed

+516
-521
lines changed

azure-pipelines-test-job.yml

-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@ parameters:
88
configurations:
99
LinuxNode10: { vmImage: 'ubuntu-16.04', nodeVersion: 10.x }
1010
LinuxNode12: { vmImage: 'ubuntu-16.04', nodeVersion: 12.x }
11-
# WindowsNode10: { vmImage: 'windows-latest', nodeVersion: 10.x }
12-
# WindowsNode12: { vmImage: 'windows-latest', nodeVersion: 12.x }
1311

1412
jobs:
1513
- job: ${{ parameters.name }}

azure-pipelines.yml

+4-6
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@ variables:
1212
NPM_CONFIG_CACHE: $(Build.SourcesDirectory)/../npm-cache
1313
# Sets TEMP to be on the same drive as the cloned source on Windows. This avoids test scripts that "cd" into a directory under TEMP from failing because this directory is on a different drive from the current directory.
1414
VSTS_OVERWRITE_TEMP: True
15-
# Override Verdaccio package to use. This is temporary and is needed to avoid socket timeouts on hosted Windows agent (on Azure). This also changes Verdaccio to return a 503 (service unavailable) instead of a 404 (not found) when the connection to the uplink timesout.
16-
VERDACCIO_PACKAGE: https://github.com/willsmythe/verdaccio/releases/download/create-react-app/verdaccio-4.0.0-alpha.8.tgz
1715
CRA_INTERNAL_TEST: true
1816

1917
# ******************************************************************************
@@ -59,10 +57,10 @@ jobs:
5957
configurations:
6058
LinuxNode10: { vmImage: 'ubuntu-16.04', nodeVersion: 10.x }
6159
LinuxNode12: { vmImage: 'ubuntu-16.04', nodeVersion: 12.x }
62-
# WindowsNode10: { vmImage: 'windows-latest', nodeVersion: 10.x }
63-
# WindowsNode12: { vmImage: 'windows-latest', nodeVersion: 12.x }
64-
MacNode10: { vmImage: 'macOS-latest', nodeVersion: 10.x }
65-
MacNode12: { vmImage: 'macOS-latest', nodeVersion: 12.x }
60+
WindowsNode10: { vmImage: 'windows-2019', nodeVersion: 10.x }
61+
WindowsNode12: { vmImage: 'windows-2019', nodeVersion: 12.x }
62+
MacNode10: { vmImage: 'macOS-10.15', nodeVersion: 10.x }
63+
MacNode12: { vmImage: 'macOS-10.15', nodeVersion: 12.x }
6664

6765
# ******************************************************************************
6866
# Old Node test suite

docusaurus/docs/deployment.md

+503-503
Large diffs are not rendered by default.

docusaurus/docs/measuring-performance.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ reportWebVitals(sendToAnalytics);
4949
> **Note:** If you use Google Analytics, use the `id` value to make it easier to construct metric distributions manually (to calculate percentiles, etc…).
5050
>
5151
> ```js
52-
> function sendToAnalytics({id, name, value}) {
52+
> function sendToAnalytics({ id, name, value }) {
5353
> ga('send', 'event', {
5454
> eventCategory: 'Web Vitals',
5555
> eventAction: name,
@@ -58,7 +58,7 @@ reportWebVitals(sendToAnalytics);
5858
> nonInteraction: true, // avoids affecting bounce rate
5959
> });
6060
> }
61-
>
61+
>
6262
> reportWebVitals(sendToAnalytics);
6363
> ```
6464
>
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
const reportWebVitals = (onPerfEntry) => {
1+
const reportWebVitals = onPerfEntry => {
22
if (onPerfEntry && onPerfEntry instanceof Function) {
33
import('web-vitals').then(({ getCLS, getFID, getFCP, getLCP, getTTFB }) => {
4-
getCLS(onPerfEntry);
4+
getCLS(onPerfEntry);
55
getFID(onPerfEntry);
66
getFCP(onPerfEntry);
77
getLCP(onPerfEntry);
88
getTTFB(onPerfEntry);
99
});
1010
}
11-
}
11+
};
1212

1313
export default reportWebVitals;

tasks/local-registry.sh

+1-4
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
custom_registry_url=http://localhost:4873
44
original_npm_registry_url=`npm get registry`
55
original_yarn_registry_url=`yarn config get registry`
6-
default_verdaccio_package=verdaccio@3.8.2
6+
default_verdaccio_package=verdaccio@^4.5.1
77

88
function startLocalRegistry {
99
# Start local registry
@@ -16,9 +16,6 @@ function startLocalRegistry {
1616
# Set registry to local registry
1717
npm set registry "$custom_registry_url"
1818
yarn config set registry "$custom_registry_url"
19-
20-
# Login so we can publish packages
21-
(cd && npx [email protected] -u user -p password -e [email protected] -r "$custom_registry_url")
2219
}
2320

2421
function stopLocalRegistry {

tasks/verdaccio.yaml

+3-1
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ uplinks:
2525
timeout: 60s
2626
agent_options:
2727
keepAlive: true
28+
# Avoid exceeding the max sockets that are allocated per VM.
29+
# https://docs.microsoft.com/en-us/azure/app-service/app-service-web-nodejs-best-practices-and-troubleshoot-guide#my-node-application-is-making-excessive-outbound-calls
2830
maxSockets: 40
2931
maxFreeSockets: 10
3032

@@ -52,7 +54,7 @@ packages:
5254

5355
# log settings
5456
logs:
55-
- {type: stdout, format: pretty, level: warn}
57+
- { type: stdout, format: pretty, level: warn }
5658
#- {type: file, path: verdaccio.log, level: info}
5759

5860
# See https://github.com/verdaccio/verdaccio/issues/301

0 commit comments

Comments
 (0)