Skip to content

Commit 7d4d53a

Browse files
authoredOct 6, 2021
Update all references to v2.parceljs.org to just parceljs.org (#7029)
1 parent 91de5c0 commit 7d4d53a

File tree

16 files changed

+53
-53
lines changed

16 files changed

+53
-53
lines changed
 

‎packages/core/core/src/requests/ParcelConfigRequest.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ async function processMap(
308308
},
309309
],
310310
documentationURL:
311-
'https://v2.parceljs.org/features/dependency-resolution/#url-schemes',
311+
'https://parceljs.org/features/dependency-resolution/#url-schemes',
312312
},
313313
});
314314
}

‎packages/core/core/src/requests/TargetRequest.js

+7-7
Original file line numberDiff line numberDiff line change
@@ -593,7 +593,7 @@ export class TargetResolver {
593593
`The "${targetName}" field is meant for libraries. If you meant to output a ${ext} file, either remove the "${targetName}" field or choose a different target name.`,
594594
],
595595
documentationURL:
596-
'https://v2.parceljs.org/features/targets/#library-targets',
596+
'https://parceljs.org/features/targets/#library-targets',
597597
},
598598
});
599599
}
@@ -625,7 +625,7 @@ export class TargetResolver {
625625
`The "${targetName}" field is meant for libraries. The outputFormat must be either "commonjs" or "esmodule". Either change or remove the declared outputFormat.`,
626626
],
627627
documentationURL:
628-
'https://v2.parceljs.org/features/targets/#library-targets',
628+
'https://parceljs.org/features/targets/#library-targets',
629629
},
630630
});
631631
}
@@ -684,7 +684,7 @@ export class TargetResolver {
684684
`Either change the output file extension to .mjs, add "type": "module" to package.json, or remove the declared outputFormat.`,
685685
],
686686
documentationURL:
687-
'https://v2.parceljs.org/features/targets/#library-targets',
687+
'https://parceljs.org/features/targets/#library-targets',
688688
},
689689
});
690690
}
@@ -716,7 +716,7 @@ export class TargetResolver {
716716
`The "${targetName}" target is meant for libraries. Either remove the "scopeHoist" option, or use a different target name.`,
717717
],
718718
documentationURL:
719-
'https://v2.parceljs.org/features/targets/#library-targets',
719+
'https://parceljs.org/features/targets/#library-targets',
720720
},
721721
});
722722
}
@@ -859,7 +859,7 @@ export class TargetResolver {
859859
],
860860
hints: [`Either remove the "scopeHoist" or "isLibrary" option.`],
861861
documentationURL:
862-
'https://v2.parceljs.org/features/targets/#library-targets',
862+
'https://parceljs.org/features/targets/#library-targets',
863863
},
864864
});
865865
}
@@ -1027,7 +1027,7 @@ export class TargetResolver {
10271027
)}.`,
10281028
],
10291029
documentationURL:
1030-
'https://v2.parceljs.org/features/targets/#library-targets',
1030+
'https://parceljs.org/features/targets/#library-targets',
10311031
},
10321032
});
10331033
}
@@ -1253,7 +1253,7 @@ function assertTargetsAreNotEntries(
12531253
: '') +
12541254
`Change the "${target.name}" field to point to an output file rather than your source code.`,
12551255
],
1256-
documentationURL: 'https://v2.parceljs.org/features/targets/',
1256+
documentationURL: 'https://parceljs.org/features/targets/',
12571257
},
12581258
});
12591259
}

‎packages/core/core/test/ParcelConfig.test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ describe('ParcelConfig', () => {
312312
},
313313
],
314314
documentationURL:
315-
'https://v2.parceljs.org/features/dependency-resolution/#url-schemes',
315+
'https://parceljs.org/features/dependency-resolution/#url-schemes',
316316
},
317317
],
318318
},

‎packages/core/core/test/TargetRequest.test.js

+7-7
Original file line numberDiff line numberDiff line change
@@ -737,7 +737,7 @@ describe('TargetResolver', () => {
737737
'The "main" field is meant for libraries. If you meant to output a .html file, either remove the "main" field or choose a different target name.',
738738
],
739739
documentationURL:
740-
'https://v2.parceljs.org/features/targets/#library-targets',
740+
'https://parceljs.org/features/targets/#library-targets',
741741
},
742742
],
743743
});
@@ -779,7 +779,7 @@ describe('TargetResolver', () => {
779779
'The "main" field is meant for libraries. The outputFormat must be either "commonjs" or "esmodule". Either change or remove the declared outputFormat.',
780780
],
781781
documentationURL:
782-
'https://v2.parceljs.org/features/targets/#library-targets',
782+
'https://parceljs.org/features/targets/#library-targets',
783783
},
784784
],
785785
});
@@ -832,7 +832,7 @@ describe('TargetResolver', () => {
832832
'Either change the output file extension to .mjs, add "type": "module" to package.json, or remove the declared outputFormat.',
833833
],
834834
documentationURL:
835-
'https://v2.parceljs.org/features/targets/#library-targets',
835+
'https://parceljs.org/features/targets/#library-targets',
836836
},
837837
],
838838
});
@@ -885,7 +885,7 @@ describe('TargetResolver', () => {
885885
'Either remove the target\'s declared "outputFormat" or change the extension to .mjs or .js.',
886886
],
887887
documentationURL:
888-
'https://v2.parceljs.org/features/targets/#library-targets',
888+
'https://parceljs.org/features/targets/#library-targets',
889889
},
890890
],
891891
});
@@ -938,7 +938,7 @@ describe('TargetResolver', () => {
938938
'Either remove the target\'s declared "outputFormat" or change the extension to .cjs or .js.',
939939
],
940940
documentationURL:
941-
'https://v2.parceljs.org/features/targets/#library-targets',
941+
'https://parceljs.org/features/targets/#library-targets',
942942
},
943943
],
944944
});
@@ -979,7 +979,7 @@ describe('TargetResolver', () => {
979979
'The "main" target is meant for libraries. Either remove the "scopeHoist" option, or use a different target name.',
980980
],
981981
documentationURL:
982-
'https://v2.parceljs.org/features/targets/#library-targets',
982+
'https://parceljs.org/features/targets/#library-targets',
983983
},
984984
],
985985
});
@@ -1029,7 +1029,7 @@ describe('TargetResolver', () => {
10291029
],
10301030
hints: ['Either remove the "scopeHoist" or "isLibrary" option.'],
10311031
documentationURL:
1032-
'https://v2.parceljs.org/features/targets/#library-targets',
1032+
'https://parceljs.org/features/targets/#library-targets',
10331033
},
10341034
],
10351035
});

‎packages/core/integration-tests/test/babel.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -613,7 +613,7 @@ describe('babel', function() {
613613
md`Delete __${path.relative(process.cwd(), babelrcPath)}__`,
614614
],
615615
documentationURL:
616-
'https://v2.parceljs.org/languages/javascript/#default-presets',
616+
'https://parceljs.org/languages/javascript/#default-presets',
617617
},
618618
{
619619
origin: '@parcel/transformer-babel',
@@ -641,7 +641,7 @@ describe('babel', function() {
641641
"Either remove __@babel/preset-env__ to use Parcel's builtin transpilation, or replace with __@parcel/babel-preset-env__",
642642
],
643643
documentationURL:
644-
'https://v2.parceljs.org/languages/javascript/#custom-plugins',
644+
'https://parceljs.org/languages/javascript/#custom-plugins',
645645
},
646646
],
647647
},
@@ -697,7 +697,7 @@ describe('babel', function() {
697697
)}__`,
698698
],
699699
documentationURL:
700-
'https://v2.parceljs.org/languages/javascript/#default-presets',
700+
'https://parceljs.org/languages/javascript/#default-presets',
701701
},
702702
],
703703
},

