BREAKING(text/unstable): move to-constant-case module to unstable-to-constant-case (#5952)

This commit is contained in:
Asher Gomez 2024-09-12 14:51:21 +10:00 committed by GitHub
parent 6011e6bcb0
commit 2d8031c785
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 4 additions and 4 deletions

View File

@ -78,6 +78,7 @@ const ENTRY_POINTS = [
"../streams/unstable_to_lines.ts",
"../tar/mod.ts",
"../text/mod.ts",
"../text/unstable_to_constant_case.ts",
"../testing/bdd.ts",
"../testing/mock.ts",
"../testing/snapshot.ts",

View File

@ -8,7 +8,7 @@
"./levenshtein-distance": "./levenshtein_distance.ts",
"./slugify": "./slugify.ts",
"./to-camel-case": "./to_camel_case.ts",
"./to-constant-case": "./to_constant_case.ts",
"./unstable-to-constant-case": "./unstable_to_constant_case.ts",
"./to-kebab-case": "./to_kebab_case.ts",
"./to-pascal-case": "./to_pascal_case.ts",
"./to-snake-case": "./to_snake_case.ts",

View File

@ -24,7 +24,6 @@ export * from "./closest_string.ts";
export * from "./compare_similarity.ts";
export * from "./word_similarity_sort.ts";
export * from "./to_camel_case.ts";
export * from "./to_constant_case.ts";
export * from "./to_kebab_case.ts";
export * from "./to_pascal_case.ts";
export * from "./to_snake_case.ts";

View File

@ -10,7 +10,7 @@ import { splitToWords } from "./_util.ts";
*
* @example Usage
* ```ts
* import { toConstantCase } from "@std/text/to-constant-case";
* import { toConstantCase } from "@std/text/unstable-to-constant-case";
* import { assertEquals } from "@std/assert/equals";
*
* assertEquals(toConstantCase("deno is awesome"), "DENO_IS_AWESOME");

View File

@ -1,7 +1,7 @@
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
import { assertEquals } from "@std/assert";
import { toConstantCase } from "./mod.ts";
import { toConstantCase } from "./unstable_to_constant_case.ts";
Deno.test("toConstantCase() converts a single word", () => {
const input = "shruberry";