Skip to content

Commit

Permalink
[npm] Support npm publish flow
Browse files Browse the repository at this point in the history
See go/npm-publish and b/160246223

Change-Id: I5a92a19ae6be814ca9a98679cfe39184f7cdb184
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/303580
Reviewed-by: Joe Gregorio <jcgregorio@google.com>
  • Loading branch information
kjlubick committed Jul 20, 2020
1 parent 1860aed commit 3ba1777
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 8 deletions.
5 changes: 3 additions & 2 deletions modules/canvaskit/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Changed
- In all places where color arrays are accepted (gradient makers, drawAtlas, and MakeSkVertices),
You can now provide either flat Float32Arrays of float colors, Uint32Arrays of int colors, or
You can now provide either flat Float32Arrays of float colors, Uint32Arrays of int colors, or
2d Arrays of Float32Array(4) colors. The one thing you should not pass is an Array of numbers,
since canvaskit wouldn't be able to tell whether they're ints or floats without checking them all.
The fastest choice for gradients is the flat Float32Array, the fastest choice for drawAtlas and
Expand All @@ -38,7 +38,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
can be used to override default attributes.
### Fixed
- `TextStyle.color` can correctly be a Malloc'd Float32Array.

- Support wombat-dressing-room. go/npm-publish

### Deprecated
- `CanvasKit.MakePathFromCmds` has been renamed to `CanvasKit.SkPath.MakeFromCmds`. The alias
will be removed in an upcoming release.
Expand Down
5 changes: 3 additions & 2 deletions modules/canvaskit/canvaskit/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@
"description": "A WASM version of Skia's Canvas API",
"main": "bin/canvaskit.js",
"homepage": "https://github.com/google/skia/tree/master/modules/canvaskit",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
"bugs": {
"url": "https://bugs.chromium.org/p/skia/issues/entry"
},
"permsRepo": "skia-dev/.github",
"license": "BSD-3-Clause"
}
1 change: 1 addition & 0 deletions modules/pathkit/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Changed
- Updated to emscripten 1.39.16
- Support wombat-dressing-room. go/npm-publish

### Breaking
- `PathKitInit(...)` now directly returns a Promise. As such, `PathKitInit(...).ready()`
Expand Down
5 changes: 3 additions & 2 deletions modules/pathkit/npm-asmjs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@
"description": "A asm.js version of Skia's PathOps toolkit",
"main": "bin/pathkit.js",
"homepage": "https://github.com/google/skia/tree/master/modules/pathkit",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
"bugs": {
"url": "https://bugs.chromium.org/p/skia/issues/entry"
},
"permsRepo": "skia-dev/.github",
"license": "BSD-3-Clause"
}
5 changes: 3 additions & 2 deletions modules/pathkit/npm-wasm/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@
"description": "A WASM version of Skia's PathOps toolkit",
"main": "bin/pathkit.js",
"homepage": "https://github.com/google/skia/tree/master/modules/pathkit",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
"bugs": {
"url": "https://bugs.chromium.org/p/skia/issues/entry"
},
"permsRepo": "skia-dev/.github",
"license": "BSD-3-Clause"
}

0 comments on commit 3ba1777

Please sign in to comment.