Skip to content

Commit 345831d

Browse files
Merge pull request #506 from airbnb/f/various-fixes
2 parents 3ead244 + ab16e90 commit 345831d

File tree

4 files changed

+15
-4
lines changed

4 files changed

+15
-4
lines changed

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,15 @@
22

33
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.
44

5+
## Version 3.2.2
6+
7+
- Fix getting the default bridge on NodeJS
8+
9+
## Version 3.2.1
10+
11+
- `Platform.version` now reflects the Sketch version
12+
- Fix a bug for a broken version of `@sketch-hq/sketch-file-format-ts`
13+
514
## Version 3.2.0
615

716
- Add a new `useWindowDimensions` hook for Artboard viewport (#501)

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-sketchapp",
3-
"version": "3.2.0",
3+
"version": "3.2.2",
44
"description": "A React renderer for Sketch.app",
55
"sideEffects": false,
66
"main": "lib/index.js",
@@ -44,7 +44,7 @@
4444
},
4545
"dependencies": {
4646
"@lona/svg-model": "^2.0.0",
47-
"@sketch-hq/sketch-file-format-ts": "^4.0.3",
47+
"@sketch-hq/sketch-file-format-ts": "4.0.3",
4848
"airbnb-prop-types": "^2.15.0",
4949
"error-stack-parser": "^2.0.6",
5050
"invariant": "^2.2.2",

src/Platform.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1+
import { getSketchVersion } from './utils/getSketchVersion';
2+
13
export const Platform = {
24
OS: 'sketch',
3-
Version: 1,
5+
Version: getSketchVersion(),
46
select: (obj: { sketch: any }) => obj.sketch,
57
};

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import {
1414
import { TextStyles as _TextStyles } from './sharedStyles/TextStyles';
1515

1616
function getDefaultPlatformBridge() {
17-
return require('./platformBridges/macos');
17+
return require('./platformBridges/macos').default;
1818
}
1919

2020
export function render(

0 commit comments

Comments
 (0)