Skip to content

Commit

Permalink
replace std to jsr
Browse files Browse the repository at this point in the history
  • Loading branch information
YieldRay committed Aug 21, 2024
1 parent a225d86 commit 4c5bbba
Show file tree
Hide file tree
Showing 10 changed files with 36 additions and 18 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
run: deno task cov:gen

- name: Upload coverage
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@v4
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
with:
Expand Down
4 changes: 2 additions & 2 deletions deno.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@yieldray/json-rpc-ts",
"version": "0.2.0",
"version": "0.2.1",
"exports": "./mod.ts",
"publish": {
"include": [
Expand All @@ -21,7 +21,7 @@
"noImplicitOverride": true
},
"imports": {
"std/": "https://deno.land/std@0.224.0/"
"@std/assert": "jsr:@std/assert@^1.0.2"
},
"tasks": {
"lint": "deno lint",
Expand Down
26 changes: 26 additions & 0 deletions deno.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 1 addition & 5 deletions src/client.test.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
import {
assertEquals,
assertInstanceOf,
assertObjectMatch,
} from 'std/assert/mod.ts'
import { assertEquals, assertInstanceOf, assertObjectMatch } from '@std/assert'
import type { JSONRPCFulfilledResult } from './types.ts'
import type { JSONRPCRequest } from './dto/request.ts'
import { JSONRPCErrorResponse, JSONRPCSuccessResponse } from './dto/response.ts'
Expand Down
2 changes: 1 addition & 1 deletion src/dto/errors.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { assertEquals, assertInstanceOf } from 'std/assert/mod.ts'
import { assertEquals, assertInstanceOf } from '@std/assert'
import {
isJSONRPCError,
JSONRPCError,
Expand Down
2 changes: 1 addition & 1 deletion src/dto/request.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { assertEquals } from 'std/assert/mod.ts'
import { assertEquals } from '@std/assert'
import {
isJSONRPCRequest,
JSONRPCNotification,
Expand Down
2 changes: 1 addition & 1 deletion src/dto/response.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { assertEquals } from 'std/assert/mod.ts'
import { assertEquals } from '@std/assert'
import { isJSONRPCResponse } from './response.ts'

Deno.test('isJSONRPCResponse', () => {
Expand Down
2 changes: 1 addition & 1 deletion src/id.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { assertEquals } from 'std/assert/mod.ts'
import { assertEquals } from '@std/assert'
import { getIDFromGenerator, isJSONRPCID } from './id.ts'

Deno.test('assertEquals', () => {
Expand Down
2 changes: 1 addition & 1 deletion src/index.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { assertEquals, assertObjectMatch } from 'std/assert/mod.ts'
import { assertEquals, assertObjectMatch } from '@std/assert'
import { JSONRPCClient, JSONRPCServer } from './index.ts'

Deno.test('JSONRPCClient/JSONRPCServer', async () => {
Expand Down
6 changes: 1 addition & 5 deletions src/server.test.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
import {
assertEquals,
assertInstanceOf,
assertObjectMatch,
} from 'std/assert/mod.ts'
import { assertEquals, assertInstanceOf, assertObjectMatch } from '@std/assert'
import { JSONRPCServer } from './server.ts'
import { isJSONRPCError } from './dto/errors.ts'

Expand Down

0 comments on commit 4c5bbba

Please sign in to comment.