Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: bubkoo/html-to-image
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v1.11.6
Choose a base ref
...
head repository: bubkoo/html-to-image
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
Loading
52 changes: 38 additions & 14 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
name: 👷 CI
on:
pull_request:
pull_request_target:
push:
branches:
@@ -11,33 +12,56 @@ on:
jobs:
ci:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [14.x]
steps:
- name: ⤵️ Checkout
uses: actions/checkout@v2
- name: 🎉 Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
uses: actions/checkout@v3

- name: 🎉 Setup nodejs
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: 🚧 Install
run: yarn install
node-version: 16.x

- name: 🎉 Setup pnpm
uses: pnpm/action-setup@v2
with:
version: 7
run_install: false

- name: 🌱 Get pnpm store directory
id: pnpm-cache
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
- name: 🚸 Setup pnpm cache
uses: actions/cache@v3
with:
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: 🚧 Install dependencies
run: pnpm install --no-frozen-lockfile --ignore-scripts

- name: 📦 Build
run: yarn build
run: pnpm run build

- name: ✅ Test
run: yarn test
run: pnpm run test

- name: 🔑 Generate Token
uses: bubkoo/use-app-token@v1
uses: wow-actions/use-app-token@v2
with:
app_id: ${{ secrets.APP_ID }}
private_key: ${{ secrets.PRIVATE_KEY }}
env_name: bot_token

- name: 💡 Coveralls
uses: coverallsapp/github-action@master
with:
github-token: ${{ env.bot_token }}
github-token: ${{ env.BOT_TOKEN }}
path-to-lcov: ./test/coverage/lcov.info

- name: 💡 Codecov
uses: codecov/codecov-action@v1
with:
2 changes: 1 addition & 1 deletion .github/workflows/pr-label-patch-size.yml
Original file line number Diff line number Diff line change
@@ -13,4 +13,4 @@ jobs:
- uses: pascalgn/size-label-action@v0.1.1
env:
GITHUB_TOKEN: "${{ env.bot_token }}"
IGNORED: "!.gitignore\nyarn.lock"
IGNORED: "!.gitignore\npnpm-lock.yaml"
37 changes: 32 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -12,16 +12,43 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: ⤵️ Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
persist-credentials: false

- name: 🎉 Setup nodejs
uses: actions/setup-node@v3
with:
node-version: 16.x

- name: 🎉 Setup pnpm
uses: pnpm/action-setup@v2
with:
version: 7
run_install: false

- name: 🌱 Get pnpm store directory
id: pnpm-cache
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
- name: 🚸 Setup pnpm cache
uses: actions/cache@v3
with:
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: 🚧 Install
run: yarn install
- name: 🚧 Install dependencies
run: pnpm install --no-frozen-lockfile --ignore-scripts

- name: 📦 Build
run: yarn build
run: pnpm run build

- name: ✅ Test
run: yarn test
run: pnpm run test

- name: 🔑 Generate Token
uses: wow-actions/use-app-token@v2
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -25,3 +25,4 @@ yarn.lock
yarn-error.log
npm-debug.log
lerna-debug.log
pnpm-lock.yaml
22 changes: 0 additions & 22 deletions .travis.yml

This file was deleted.

47 changes: 47 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,50 @@
## [1.11.13](https://github.com/bubkoo/html-to-image/compare/v1.11.12...v1.11.13) (2025-02-14)


### Bug Fixes

