BREAKING(text/unstable): move slugify module to unstable-slugify (#5953)

This commit is contained in:
Asher Gomez 2024-09-12 16:36:08 +10:00 committed by GitHub
parent 04ad602c13
commit 0c0d227e58
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 4 additions and 4 deletions

View File

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

View File

@ -6,7 +6,7 @@
"./closest-string": "./closest_string.ts",
"./compare-similarity": "./compare_similarity.ts",
"./levenshtein-distance": "./levenshtein_distance.ts",
"./slugify": "./slugify.ts",
"./unstable-slugify": "./unstable_slugify.ts",
"./to-camel-case": "./to_camel_case.ts",
"./unstable-to-constant-case": "./unstable_to_constant_case.ts",
"./to-kebab-case": "./to_kebab_case.ts",

View File

@ -27,4 +27,3 @@ export * from "./to_camel_case.ts";
export * from "./to_kebab_case.ts";
export * from "./to_pascal_case.ts";
export * from "./to_snake_case.ts";
export * from "./slugify.ts";

View File

@ -7,7 +7,7 @@
*
* @example Usage
* ```ts
* import { slugify } from "@std/text/slugify";
* import { slugify } from "@std/text/unstable-slugify";
* import { assertEquals } from "@std/assert";
*
* assertEquals(slugify("hello world"), "hello-world");

View File

@ -1,6 +1,6 @@
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
import { assertEquals } from "@std/assert/equals";
import { slugify } from "./slugify.ts";
import { slugify } from "./unstable_slugify.ts";
Deno.test("slugify() returns kebabcase", () => {
assertEquals(slugify("hello world"), "hello-world");