From 0e4d1cb5f9a3645f6da480b2b8540568fa69d675 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Wed, 27 Mar 2024 17:51:52 +0000 Subject: feat(init): use jsr specifier for @std/assert (#23073) This commit changes "deno init" subcommand to use "jsr:" specifier for standard library "assert" module. It is unversioned, but we will change it to `@^1` once `@std/assert` release version 1.0. This allows us to start decoupling `deno` and `deno_std` release. The release scripts have been updated to take that into account. --- .../testdata/jsr/registry/@std/assert/0.220.1/mod.ts | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 tests/testdata/jsr/registry/@std/assert/0.220.1/mod.ts (limited to 'tests/testdata/jsr/registry/@std/assert/0.220.1/mod.ts') diff --git a/tests/testdata/jsr/registry/@std/assert/0.220.1/mod.ts b/tests/testdata/jsr/registry/@std/assert/0.220.1/mod.ts new file mode 100644 index 000000000..2d7913a02 --- /dev/null +++ b/tests/testdata/jsr/registry/@std/assert/0.220.1/mod.ts @@ -0,0 +1,20 @@ +// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license. + +/** A library of assertion functions. + * If the assertion is false an `AssertionError` will be thrown which will + * result in pretty-printed diff of failing assertion. + * + * This module is browser compatible, but do not rely on good formatting of + * values for AssertionError messages in browsers. + * + * ```ts + * import { assert } from "@std/assert/assert"; + * + * assert("I am truthy"); // Doesn't throw + * assert(false); // Throws `AssertionError` + * ``` + * + * @module + */ + +export * from "./assert_equals.ts"; -- cgit v1.2.3