Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release 6.0.0-beta.0 #182

Merged
merged 2 commits into from
Nov 11, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file removed benchmark/Roboto-Regular.ttf
Binary file not shown.
4 changes: 2 additions & 2 deletions benchmark/jsx-renderer.mjs
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import b from 'benny';
import { Builder, JSX, Font } from '../dist/index.mjs';

const roboto = await Font.fromFile('./Roboto-Regular.ttf', 'Roboto');
const geist = Font.loadDefault();

const builder = new Builder(800, 185);
builder.style = {
display: 'flex',
fontFamily: roboto.name
fontFamily: geist.name
};

builder.addComponent(
Expand Down
21 changes: 17 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,21 @@
{
"name": "canvacord",
"description": "Generate images on-the-fly inside your node application",
"version": "6.0.0",
"description": "Generate images on-the-fly with the help of wide range of templates.",
"version": "6.0.0-beta.0",
"main": "./dist/index.js",
"exports": {
"require": {
"default": "./dist/index.js",
"types": "./dist/index.d.ts"
},
"import": {
"default": "./dist/index.mjs",
"types": "./dist/index.d.mts"
}
},
"files": [
"dist"
],
"dependencies": {
"@napi-rs/canvas": "^0.1.41",
"@napi-rs/image": "^1.7.0",
Expand Down Expand Up @@ -31,7 +44,7 @@
"nodejs",
"typescript"
],
"author": "Neplex",
"author": "twlite",
"license": "MIT",
"bugs": {
"url": "https://github.com/neplextech/canvacord/issues"
Expand All @@ -48,4 +61,4 @@
"tsx": "^3.12.7",
"typescript": "^5.1.3"
}
}
}
2 changes: 1 addition & 1 deletion test/leaderboard.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Font, LeaderboardBuilder } from '../src';
import { Font, LeaderboardBuilder } from '../dist/index.js';
import { writeFileSync } from 'fs';

Font.loadDefault();
Expand Down