Skip to content

Commit

Permalink
Merge pull request #70 from jsr-core/misc
Browse files Browse the repository at this point in the history
📝 Misc update for repository transfer
  • Loading branch information
lambdalisue committed Apr 6, 2024
2 parents c2b6745 + e7d49b3 commit ec8f83e
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 28 deletions.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright 2021 Alisue, hashnote.net
Copyright 2024 jsr-core

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

[![jsr](https://img.shields.io/jsr/v/%40core/unknownutil?logo=javascript&logoColor=white)](https://jsr.io/@core/unknownutil)
[![npm](https://img.shields.io/npm/v/unknownutil?logo=npm&logoColor=white)](https://www.npmjs.com/package/unknownutil)
[![denoland](https://img.shields.io/github/v/release/lambdalisue/deno-unknownutil?logo=deno&label=denoland)](https://github.com/lambdalisue/deno-unknownutil/releases)
[![denoland](https://img.shields.io/github/v/release/jsr-core/unknownutil?logo=deno&label=denoland)](https://github.com/jsr-core/unknownutil/releases)
[![deno doc](https://doc.deno.land/badge.svg)](https://doc.deno.land/https/deno.land/x/unknownutil/mod.ts)
[![test](https://github.com/lambdalisue/deno-unknownutil/workflows/Test/badge.svg)](https://github.com/lambdalisue/deno-unknownutil/actions?query=workflow%3ATest)
[![codecov](https://codecov.io/github/lambdalisue/deno-unknownutil/graph/badge.svg?token=pfbLRGU5AM)](https://codecov.io/github/lambdalisue/deno-unknownutil)
[![test](https://github.com/jsr-core/unknownutil/workflows/Test/badge.svg)](https://github.com/jsr-core/unknownutil/actions?query=workflow%3ATest)
[![codecov](https://codecov.io/github/jsr-core/unknownutil/graph/badge.svg?token=pfbLRGU5AM)](https://codecov.io/github/jsr-core/unknownutil)

A utility pack for handling `unknown` type.

Expand Down Expand Up @@ -248,8 +248,8 @@ const _: string = maybe(a, is.String) ?? "default value";

## Migration

See [GitHub Wiki](https://github.com/lambdalisue/deno-unknownutil/wiki) for
migration to v3 from v2 or v2 from v1.
See [GitHub Wiki](https://github.com/jsr-core/unknownutil/wiki) for migration to
v3 from v2 or v2 from v1.

## License

Expand Down
10 changes: 5 additions & 5 deletions deno.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,17 @@
"name": "@core/unknownutil",
"version": "0.0.0",
"exports": "./mod.ts",
"lock": false,
"imports": {
"@deno/dnt": "jsr:@deno/dnt@^0.41.1",
"@std/assert": "jsr:@std/assert@^0.221.0",
"@std/testing": "jsr:@std/testing@^0.221.0",
"https://deno.land/x/unknownutil@$MODULE_VERSION/": "./"
},
"tasks": {
"build-npm": "deno run -A scripts/build_npm.ts $(git describe --tags --always --dirty)",
"check": "deno check ./**/*.ts",
"test": "deno test -A --parallel --doc",
"test:coverage": "deno task test --coverage=.coverage",
"check": "deno check ./**/*.ts",
"coverage": "deno coverage .coverage --exclude=is_bench.ts",
"upgrade": "deno run -q -A https://deno.land/x/molt@0.14.2/cli.ts ./**/*.ts",
"upgrade:commit": "deno task -q upgrade --commit --prefix :package: --pre-commit=fmt"
"coverage": "deno coverage .coverage --exclude=is_bench.ts"
}
}
4 changes: 1 addition & 3 deletions inspect_test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
import {
assertSnapshot,
} from "https://deno.land/std@0.211.0/testing/snapshot.ts";
import { assertSnapshot } from "@std/testing/snapshot";
import { inspect } from "./inspect.ts";

Deno.test("inspect", async (t) => {
Expand Down
11 changes: 3 additions & 8 deletions is_test.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
import {
assertEquals,
assertStrictEquals,
} from "https://deno.land/std@0.211.0/assert/mod.ts";
import {
assertSnapshot,
} from "https://deno.land/std@0.211.0/testing/snapshot.ts";
import { assertType } from "https://deno.land/std@0.211.0/testing/types.ts";
import { assertEquals, assertStrictEquals } from "@std/assert";
import { assertSnapshot } from "@std/testing/snapshot";
import { assertType } from "@std/testing/types";
import { type Equal, stringify } from "./_testutil.ts";
import type { Predicate, PredicateType } from "./is.ts";
import {
Expand Down
4 changes: 2 additions & 2 deletions scripts/build_npm.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { build, emptyDir } from "https://deno.land/x/dnt@0.39.0/mod.ts";
import { build, emptyDir } from "@deno/dnt";

const name = "unknownutil";
const version = Deno.args[0];
Expand Down Expand Up @@ -29,7 +29,7 @@ await build({
version,
author: "Alisue <lambdalisue@gmail.com>",
license: "MIT",
repository: "https://github.com/lambdalisue/deno-unknownutil",
repository: "https://github.com/jsr-core/unknownutil",
},
});

Expand Down
5 changes: 1 addition & 4 deletions util_test.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
import {
assertStrictEquals,
assertThrows,
} from "https://deno.land/std@0.211.0/assert/mod.ts";
import { assertStrictEquals, assertThrows } from "@std/assert";
import {
assert,
AssertError,
Expand Down

0 comments on commit ec8f83e

Please sign in to comment.