From 5a606b2b28c98525e9011c92cd8a5b7b98bef780 Mon Sep 17 00:00:00 2001 From: Mathieu Dutour Date: Sat, 12 May 2018 17:59:30 +0200 Subject: [PATCH] version 2.0.0 (#317) * versionn 2.0.0 * update sketch shield * fix readme --- CHANGELOG.md | 14 ++++++++++++++ README.md | 2 +- examples/basic-setup-typescript/package.json | 2 +- examples/basic-setup/package.json | 2 +- examples/basic-svg/package.json | 2 +- examples/colors/package.json | 2 +- examples/form-validation/package.json | 2 +- examples/foursquare-maps/package.json | 2 +- examples/glamorous/package.json | 2 +- examples/profile-cards-graphql/package.json | 2 +- examples/profile-cards-primitives/package.json | 2 +- .../profile-cards-react-with-styles/package.json | 2 +- examples/profile-cards/package.json | 2 +- examples/styled-components/package.json | 2 +- examples/styleguide/package.json | 2 +- examples/symbols/package.json | 2 +- examples/timeline-airtable/package.json | 2 +- package.json | 2 +- 18 files changed, 31 insertions(+), 17 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f868d049..17533faf 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,3 +2,17 @@ This project adheres to [Semantic Versioning](http://semver.org/). Every release, along with the migration instructions, is documented on the Github [Releases](https://github.com/airbnb/react-sketchapp/releases) page. + +## Version 2.0.0 + +- Now throws if the "Symbols" page is explicitly passed in as the `container` on the `render` method. Previously if you explicitly passed in the "Symbols" pages as a container, it would create a new page and render onto that. (#297 - Thanks @jaridmargolin!) +- Now throws an error if you attempt to render a Document component into a node intended to be a child of `Document`. (#297 - Thanks @jaridmargolin!) +- Adds support for rendering a `Page` component into a container passed through the `render` method. This allows for rendering multiple `Artboard`s onto an existing page. (#297 - Thanks @jaridmargolin!) +- More predictable rendering of `RedBox`. (#297 - Thanks @jaridmargolin!) +- Fix Symbols overrides for Sketch >= 46 (#198 - Thanks @ianhook!) +- Fix text overrides when the name of the Text layer is not explicitly defined (#292 - Thanks @jaridmargolin!) +- update `yoga-node` to 1.9 (#314) +- Add support for Sketch 50 (#290) +- Fix shared text style matching (#290) +- Remove n^2 rendering problem with large symbol sets (#235 - Thanks @ianhook!) +- `Page` without a name explicitly set will be auto-incremented ("Page 1", "Page 2", etc.) just like how Sketch is doing by default (#296 - Thanks @jaridmargolin!) diff --git a/README.md b/README.md index 925ebf90..ff894500 100644 --- a/README.md +++ b/README.md @@ -26,7 +26,7 @@ Next, [check out some more examples](https://github.com/airbnb/react-sketchapp/t ![readme-intro](https://cloud.githubusercontent.com/assets/591643/24777148/e742cd0e-1ad8-11e7-8751-090f6b2db514.png) [![npm](https://img.shields.io/npm/v/react-sketchapp.svg)](https://www.npmjs.com/package/react-sketchapp) -![Sketch.app](https://img.shields.io/badge/Sketch.app-43--45-brightgreen.svg) +![Sketch.app](https://img.shields.io/badge/Sketch.app-43--50-brightgreen.svg) [![Travis](https://img.shields.io/travis/rust-lang/rust.svg)](https://travis-ci.org/airbnb/react-sketchapp) [![Gitter](https://img.shields.io/gitter/room/nwjs/nw.js.svg)](https://gitter.im/react-sketchapp/Lobby) diff --git a/examples/basic-setup-typescript/package.json b/examples/basic-setup-typescript/package.json index 33e5bf70..f37ed999 100644 --- a/examples/basic-setup-typescript/package.json +++ b/examples/basic-setup-typescript/package.json @@ -28,7 +28,7 @@ "chroma-js": "^1.2.2", "prop-types": "^15.5.8", "react": "^15.4.2", - "react-sketchapp": "^1.0.0", + "react-sketchapp": "^2.0.0", "react-test-renderer": "^15.4.2" } } diff --git a/examples/basic-setup/package.json b/examples/basic-setup/package.json index b4d4766b..dabe4cfa 100644 --- a/examples/basic-setup/package.json +++ b/examples/basic-setup/package.json @@ -22,7 +22,7 @@ "chroma-js": "^1.2.2", "prop-types": "^15.5.8", "react": "^15.4.2", - "react-sketchapp": "^1.0.0", + "react-sketchapp": "^2.0.0", "react-test-renderer": "^15.4.2" } } diff --git a/examples/basic-svg/package.json b/examples/basic-svg/package.json index 047bc217..2bd9cb48 100644 --- a/examples/basic-svg/package.json +++ b/examples/basic-svg/package.json @@ -21,7 +21,7 @@ "dependencies": { "prop-types": "^15.5.8", "react": "^15.4.2", - "react-sketchapp": "^1.0.0", + "react-sketchapp": "^2.0.0", "react-test-renderer": "^15.4.2" } } diff --git a/examples/colors/package.json b/examples/colors/package.json index d1075815..70fe5c50 100644 --- a/examples/colors/package.json +++ b/examples/colors/package.json @@ -20,7 +20,7 @@ "prop-types": "^15.5.8", "ramda": "^0.23.0", "react": "^15.4.2", - "react-sketchapp": "^1.0.0", + "react-sketchapp": "^2.0.0", "react-test-renderer": "^15.4.1", "webpack-shell-plugin": "^0.5.0" }, diff --git a/examples/form-validation/package.json b/examples/form-validation/package.json index 5c413ad0..8d197456 100644 --- a/examples/form-validation/package.json +++ b/examples/form-validation/package.json @@ -22,7 +22,7 @@ "react-dom": "^15.4.2", "react-native": "^0.42.3", "react-primitives": "^0.3.4", - "react-sketchapp": "^1.0.0", + "react-sketchapp": "^2.0.0", "react-test-renderer": "^15.4.1" }, "devDependencies": { diff --git a/examples/foursquare-maps/package.json b/examples/foursquare-maps/package.json index d3ab05ae..e959b20c 100644 --- a/examples/foursquare-maps/package.json +++ b/examples/foursquare-maps/package.json @@ -25,7 +25,7 @@ "react-native": "^0.42.3", "react-primitives": "^0.3.4", "react-primitives-google-static-map": "^1.0.1", - "react-sketchapp": "^1.0.0", + "react-sketchapp": "^2.0.0", "react-test-renderer": "^15.4.1" }, "devDependencies": { diff --git a/examples/glamorous/package.json b/examples/glamorous/package.json index b8eeb289..2d06a91a 100644 --- a/examples/glamorous/package.json +++ b/examples/glamorous/package.json @@ -22,7 +22,7 @@ "chroma-js": "^1.3.4", "glamorous-primitives": "^2.1.0", "react": "^15.6.1", - "react-sketchapp": "^1.0.0", + "react-sketchapp": "^2.0.0", "react-test-renderer": "^15.6.1" } } diff --git a/examples/profile-cards-graphql/package.json b/examples/profile-cards-graphql/package.json index 6c40dad9..6f88bccd 100644 --- a/examples/profile-cards-graphql/package.json +++ b/examples/profile-cards-graphql/package.json @@ -23,7 +23,7 @@ "graphql-tag": "^2.4.0", "react": "^16.2.0", "react-apollo": "^2.1.0", - "react-sketchapp": "^1.0.0", + "react-sketchapp": "^2.0.0", "react-test-renderer": "^16.2.0" }, "devDependencies": { diff --git a/examples/profile-cards-primitives/package.json b/examples/profile-cards-primitives/package.json index 2b7a2403..1874285e 100644 --- a/examples/profile-cards-primitives/package.json +++ b/examples/profile-cards-primitives/package.json @@ -21,7 +21,7 @@ "react-dom": "^15.4.2", "react-native": "^0.42.3", "react-primitives": "^0.3.4", - "react-sketchapp": "^1.0.0", + "react-sketchapp": "^2.0.0", "react-test-renderer": "^15.4.1" }, "devDependencies": { diff --git a/examples/profile-cards-react-with-styles/package.json b/examples/profile-cards-react-with-styles/package.json index c58f2c0a..2514ffbc 100644 --- a/examples/profile-cards-react-with-styles/package.json +++ b/examples/profile-cards-react-with-styles/package.json @@ -16,7 +16,7 @@ "license": "MIT", "dependencies": { "react": "^15.4.2", - "react-sketchapp": "^1.0.0", + "react-sketchapp": "^2.0.0", "react-test-renderer": "^15.4.2", "react-with-styles": "^1.4.0" }, diff --git a/examples/profile-cards/package.json b/examples/profile-cards/package.json index 1a5fd674..ac92d39c 100644 --- a/examples/profile-cards/package.json +++ b/examples/profile-cards/package.json @@ -16,7 +16,7 @@ "license": "MIT", "dependencies": { "react": "^15.4.2", - "react-sketchapp": "^1.0.0", + "react-sketchapp": "^2.0.0", "react-test-renderer": "^15.4.2" }, "devDependencies": { diff --git a/examples/styled-components/package.json b/examples/styled-components/package.json index cd06c42f..8cc59c62 100644 --- a/examples/styled-components/package.json +++ b/examples/styled-components/package.json @@ -23,7 +23,7 @@ "prop-types": "^15.5.8", "react": "^15.4.2", "react-primitives": "^0.4.2", - "react-sketchapp": "^1.0.0", + "react-sketchapp": "^2.0.0", "react-test-renderer": "^15.4.2", "styled-components": "^2.1.0" } diff --git a/examples/styleguide/package.json b/examples/styleguide/package.json index 47a3afc5..ca5622a6 100644 --- a/examples/styleguide/package.json +++ b/examples/styleguide/package.json @@ -17,7 +17,7 @@ "dependencies": { "chroma-js": "^1.2.2", "react": "^15.4.2", - "react-sketchapp": "^1.0.0", + "react-sketchapp": "^2.0.0", "react-test-renderer": "^15.4.2" }, "devDependencies": { diff --git a/examples/symbols/package.json b/examples/symbols/package.json index 471401e9..a0b7a87c 100644 --- a/examples/symbols/package.json +++ b/examples/symbols/package.json @@ -20,7 +20,7 @@ }, "dependencies": { "react": "^16.2.0", - "react-sketchapp": "^1.0.0", + "react-sketchapp": "^2.0.0", "react-test-renderer": "^16.2.0" } } diff --git a/examples/timeline-airtable/package.json b/examples/timeline-airtable/package.json index 130edae4..efc85fd6 100644 --- a/examples/timeline-airtable/package.json +++ b/examples/timeline-airtable/package.json @@ -17,7 +17,7 @@ "dependencies": { "prop-types": "^15.5.8", "react": "^15.4.2", - "react-sketchapp": "^1.0.0", + "react-sketchapp": "^2.0.0", "react-test-renderer": "^15.4.1" }, "devDependencies": { diff --git a/package.json b/package.json index eb37c28c..c07c9e9e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-sketchapp", - "version": "1.1.0", + "version": "2.0.0", "description": "A React renderer for Sketch.app", "main": "lib/index.js", "license": "MIT",