‎packages/core/integration-tests/test/html.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1320,7 +1320,7 @@ describe('html', function() {
13201320
],
13211321
hints: ['Add the type="module" attribute to the <script> tag.'],
13221322
documentationURL:
1323-
'https://v2.parceljs.org/languages/javascript/#classic-scripts',
1323+
'https://parceljs.org/languages/javascript/#classic-scripts',
13241324
},
13251325
]);
13261326

@@ -1601,7 +1601,7 @@ describe('html', function() {
16011601
],
16021602
hints: ['Add the type="module" attribute to the <script> tag.'],
16031603
documentationURL:
1604-
'https://v2.parceljs.org/languages/javascript/#classic-scripts',
1604+
'https://parceljs.org/languages/javascript/#classic-scripts',
16051605
},
16061606
]);
16071607

‎packages/core/integration-tests/test/integration/webextension/manifest.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"default_popup": "src/popup.html"
2323
},
2424
"content_scripts": [{
25-
"matches": ["https://v2.parceljs.org/*"],
25+
"matches": ["https://parceljs.org/*"],
2626
"js": ["src/content.js"],
2727
"css": ["src/content.css"]
2828
}],

‎packages/core/integration-tests/test/javascript.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -1262,7 +1262,7 @@ describe('javascript', function() {
12621262
"Add {type: 'module'} as a second argument to the Worker constructor.",
12631263
],
12641264
documentationURL:
1265-
'https://v2.parceljs.org/languages/javascript/#classic-scripts',
1265+
'https://parceljs.org/languages/javascript/#classic-scripts',
12661266
},
12671267
]);
12681268
}
@@ -1367,7 +1367,7 @@ describe('javascript', function() {
13671367
: 'navigator.serviceWorker.register() call.'),
13681368
],
13691369
documentationURL:
1370-
'https://v2.parceljs.org/languages/javascript/#classic-script-workers',
1370+
'https://parceljs.org/languages/javascript/#classic-script-workers',
13711371
},
13721372
]);
13731373
}
@@ -1585,7 +1585,7 @@ describe('javascript', function() {
15851585
"Add {type: 'module'} as a second argument to the navigator.serviceWorker.register() call.",
15861586
],
15871587
documentationURL:
1588-
'https://v2.parceljs.org/languages/javascript/#classic-scripts',
1588+
'https://parceljs.org/languages/javascript/#classic-scripts',
15891589
},
15901590
]);
15911591
}

