diff --git a/CHANGELOG.md b/CHANGELOG.md index cce64401..54d8a253 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,15 @@ 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 3.2.2 + +- Fix getting the default bridge on NodeJS + +## Version 3.2.1 + +- `Platform.version` now reflects the Sketch version +- Fix a bug for a broken version of `@sketch-hq/sketch-file-format-ts` + ## Version 3.2.0 - Add a new `useWindowDimensions` hook for Artboard viewport (#501) diff --git a/package.json b/package.json index 3d9ad2d3..ef21ed21 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-sketchapp", - "version": "3.2.0", + "version": "3.2.2", "description": "A React renderer for Sketch.app", "sideEffects": false, "main": "lib/index.js", @@ -44,7 +44,7 @@ }, "dependencies": { "@lona/svg-model": "^2.0.0", - "@sketch-hq/sketch-file-format-ts": "^4.0.3", + "@sketch-hq/sketch-file-format-ts": "4.0.3", "airbnb-prop-types": "^2.15.0", "error-stack-parser": "^2.0.6", "invariant": "^2.2.2", diff --git a/src/Platform.ts b/src/Platform.ts index a69ad9d8..72c2c823 100644 --- a/src/Platform.ts +++ b/src/Platform.ts @@ -1,5 +1,7 @@ +import { getSketchVersion } from './utils/getSketchVersion'; + export const Platform = { OS: 'sketch', - Version: 1, + Version: getSketchVersion(), select: (obj: { sketch: any }) => obj.sketch, }; diff --git a/src/index.ts b/src/index.ts index 01e0982f..a2c3fee2 100644 --- a/src/index.ts +++ b/src/index.ts @@ -14,7 +14,7 @@ import { import { TextStyles as _TextStyles } from './sharedStyles/TextStyles'; function getDefaultPlatformBridge() { - return require('./platformBridges/macos'); + return require('./platformBridges/macos').default; } export function render(