mirror of
https://github.com/denoland/std.git
synced 2024-11-21 20:50:22 +00:00
BREAKING(text/unstable): move to-constant-case
module to unstable-to-constant-case
(#5952)
This commit is contained in:
parent
6011e6bcb0
commit
2d8031c785
@ -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",
|
||||
|
@ -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",
|
||||
|
@ -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";
|
||||
|
@ -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");
|
@ -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";
|
Loading…
Reference in New Issue
Block a user