Skip to content

Commit 92c763d

Browse files
authored
Merge pull request #64 from lambdalisue/jsr
☕ Support JSR
2 parents a4b91de + 024b8dd commit 92c763d

File tree

11 files changed

+45
-17
lines changed

11 files changed

+45
-17
lines changed

.github/workflows/jsr.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: jsr
2+
3+
env:
4+
DENO_VERSION: 1.x
5+
6+
on:
7+
push:
8+
tags:
9+
- "v*"
10+
11+
permissions:
12+
contents: read
13+
id-token: write
14+
15+
jobs:
16+
publish:
17+
runs-on: ubuntu-latest
18+
steps:
19+
- uses: actions/checkout@v4
20+
with:
21+
fetch-depth: 0
22+
- uses: denoland/setup-deno@v1
23+
with:
24+
deno-version: ${{ env.DENO_VERSION }}
25+
- name: Publish
26+
run: |
27+
deno run -A jsr:@david/[email protected]

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
# unknownutil
22

3-
[![npm](http://img.shields.io/badge/available%20on-npm-lightgrey.svg?logo=npm&logoColor=white)](https://www.npmjs.com/package/unknownutil)
4-
[![deno land](http://img.shields.io/badge/available%20on-deno.land/x-lightgrey.svg?logo=deno)](https://deno.land/x/unknownutil)
3+
[![jsr](https://img.shields.io/jsr/v/%40core/unknownutil?logo=javascript&logoColor=white)](https://jsr.io/@core/unknownutil)
4+
[![npm](https://img.shields.io/npm/v/unknownutil?logo=npm&logoColor=white)](https://www.npmjs.com/package/unknownutil)
5+
[![denoland](https://img.shields.io/github/v/release/lambdalisue/deno-unknownutil?logo=deno&label=denoland)](https://github.com/lambdalisue/deno-unknownutil/releases)
56
[![deno doc](https://doc.deno.land/badge.svg)](https://doc.deno.land/https/deno.land/x/unknownutil/mod.ts)
6-
[![Test](https://github.com/lambdalisue/deno-unknownutil/workflows/Test/badge.svg)](https://github.com/lambdalisue/deno-unknownutil/actions?query=workflow%3ATest)
7-
[![npm version](https://badge.fury.io/js/unknownutil.svg)](https://badge.fury.io/js/unknownutil)
7+
[![test](https://github.com/lambdalisue/deno-unknownutil/workflows/Test/badge.svg)](https://github.com/lambdalisue/deno-unknownutil/actions?query=workflow%3ATest)
88
[![codecov](https://codecov.io/github/lambdalisue/deno-unknownutil/graph/badge.svg?token=pfbLRGU5AM)](https://codecov.io/github/lambdalisue/deno-unknownutil)
99

1010
A utility pack for handling `unknown` type.

deno.jsonc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
{
2+
"name": "@core/unknownutil",
3+
"version": "0.0.0",
4+
"exports": "./mod.ts",
25
"lock": false,
36
"imports": {
47
"https://deno.land/x/unknownutil@$MODULE_VERSION/": "./"

is/_deprecated.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import type { UnionToIntersection } from "../_typeutil.ts";
22
import type { Predicate } from "./type.ts";
3-
import { type isObjectOf } from "./factory.ts";
4-
import { type GetMetadata, type WithMetadata } from "../metadata.ts";
3+
import type { isObjectOf } from "./factory.ts";
4+
import type { GetMetadata, WithMetadata } from "../metadata.ts";
55
import { isIntersectionOf, isUnionOf } from "./utility.ts";
66

77
type IsObjectOfMetadata = GetMetadata<ReturnType<typeof isObjectOf>>;

is/_deprecated_test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import {
77
} from "https://deno.land/[email protected]/testing/snapshot.ts";
88
import { assertType } from "https://deno.land/[email protected]/testing/types.ts";
99
import { type Equal, stringify } from "./_testutil.ts";
10-
import { type Predicate, type PredicateType } from "./type.ts";
10+
import type { Predicate, PredicateType } from "./type.ts";
1111
import { isBoolean, isNumber, isString } from "./core.ts";
1212
import { isObjectOf } from "./factory.ts";
1313
import is, { isAllOf, isOneOf } from "./_deprecated.ts";

is/annotation_test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import {
77
} from "https://deno.land/[email protected]/testing/snapshot.ts";
88
import { assertType } from "https://deno.land/[email protected]/testing/types.ts";
99
import { type Equal, stringify } from "./_testutil.ts";
10-
import { type Predicate } from "./type.ts";
10+
import type { Predicate } from "./type.ts";
1111
import {
1212
isArray,
1313
isAsyncFunction,

is/core_test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import {
33
assertStrictEquals,
44
} from "https://deno.land/[email protected]/assert/mod.ts";
55
import { stringify } from "./_testutil.ts";
6-
import { type Predicate } from "./type.ts";
6+
import type { Predicate } from "./type.ts";
77
import is, {
88
isAny,
99
isArray,

is/factory.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import type { FlatType } from "../_typeutil.ts";
22
import type { Predicate, PredicateType } from "./type.ts";
3-
import { isOptionalOf, isReadonlyOf } from "./annotation.ts";
3+
import { type isOptionalOf, isReadonlyOf } from "./annotation.ts";
44
import {
55
isAny,
66
isArray,

is/factory_test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import {
77
} from "https://deno.land/[email protected]/testing/snapshot.ts";
88
import { assertType } from "https://deno.land/[email protected]/testing/types.ts";
99
import { type Equal, stringify } from "./_testutil.ts";
10-
import { type Predicate } from "./type.ts";
10+
import type { Predicate } from "./type.ts";
1111
import { isOptionalOf } from "./annotation.ts";
1212
import {
1313
isArray,

is/utility_test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import {
77
} from "https://deno.land/[email protected]/testing/snapshot.ts";
88
import { assertType } from "https://deno.land/[email protected]/testing/types.ts";
99
import { type Equal, stringify } from "./_testutil.ts";
10-
import { type Predicate, type PredicateType } from "./type.ts";
10+
import type { Predicate, PredicateType } from "./type.ts";
1111
import { isOptionalOf } from "./annotation.ts";
1212
import { isBoolean, isNumber, isString, isUndefined } from "./core.ts";
1313
import { isObjectOf } from "./factory.ts";

0 commit comments

Comments
 (0)