‎packages/core/parcel/README.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<p align="center">
2-
<a href="https://v2.parceljs.org/" target="_blank">
2+
<a href="https://parceljs.org/" target="_blank">
33
<img alt="Parcel" src="https://user-images.githubusercontent.com/19409/135924939-03845d0b-e7bb-414b-89b6-e627dfa9f614.png" width="749">
44
</a>
55
</p>
@@ -25,13 +25,13 @@ Parcel is a zero configuration build tool for the web. It combines a great out-o
2525

2626
See the following guides in our documentation on how to get started with Parcel.
2727

28-
* [Building a webapp with Parcel](https://v2.parceljs.org/getting-started/webapp/)
29-
* [Building a library with Parcel](https://v2.parceljs.org/getting-started/library/)
30-
* [Migrating from Parcel v1](https://v2.parceljs.org/getting-started/migration/)
28+
* [Building a webapp with Parcel](https://parceljs.org/getting-started/webapp/)
29+
* [Building a library with Parcel](https://parceljs.org/getting-started/library/)
30+
* [Migrating from Parcel v1](https://parceljs.org/getting-started/migration/)
3131

3232
## Documentation
3333

34-
Read the docs at https://v2.parceljs.org/docs/.
34+
Read the docs at https://parceljs.org/docs/.
3535

3636
## Community
3737

‎packages/packagers/css/src/CSSPackager.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ async function processCSSModule(
177177
hints: [
178178
`Instead do: import * as style from "${defaultImport.specifier}";`,
179179
],
180-
documentationURL: 'https://v2.parceljs.org/languages/css/#tree-shaking',
180+
documentationURL: 'https://parceljs.org/languages/css/#tree-shaking',
181181
});
182182
}
183183
}

‎packages/packagers/xml/src/XMLPackager.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export default (new Packager({
2929
let dom = parser.parseFromString(code);
3030

3131
let inlineElements = dom.getElementsByTagNameNS(
32-
'https://v2.parceljs.org',
32+
'https://parceljs.org',
3333
'inline',
3434
);
3535
if (inlineElements.length > 0) {

‎packages/transformers/babel/src/config.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ async function warnOnRedundantPlugins(fs, babelConfig, logger) {
342342
],
343343
hints: [md`Delete __${filePath}__`],
344344
documentationURL:
345-
'https://v2.parceljs.org/languages/javascript/#default-presets',
345+
'https://parceljs.org/languages/javascript/#default-presets',
346346
});
347347
} else if (foundRedundantPresets.size > 0) {
348348
diagnostics.push({
@@ -363,7 +363,7 @@ async function warnOnRedundantPlugins(fs, babelConfig, logger) {
363363
],
364364
hints: [md`Remove the above presets from __${filePath}__`],
365365
documentationURL:
366-
'https://v2.parceljs.org/languages/javascript/#default-presets',
366+
'https://parceljs.org/languages/javascript/#default-presets',
367367
});
368368
}
369369

@@ -385,7 +385,7 @@ async function warnOnRedundantPlugins(fs, babelConfig, logger) {
385385
`Either remove __@babel/preset-env__ to use Parcel's builtin transpilation, or replace with __@parcel/babel-preset-env__`,
386386
],
387387
documentationURL:
388-
'https://v2.parceljs.org/languages/javascript/#custom-plugins',
388+
'https://parceljs.org/languages/javascript/#custom-plugins',
389389
});
390390
}
391391

‎packages/transformers/js/core/src/dependency_collector.rs

+5-5
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ impl<'a> DependencyCollector<'a> {
208208
show_environment: true,
209209
severity: DiagnosticSeverity::Error,
210210
documentation_url: Some(String::from(
211-
"https://v2.parceljs.org/languages/javascript/#classic-scripts",
211+
"https://parceljs.org/languages/javascript/#classic-scripts",
212212
)),
213213
});
214214
}
@@ -394,7 +394,7 @@ impl<'a> Fold for DependencyCollector<'a> {
394394
show_environment: self.config.source_type == SourceType::Script,
395395
severity: DiagnosticSeverity::Error,
396396
documentation_url: Some(String::from(
397-
"https://v2.parceljs.org/languages/javascript/#classic-script-workers",
397+
"https://parceljs.org/languages/javascript/#classic-script-workers",
398398
)),
399399
});
400400
}
@@ -553,7 +553,7 @@ impl<'a> Fold for DependencyCollector<'a> {
553553
let (msg, docs) = if kind == DependencyKind::ServiceWorker {
554554
(
555555
"Registering service workers with a string literal is not supported.",
556-
"https://v2.parceljs.org/languages/javascript/#service-workers",
556+
"https://parceljs.org/languages/javascript/#service-workers",
557557
)
558558
} else {
559559
(
@@ -741,7 +741,7 @@ impl<'a> Fold for DependencyCollector<'a> {
741741
show_environment: false,
742742
severity: DiagnosticSeverity::Error,
743743
documentation_url: Some(String::from(
744-
"https://v2.parceljs.org/languages/javascript/#web-workers",
744+
"https://parceljs.org/languages/javascript/#web-workers",
745745
)),
746746
});
747747
return node;
@@ -1228,7 +1228,7 @@ impl<'a> DependencyCollector<'a> {
12281228
show_environment: true,
12291229
severity: DiagnosticSeverity::Error,
12301230
documentation_url: Some(String::from(
1231-
"https://v2.parceljs.org/languages/javascript/#classic-scripts",
1231+
"https://parceljs.org/languages/javascript/#classic-scripts",
12321232
)),
12331233
})
12341234
}

