Skip to content

Commit

Permalink
Update Deno and dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
BrunoBernardino committed Jan 13, 2024
1 parent 5f3ce00 commit 293653d
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 26 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ jobs:
- uses: actions/checkout@v3
- uses: denoland/setup-deno@v1
with:
deno-version: v1.29.1
deno-version: v1.39.3
- run: |
make test
5 changes: 0 additions & 5 deletions .vscode/settings.json

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ It only has a _single method_: `parse(url: string)` which returns the same strin
### Deno

```ts
import shurley from 'https://deno.land/x/shurley@1.0.3/mod.ts';
import shurley from 'https://deno.land/x/shurley@1.0.4/mod.ts';

const parsedUrl = shurley.parse('example.com');

Expand Down
2 changes: 1 addition & 1 deletion 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.32.1/mod.ts';
import { build, emptyDir } from 'https://deno.land/x/dnt@0.39.0/mod.ts';

await emptyDir('./npm');

Expand Down
24 changes: 8 additions & 16 deletions deno.json
Original file line number Diff line number Diff line change
@@ -1,25 +1,17 @@
{
"fmt": {
"options": {
"useTabs": false,
"lineWidth": 120,
"indentWidth": 2,
"singleQuote": true,
"proseWrap": "preserve"
},
"files": {
"exclude": ["./npm"]
}
"useTabs": false,
"lineWidth": 120,
"indentWidth": 2,
"singleQuote": true,
"proseWrap": "preserve",
"exclude": ["./npm"]
},
"lint": {
"files": {
"exclude": ["./npm"]
}
"exclude": ["./npm"]
},
"test": {
"files": {
"exclude": ["./npm"]
}
"exclude": ["./npm"]
},
"lock": false
}
4 changes: 2 additions & 2 deletions mod_test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { assertEquals } from 'https://deno.land/std@0.168.0/testing/asserts.ts';
import { equal } from 'https://deno.land/std@0.212.0/assert/equal.ts';

import shurley from './mod.ts';

Expand Down Expand Up @@ -28,6 +28,6 @@ Deno.test('that .parse() works', () => {

for (const test of tests) {
const parsedUrl = shurley.parse(test.url);
assertEquals(parsedUrl, test.expected, `Failed test for "${test.url}" (got "${parsedUrl}").`);
equal(parsedUrl, test.expected);
}
});

0 comments on commit 293653d

Please sign in to comment.