Skip to content

Commit bf82d78

Browse files
authored
update all skpm imports to ^0.9.0 (#66)
1 parent acaec94 commit bf82d78

File tree

10 files changed

+10
-15
lines changed

10 files changed

+10
-15
lines changed

docs/guides/data-fetching.md

+1-4
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,7 @@ Pull real data from an API with `fetch` or GraphQL.
66

77
[Full example](https://github.com/airbnb/react-sketchapp/tree/master/examples/foursquare-maps)
88

9-
First, add the [Sketch `fetch` polyfill](https://github.com/mathieudutour/sketch-module-fetch-polyfill) to your projects
10-
```
11-
npm install sketch-module-fetch-polyfill --save
12-
```
9+
`skpm` automatically provides the [Sketch `fetch` polyfill](https://github.com/mathieudutour/sketch-module-fetch-polyfill) — just use `fetch` as usual.
1310

1411
```js
1512
import fetch from 'sketch-module-fetch-polyfill'

examples/basic-setup/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"author": "Jon Gold <[email protected]>",
1515
"license": "MIT",
1616
"devDependencies": {
17-
"skpm": "^0.8.0"
17+
"skpm": "^0.9.0"
1818
},
1919
"dependencies": {
2020
"chroma-js": "^1.2.2",

examples/colors/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,6 @@
2222
"webpack-shell-plugin": "^0.5.0"
2323
},
2424
"devDependencies": {
25-
"skpm": "^0.8.0"
25+
"skpm": "^0.9.0"
2626
}
2727
}

examples/foursquare-maps/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,6 @@ Open a browser to `http://localhost:3000`
3838

3939
Creating maps with live data into Sketch is notoriously difficult — until now ;)
4040

41-
This example is created with `react-primitives` and renders simultaneously to Sketch & Web, and polyfills `fetch` in Sketch with [`sketch-module-fetch-polyfill`](https://github.com/mathieudutour/sketch-module-fetch-polyfill) (automatically imported by `skpm`).
41+
This example is created with `react-primitives` and renders simultaneously to Sketch & Web — maps are provided by [react-primitives-google-static-map](https://www.npmjs.com/package/react-primitives-google-static-map).
4242

4343
![foursquare-maps](https://cloud.githubusercontent.com/assets/591643/25052095/f666928e-2104-11e7-805c-a3c73ffcabcb.png)

examples/profile-cards-graphql/package.json

+2-3
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,9 @@
1616
"gql-sketch": "^1.0.1",
1717
"react": "^15.4.2",
1818
"react-sketchapp": "^0.10.0",
19-
"react-test-renderer": "^15.4.2",
20-
"sketch-module-fetch-polyfill": "^0.1.3"
19+
"react-test-renderer": "^15.4.2"
2120
},
2221
"devDependencies": {
23-
"skpm": "^0.8.0"
22+
"skpm": "^0.9.0"
2423
}
2524
}

examples/profile-cards-graphql/src/main.js

-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import React from 'react';
22
import { render, Text, View } from 'react-sketchapp';
33
import Client from 'gql-sketch';
4-
import 'sketch-module-fetch-polyfill';
54
import type { User } from './types';
65
import { fonts, spacing } from './designSystem';
76
import Profile from './components/Profile';

examples/profile-cards-primitives/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,6 @@
2323
"react-test-renderer": "^15.4.1"
2424
},
2525
"devDependencies": {
26-
"skpm": "^0.8.0"
26+
"skpm": "^0.9.0"
2727
}
2828
}

examples/profile-cards-react-with-styles/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,6 @@
1919
"react-with-styles": "^1.4.0"
2020
},
2121
"devDependencies": {
22-
"skpm": "^0.8.0"
22+
"skpm": "^0.9.0"
2323
}
2424
}

examples/profile-cards/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,6 @@
1818
"react-test-renderer": "^15.4.2"
1919
},
2020
"devDependencies": {
21-
"skpm": "^0.8.0"
21+
"skpm": "^0.9.0"
2222
}
2323
}

examples/styleguide/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,6 @@
1919
"react-test-renderer": "^15.4.2"
2020
},
2121
"devDependencies": {
22-
"skpm": "^0.8.0"
22+
"skpm": "^0.9.0"
2323
}
2424
}

0 commit comments

Comments
 (0)