‎packages/transformers/js/core/src/utils.rs

+11-11
Original file line numberDiff line numberDiff line change
@@ -267,47 +267,47 @@ impl BailoutReason {
267267
match self {
268268
BailoutReason::NonTopLevelRequire => (
269269
"Conditional or non-top-level `require()` call. This causes the resolved module and all dependendencies to be wrapped.",
270-
"https://v2.parceljs.org/features/scope-hoisting/#avoid-conditional-require()"
270+
"https://parceljs.org/features/scope-hoisting/#avoid-conditional-require()"
271271
),
272272
BailoutReason::NonStaticDestructuring => (
273273
"Non-static destructuring of `require` or dynamic `import()`. This causes all exports of the resolved module to be included.",
274-
"https://v2.parceljs.org/features/scope-hoisting/#commonjs"
274+
"https://parceljs.org/features/scope-hoisting/#commonjs"
275275
),
276276
BailoutReason::TopLevelReturn => (
277277
"Module contains a top-level `return` statement. This causes the module to be wrapped in a function and tree shaking to be disabled.",
278-
"https://v2.parceljs.org/features/scope-hoisting/#avoid-top-level-return"
278+
"https://parceljs.org/features/scope-hoisting/#avoid-top-level-return"
279279
),
280280
BailoutReason::Eval => (
281281
"Module contains usage of `eval`. This causes the module to be wrapped in a function and minification to be disabled.",
282-
"https://v2.parceljs.org/features/scope-hoisting/#avoid-eval"
282+
"https://parceljs.org/features/scope-hoisting/#avoid-eval"
283283
),
284284
BailoutReason::NonStaticExports => (
285285
"Non-static access of CommonJS `exports` object. This causes tree shaking to be disabled for the module.",
286-
"https://v2.parceljs.org/features/scope-hoisting/#commonjs"
286+
"https://parceljs.org/features/scope-hoisting/#commonjs"
287287
),
288288
BailoutReason::FreeModule => (
289289
"Unknown usage of CommonJS `module` object. This causes the module to be wrapped, and tree shaking to be disabled.",
290-
"https://v2.parceljs.org/features/scope-hoisting/#commonjs"
290+
"https://parceljs.org/features/scope-hoisting/#commonjs"
291291
),
292292
BailoutReason::FreeExports => (
293293
"Unknown usage of CommonJS `exports` object. This causes tree shaking to be disabled.",
294-
"https://v2.parceljs.org/features/scope-hoisting/#commonjs"
294+
"https://parceljs.org/features/scope-hoisting/#commonjs"
295295
),
296296
BailoutReason::ExportsReassignment => (
297297
"Module contains a reassignment of the CommonJS `exports` object. This causes the module to be wrapped and tree-shaking to be disabled.",
298-
"https://v2.parceljs.org/features/scope-hoisting/#avoid-module-and-exports-re-assignment"
298+
"https://parceljs.org/features/scope-hoisting/#avoid-module-and-exports-re-assignment"
299299
),
300300
BailoutReason::ModuleReassignment => (
301301
"Module contains a reassignment of the CommonJS `module` object. This causes the module to be wrapped and tree-shaking to be disabled.",
302-
"https://v2.parceljs.org/features/scope-hoisting/#avoid-module-and-exports-re-assignment"
302+
"https://parceljs.org/features/scope-hoisting/#avoid-module-and-exports-re-assignment"
303303
),
304304
BailoutReason::NonStaticDynamicImport => (
305305
"Unknown dynamic import usage. This causes tree shaking to be disabled for the resolved module.",
306-
"https://v2.parceljs.org/features/scope-hoisting/#dynamic-imports"
306+
"https://parceljs.org/features/scope-hoisting/#dynamic-imports"
307307
),
308308
BailoutReason::NonStaticAccess => (
309309
"Non-static access of an `import` or `require`. This causes tree shaking to be disabled for the resolved module.",
310-
"https://v2.parceljs.org/features/scope-hoisting/#dynamic-member-accesses"
310+
"https://parceljs.org/features/scope-hoisting/#dynamic-member-accesses"
311311
),
312312
}
313313
}

‎packages/transformers/xml/src/atom.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ export function content(
5050
if (contents) {
5151
let parcelKey = `${asset.id}:${parts.length}`;
5252
let el = element.ownerDocument.createElementNS(
53-
'https://v2.parceljs.org',
53+
'https://parceljs.org',
5454
'inline',
5555
);
5656
el.setAttribute('key', parcelKey);

‎packages/transformers/xml/src/rss.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ export function description(
4444
}
4545

4646
let el = element.ownerDocument.createElementNS(
47-
'https://v2.parceljs.org',
47+
'https://parceljs.org',
4848
'inline',
4949
);
5050
el.setAttribute('key', parcelKey);

0 commit comments

Comments
 (0)
Please sign in to comment.