From 0c0d227e589e9a231af235a9a4db84ab66be3f71 Mon Sep 17 00:00:00 2001 From: Asher Gomez Date: Thu, 12 Sep 2024 16:36:08 +1000 Subject: [PATCH] BREAKING(text/unstable): move `slugify` module to `unstable-slugify` (#5953) --- _tools/check_docs.ts | 1 + text/deno.json | 2 +- text/mod.ts | 1 - text/{slugify.ts => unstable_slugify.ts} | 2 +- text/{slugify_test.ts => unstable_slugify_test.ts} | 2 +- 5 files changed, 4 insertions(+), 4 deletions(-) rename text/{slugify.ts => unstable_slugify.ts} (92%) rename text/{slugify_test.ts => unstable_slugify_test.ts} (97%) diff --git a/_tools/check_docs.ts b/_tools/check_docs.ts index 4e4c8ad1f..8f6cb011e 100644 --- a/_tools/check_docs.ts +++ b/_tools/check_docs.ts @@ -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", diff --git a/text/deno.json b/text/deno.json index 94aca07b0..6fcf10e7d 100644 --- a/text/deno.json +++ b/text/deno.json @@ -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", diff --git a/text/mod.ts b/text/mod.ts index 85de7aa75..41914de6e 100644 --- a/text/mod.ts +++ b/text/mod.ts @@ -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"; diff --git a/text/slugify.ts b/text/unstable_slugify.ts similarity index 92% rename from text/slugify.ts rename to text/unstable_slugify.ts index ee24c7897..df970f65d 100644 --- a/text/slugify.ts +++ b/text/unstable_slugify.ts @@ -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"); diff --git a/text/slugify_test.ts b/text/unstable_slugify_test.ts similarity index 97% rename from text/slugify_test.ts rename to text/unstable_slugify_test.ts index 499016b7a..a16815b53 100644 --- a/text/slugify_test.ts +++ b/text/unstable_slugify_test.ts @@ -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");