Skip to content

Commit acd1cba

Browse files
committed
polish: s/DO NOT USE THIS/ Ignored
Followup to #888, this replaces some more scary capitals with a more chill word.
1 parent b08676a commit acd1cba

File tree

3 files changed

+19
-10
lines changed

3 files changed

+19
-10
lines changed

.changeset/little-colts-ring.md

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
"wrangler": patch
3+
---
4+
5+
polish: s/DO NOT USE THIS/ Ignored
6+
7+
Followup to https://github.com/cloudflare/wrangler2/pull/888, this replaces some more scary capitals with a more chill word.

packages/wrangler/src/__tests__/configuration.test.ts

+5-5
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ describe("normalizeAndValidateConfig()", () => {
157157
expect(diagnostics.hasErrors()).toBe(false);
158158
expect(diagnostics.renderWarnings()).toMatchInlineSnapshot(`
159159
"Processing wrangler configuration:
160-
- 😶 UNUSED: \\"miniflare\\":
160+
- 😶 Ignored: \\"miniflare\\":
161161
Wrangler does not use configuration in the \`miniflare\` section. Unless you are using Miniflare directly you can remove this section."
162162
`);
163163
});
@@ -571,10 +571,10 @@ describe("normalizeAndValidateConfig()", () => {
571571
expect(diagnostics.hasWarnings()).toBe(true);
572572
expect(diagnostics.renderWarnings()).toMatchInlineSnapshot(`
573573
"Processing wrangler configuration:
574-
- Deprecation: \\"type\\":
575-
DO NOT USE THIS. Most common features now work out of the box with wrangler, including modules, jsx, typescript, etc. If you need anything more, use a custom build.
576-
- Deprecation: \\"webpack_config\\":
577-
DO NOT USE THIS. Most common features now work out of the box with wrangler, including modules, jsx, typescript, etc. If you need anything more, use a custom build."
574+
- 😶 Ignored: \\"type\\":
575+
Most common features now work out of the box with wrangler, including modules, jsx, typescript, etc. If you need anything more, use a custom build.
576+
- 😶 Ignored: \\"webpack_config\\":
577+
Most common features now work out of the box with wrangler, including modules, jsx, typescript, etc. If you need anything more, use a custom build."
578578
`);
579579
});
580580
});

packages/wrangler/src/config/validation.ts

+7-5
Original file line numberDiff line numberDiff line change
@@ -65,23 +65,25 @@ export function normalizeAndValidateConfig(
6565
"miniflare",
6666
"Wrangler does not use configuration in the `miniflare` section. Unless you are using Miniflare directly you can remove this section.",
6767
true,
68-
"😶 UNUSED"
68+
"😶 Ignored"
6969
);
7070

7171
deprecated(
7272
diagnostics,
7373
rawConfig,
7474
"type",
75-
"DO NOT USE THIS. Most common features now work out of the box with wrangler, including modules, jsx, typescript, etc. If you need anything more, use a custom build.",
76-
true
75+
"Most common features now work out of the box with wrangler, including modules, jsx, typescript, etc. If you need anything more, use a custom build.",
76+
true,
77+
"😶 Ignored"
7778
);
7879

7980
deprecated(
8081
diagnostics,
8182
rawConfig,
8283
"webpack_config",
83-
"DO NOT USE THIS. Most common features now work out of the box with wrangler, including modules, jsx, typescript, etc. If you need anything more, use a custom build.",
84-
true
84+
"Most common features now work out of the box with wrangler, including modules, jsx, typescript, etc. If you need anything more, use a custom build.",
85+
true,
86+
"😶 Ignored"
8587
);
8688

8789
validateOptionalProperty(

0 commit comments

Comments
 (0)