Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
gabelerner committed May 18, 2019
1 parent d04bb60 commit 088abbe
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
4 changes: 3 additions & 1 deletion CHANGELOG.md
@@ -1,7 +1,9 @@
# Change Log

## v2.0.0 (beta)
## v2.0.0
- **Breaking change**: for use on server, peer dependencies [canvas 2.x](https://github.com/Automattic/node-canvas), [jsdom 13.x](https://github.com/jsdom/jsdom) and [xmldom 0.x](https://github.com/jindw/xmldom) must be installed.
- Fix exponential notation ([#710](https://github.com/canvg/canvg/pull/710))
- Fix font parsing ([#707](https://github.com/canvg/canvg/pull/707))
- Implement `textPath` ([#687](https://github.com/canvg/canvg/pull/687))
- Implement focal gradient radius ([#675](https://github.com/canvg/canvg/pull/675))
- Fixes 0 height rects ([#674](https://github.com/canvg/canvg/pull/674))
Expand Down
10 changes: 5 additions & 5 deletions README.md
Expand Up @@ -43,15 +43,15 @@ Locally, you can run `npm start` and view the examples at [http://localhost:3123

## Usage on the server

`npm install canvg@^1.5`

**2.0.0 beta** (see [CHANGELOG](https://github.com/canvg/canvg/blob/master/CHANGELOG.md))

`npm install canvg@2.0.0-beta.1 canvas@^2 jsdom@^13 xmldom@^0`
`npm install canvg canvas@^2 jsdom@^13 xmldom@^0`

The dependencies required on the server only are peers so must be installed
alongside the canvg package.

**Older version**

`npm install canvg@^1.5`

## Usage on the browser

For browser applications with a build process, canvg can be installed using `npm` similar to use on the server. Note in this case the peer dependencies are not required so do not need to be installed.
Expand Down
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -24,7 +24,7 @@
"main": "dist/node/canvg.js",
"types": "dist/node/canvg.d.ts",
"browser": "dist/browser/canvg.min.js",
"version": "2.0.0-beta.1",
"version": "2.0.0",
"scripts": {
"test-browser": "ava test/browser.test.js --tap | tap-diff",
"test-node": "ava test/node.test.js --tap | tap-diff",
Expand Down

0 comments on commit 088abbe

Please sign in to comment.