Skip to content

Commit

Permalink
chore: move to jsr
Browse files Browse the repository at this point in the history
Co-authored-by: Elias Sjögreen <[email protected]>
  • Loading branch information
load1n9 and eliassjogreen committed Nov 4, 2024
1 parent 09515fb commit beada97
Show file tree
Hide file tree
Showing 17 changed files with 312 additions and 74 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@ jobs:
- name: Setup latest deno version
uses: denolib/setup-deno@v2
with:
deno-version: v1.x
deno-version: v2.x

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

- name: Run deno lint
run: deno lint --unstable --ignore=wasm.js
run: deno lint --ignore=wasm.js

test:
runs-on: ubuntu-latest
Expand All @@ -29,7 +29,7 @@ jobs:
- name: Setup latest deno version
uses: denolib/setup-deno@v2
with:
deno-version: v1.x
deno-version: v2.x

- name: Run deno test
run: deno test --allow-none
82 changes: 53 additions & 29 deletions Cargo.lock

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

10 changes: 4 additions & 6 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,10 @@ publish = false
crate-type = ["cdylib"]

[dependencies]
wasm-bindgen = { version = "0.2.70", features = ["serde-serialize"] }
serde = { version = "1.0", features = ["derive"] }
wasm-bindgen = { version = "0.2.92", features = ["serde-serialize"] }
serde = { version = "1.0.196", features = ["derive", "rc"] }
serde-wasm-bindgen = "=0.6.3"
png = "0.16.8"

[profile.release]
lto = true

[package.metadata.wasm-pack.profile.release]
wasm-opt = ["-Oz", "--enable-mutable-globals"]
lto = true
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2021 Denosaurs
Copyright (c) 2024 Denosaurs

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
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,4 @@ Pull request, issues and feedback are very welcome. Code style is formatted with

### Licence

Copyright 2021, Denosaurs. All rights reserved. MIT license.
Copyright 2024, Denosaurs. All rights reserved. MIT license.
11 changes: 11 additions & 0 deletions deno.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"name": "@denosaurs/pngs",
"version": "0.2.0",
"exports": "./mod.ts",
"tasks": {
"build": "deno run -A scripts/build.ts",
"fmt": "deno run -A scripts/fmt.ts",
"clean": "deno run -A scripts/clean.ts",
"lint": "deno run -A scripts/lint.ts"
}
}
84 changes: 84 additions & 0 deletions deno.lock

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

6 changes: 6 additions & 0 deletions examples/basic.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import { decode } from "../mod.ts";

const file = await (await fetch(
"https://avatars.githubusercontent.com/u/65427464?s=49&v=4",
)).bytes();
console.log(decode(file));
Loading

0 comments on commit beada97

Please sign in to comment.