mirror of
https://github.com/denoland/std.git
synced 2024-11-21 20:50:22 +00:00
BREAKING(text/unstable): move slugify
module to unstable-slugify
(#5953)
This commit is contained in:
parent
04ad602c13
commit
0c0d227e58
@ -86,6 +86,7 @@ const ENTRY_POINTS = [
|
|||||||
"../streams/unstable_to_lines.ts",
|
"../streams/unstable_to_lines.ts",
|
||||||
"../tar/mod.ts",
|
"../tar/mod.ts",
|
||||||
"../text/mod.ts",
|
"../text/mod.ts",
|
||||||
|
"../text/unstable_slugify.ts",
|
||||||
"../text/unstable_to_constant_case.ts",
|
"../text/unstable_to_constant_case.ts",
|
||||||
"../testing/bdd.ts",
|
"../testing/bdd.ts",
|
||||||
"../testing/mock.ts",
|
"../testing/mock.ts",
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
"./closest-string": "./closest_string.ts",
|
"./closest-string": "./closest_string.ts",
|
||||||
"./compare-similarity": "./compare_similarity.ts",
|
"./compare-similarity": "./compare_similarity.ts",
|
||||||
"./levenshtein-distance": "./levenshtein_distance.ts",
|
"./levenshtein-distance": "./levenshtein_distance.ts",
|
||||||
"./slugify": "./slugify.ts",
|
"./unstable-slugify": "./unstable_slugify.ts",
|
||||||
"./to-camel-case": "./to_camel_case.ts",
|
"./to-camel-case": "./to_camel_case.ts",
|
||||||
"./unstable-to-constant-case": "./unstable_to_constant_case.ts",
|
"./unstable-to-constant-case": "./unstable_to_constant_case.ts",
|
||||||
"./to-kebab-case": "./to_kebab_case.ts",
|
"./to-kebab-case": "./to_kebab_case.ts",
|
||||||
|
@ -27,4 +27,3 @@ export * from "./to_camel_case.ts";
|
|||||||
export * from "./to_kebab_case.ts";
|
export * from "./to_kebab_case.ts";
|
||||||
export * from "./to_pascal_case.ts";
|
export * from "./to_pascal_case.ts";
|
||||||
export * from "./to_snake_case.ts";
|
export * from "./to_snake_case.ts";
|
||||||
export * from "./slugify.ts";
|
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
*
|
*
|
||||||
* @example Usage
|
* @example Usage
|
||||||
* ```ts
|
* ```ts
|
||||||
* import { slugify } from "@std/text/slugify";
|
* import { slugify } from "@std/text/unstable-slugify";
|
||||||
* import { assertEquals } from "@std/assert";
|
* import { assertEquals } from "@std/assert";
|
||||||
*
|
*
|
||||||
* assertEquals(slugify("hello world"), "hello-world");
|
* assertEquals(slugify("hello world"), "hello-world");
|
@ -1,6 +1,6 @@
|
|||||||
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
|
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
|
||||||
import { assertEquals } from "@std/assert/equals";
|
import { assertEquals } from "@std/assert/equals";
|
||||||
import { slugify } from "./slugify.ts";
|
import { slugify } from "./unstable_slugify.ts";
|
||||||
|
|
||||||
Deno.test("slugify() returns kebabcase", () => {
|
Deno.test("slugify() returns kebabcase", () => {
|
||||||
assertEquals(slugify("hello world"), "hello-world");
|
assertEquals(slugify("hello world"), "hello-world");
|
Loading…
Reference in New Issue
Block a user