* **mask:** add support for -webkit-mask and -webkit-mask-image ([#382](https://github.com/bubkoo/html-to-image/issues/382)) ([5bdfda7](https://github.com/bubkoo/html-to-image/commit/5bdfda75cc41248f4e161ea434bbfc535e72f95e))

## [1.11.12](https://github.com/bubkoo/html-to-image/compare/v1.11.11...v1.11.12) (2025-02-12)


### Bug Fixes

* add possibility to use own handling of onerror which will not en… ([#453](https://github.com/bubkoo/html-to-image/issues/453)) ([04160c3](https://github.com/bubkoo/html-to-image/commit/04160c3e77f55e95082cbd4879847d0afda92883))
* ensure images are totally prcoessed before using them (ios) ([#478](https://github.com/bubkoo/html-to-image/issues/478)) ([51fb98f](https://github.com/bubkoo/html-to-image/commit/51fb98f69b6eef6c391a5a7859711a5f0601f467))
* Fix `fontEmbedCSS ` incorrect sizing ([#422](https://github.com/bubkoo/html-to-image/issues/422)) ([7020162](https://github.com/bubkoo/html-to-image/commit/702016256cc03b5637e75645f3d70131ddd0e45f))


### Performance Improvements

* embed only used fonts ([#476](https://github.com/bubkoo/html-to-image/issues/476)) ([09bee44](https://github.com/bubkoo/html-to-image/commit/09bee442c27bde2af06442417f4269e763e6b6cd))
* svg cloning optimized using deep clone ([#462](https://github.com/bubkoo/html-to-image/issues/462)) ([9aac2fd](https://github.com/bubkoo/html-to-image/commit/9aac2fd11333ca302d10f2c438cd16be07a1429d))

## [1.11.11](https://github.com/bubkoo/html-to-image/compare/v1.11.10...v1.11.11) (2023-02-01)

## [1.11.10](https://github.com/bubkoo/html-to-image/compare/v1.11.9...v1.11.10) (2023-02-01)


### Bug Fixes

* revert the change in the pre-install hook ([ed7db4d](https://github.com/bubkoo/html-to-image/commit/ed7db4d090c600da632c2c7ef9319ed033d9c3e5)), closes [#365](https://github.com/bubkoo/html-to-image/issues/365)

## [1.11.9](https://github.com/bubkoo/html-to-image/compare/v1.11.8...v1.11.9) (2023-01-31)


### Bug Fixes

* use "secrets.GITHUB_TOKEN" to publish to GPR ([2652288](https://github.com/bubkoo/html-to-image/commit/2652288af04f6a4775cf107981f3292b0a231973))

## [1.11.8](https://github.com/bubkoo/html-to-image/compare/v1.11.7...v1.11.8) (2023-01-31)


### Bug Fixes

* specify plugins ([d90ec23](https://github.com/bubkoo/html-to-image/commit/d90ec23daca23cda0d515cd7dda8d80cdf75546b))

## [1.11.7](https://github.com/bubkoo/html-to-image/compare/v1.11.6...v1.11.7) (2023-01-30)

## [1.11.6](https://github.com/bubkoo/html-to-image/compare/v1.11.5...v1.11.6) (2023-01-30)


8 changes: 4 additions & 4 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -16,10 +16,10 @@ We will confirm the purpose of the issue, replace more accurate labels for it, i
### Pull Request Guide

1. [Fork][fork] and clone the repository
2. Configure and install the dependencies `yarn`
3. Make sure the tests pass on your machine `yarn test`, note: these tests also run the TypeScript compiler (`tsc`) to check for type errors, so there's no need to run these commands separately.
2. Configure and install the dependencies `pnpm`
3. Make sure the tests pass on your machine `pnpm test`, note: these tests also run the TypeScript compiler (`tsc`) to check for type errors, so there's no need to run these commands separately.
4. Create a new branch `git checkout -b my-branch-name` for development. The name of branch should be semantic, avoiding words like 'update' or 'tmp'. We suggest to use `'feature/xxx'`, if the modification is about to implement a new feature.
5. Run the test `yarn test` after you finish your modification. Add new test cases or change old ones if you feel necessary.
5. Run the test `pnpm test` after you finish your modification. Add new test cases or change old ones if you feel necessary.
6. Push to your fork and [submit a pull request][pr]
7. Pat your self on the back and wait for your pull request to be reviewed and merged.

@@ -32,7 +32,7 @@ No one can guarantee how much will be remembered about certain PR after some tim

### Style Guide

tslint can help to identify styling issues that may exist in your code. Your code is required to pass the test from tslint. Run the test locally by `$ yarn lint`.
tslint can help to identify styling issues that may exist in your code. Your code is required to pass the test from tslint. Run the test locally by `$ pnpm lint`.

### Commit Message Format

9 changes: 9 additions & 0 deletions CONTRIBUTORS
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
Amirata Khodaparast <amiratak88@gmail.com>
Andrei Gheorghiu <andrei.gheorghiu@kmap.io>
AndrewN93 <31307316+AndrewN93@users.noreply.github.com>
Andrey K <43050331+andreynocap@users.noreply.github.com>
@@ -6,21 +7,26 @@ Anonymous <anon@ymo.us>
ArtemTumin <77966804+ArtemTumin@users.noreply.github.com>
Arun Rana <arun0808rana@gmail.com>
Calvin Zheng <Calvin.Zheng@westpharma.com>
Dan Crevier <dancrevier@hotmail.com>
Danang Arbansa <danang.arbansa@gmail.com>
Darren Impey <darren@jaxxtec.com>
Dima <dima.horror@gmail.com>
Dragos Nedelcu <dragos199993@gmail.com>
Dustin Brett <dustinbrett@gmail.com>
GU Yiling <justice360@gmail.com>
Gordon Smith <GordonSmith@users.noreply.github.com>
Guillermo López <lopermo.g@gmail.com>
Hal Li <leadream4@gmail.com>
Jean-Francois Couture <jeanfrancois8512@gmail.com>
Jim Raptis <dimitrisraptis96@gmail.com>
Jobin <425605679@qq.com>
Lin Jie <linjie997@gmail.com>
Marcel Voß <marcel.voss@web.de>
Marcin Pietruszka <marcin@webskill.pl>
Marcus Delang <marcus.nilsson@scrive.com>
Marshal27 <marshalthompson1980@gmail.com>
Martin Trobäck <lekoaf@users.noreply.github.com>
Michal Biros <birosh@gmail.com>
Nick Loveridge <lovenick@users.noreply.github.com>
Perry Huang <31561213+PerryHuan9@users.noreply.github.com>
PrashoonB <prashoonbhattacharjee@gmail.com>
@@ -35,13 +41,16 @@ Will McKenzie <will.mckenzie@coolblue.co.uk>
Yuhao <liyuhao20001118@gmail.com>
bubkoo <bubkoo.wy@gmail.com>
isergey87 <isergey87@users.noreply.github.com>
jagermesh <jagermesh@gmail.com>
mjr9804 <mjr9804@gmail.com>
pengxingjian.pxj <pengxingjian.pxj@alibaba-inc.com>
ramadis <rramiro.o@hotmail.com>
runkow <84323714+runkow@users.noreply.github.com>
sasithahtl <sasithaasaranga@gmail.com>
sbel-odoo <151751676+sbel-odoo@users.noreply.github.com>
semantic-release-bot <semantic-release-bot@martynus.net>
tavo <gchava92@gmail.com>
tuhm1 <50200070+tuhm1@users.noreply.github.com>
your-bot <bubkoo.wy@gmail.com>
崖 <bubkoo.wy@gmail.com>
崖崖崖 <bubkoo@163.com>
165 changes: 96 additions & 69 deletions CONTRIBUTORS.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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) 2017-2023 W.Y.
Copyright (c) 2017-2025 W.Y.

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