Skip to content

Commit beada97

Browse files
chore: move to jsr
Co-authored-by: Elias Sjögreen <[email protected]>
1 parent 09515fb commit beada97

17 files changed

+312
-74
lines changed

.github/workflows/checks.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@ jobs:
1212
- name: Setup latest deno version
1313
uses: denolib/setup-deno@v2
1414
with:
15-
deno-version: v1.x
15+
deno-version: v2.x
1616

1717
- name: Run deno fmt
1818
run: deno fmt --check --ignore=wasm.js
1919

2020
- name: Run deno lint
21-
run: deno lint --unstable --ignore=wasm.js
21+
run: deno lint --ignore=wasm.js
2222

2323
test:
2424
runs-on: ubuntu-latest
@@ -29,7 +29,7 @@ jobs:
2929
- name: Setup latest deno version
3030
uses: denolib/setup-deno@v2
3131
with:
32-
deno-version: v1.x
32+
deno-version: v2.x
3333

3434
- name: Run deno test
3535
run: deno test --allow-none

Cargo.lock

+53-29
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

+4-6
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,10 @@ publish = false
1212
crate-type = ["cdylib"]
1313

1414
[dependencies]
15-
wasm-bindgen = { version = "0.2.70", features = ["serde-serialize"] }
16-
serde = { version = "1.0", features = ["derive"] }
15+
wasm-bindgen = { version = "0.2.92", features = ["serde-serialize"] }
16+
serde = { version = "1.0.196", features = ["derive", "rc"] }
17+
serde-wasm-bindgen = "=0.6.3"
1718
png = "0.16.8"
1819

1920
[profile.release]
20-
lto = true
21-
22-
[package.metadata.wasm-pack.profile.release]
23-
wasm-opt = ["-Oz", "--enable-mutable-globals"]
21+
lto = true

LICENSE

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2021 Denosaurs
3+
Copyright (c) 2024 Denosaurs
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,4 +50,4 @@ Pull request, issues and feedback are very welcome. Code style is formatted with
5050

5151
### Licence
5252

53-
Copyright 2021, Denosaurs. All rights reserved. MIT license.
53+
Copyright 2024, Denosaurs. All rights reserved. MIT license.

deno.json

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"name": "@denosaurs/pngs",
3+
"version": "0.2.0",
4+
"exports": "./mod.ts",
5+
"tasks": {
6+
"build": "deno run -A scripts/build.ts",
7+
"fmt": "deno run -A scripts/fmt.ts",
8+
"clean": "deno run -A scripts/clean.ts",
9+
"lint": "deno run -A scripts/lint.ts"
10+
}
11+
}

deno.lock

+84
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/basic.ts

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import { decode } from "../mod.ts";
2+
3+
const file = await (await fetch(
4+
"https://avatars.githubusercontent.com/u/65427464?s=49&v=4",
5+
)).bytes();
6+
console.log(decode(file));

0 commit comments

Comments
 (0)