Skip to content

Commit 6c5425c

Browse files
authored
Merge pull request #5 from ZeeCoder/v3
Updated to require React 16.8.0 or above
2 parents 91edfef + 1433e5c commit 6c5425c

File tree

6 files changed

+461
-314
lines changed

6 files changed

+461
-314
lines changed

.travis.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ deploy:
1313
api_key:
1414
secure: AVhIhFozrf45OjXuFjpL734kSr3Ar/VGqaBzmggF0VWFqOa3stMt6t4gYLRJKrXfr9alMPhB4IdQ7fTjO0EIZh51pT7uRkjAJ8ZUXyDB6fohAFw2Q2mowufOMt2Pu0peC0SDWROosXk0asRAgWhjsMNcNiwgctjr0Pw2DHswq13QBcdL0/sTtTMRnawrjZJBbXtdDb0Q6nfygQjDav6NzpK1uT3elsNKlyf+MiOqNguwc1lgoIqfp2Twvj9a7TmbMf8TFiQjsXZgFZxPYwXZyi62gbcvySEZvEQnYGzUCGsgF+aM3GYsluFmOjMUaUnm9++48gDmKF9+aigowhu5vvVl8XdoI5RIjg/5ibwh04SlHhUab/0JqQy9HmfCkFXDHnzwDyRZMjNlXMfbX+XXSrY3R+WXIfeepdressTHJr3DoPdpkJmic5LN+i8zPjJH/+TU/MMzSot7lTQLD5q5hmxpZi1fCPxAzdVwn7s3uKDtJiUU0i0s864wu7VzRLNBxTLi5uR4mToFNtfQAzuOqOvhK7mGNqSYTIAeCnf67VLHWRLZcqR3bbRCJVt3PT+LKg51nDor/jBnuZTrph1DNo7vGfxIydyQ4EbY3QqDt1gcZoB5imGUc2+4pSzXA0xX9ijwCrNPuh7Vtyg+rV2/R6e9ecdWE5CSz6FzvG5k5TQ=
1515
on:
16-
tags: true
16+
tags: false
1717
repo: ZeeCoder/use-resize-observer
18+
branch: master
1819
skip_cleanup: true

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# CHANGELOG
22

3+
## 3.0.0
4+
5+
- [BREAKING] Requires React 16.8.0 or above, which is the first non-alpha release
6+
that includes hooks
7+
38
## 2.0.1
49

510
- No real changes, testing travis deployment from master

karma.conf.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
module.exports = function(config) {
2-
const singleRun = process.env.KARMA_SINGLE_RUN !== "false";
32
const browsers = (process.env.KARMA_BROWSERS || "Chrome").split(",");
43

54
config.set({
@@ -11,7 +10,7 @@ module.exports = function(config) {
1110
browsers,
1211
reporters: ["spec"],
1312

14-
singleRun,
13+
singleRun: true,
1514

1615
// Max concurrency for SauceLabs OS plan
1716
concurrency: 5,

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "use-resize-observer",
3-
"version": "2.0.1",
3+
"version": "3.0.0",
44
"main": "dist/bundle.cjs.js",
55
"module": "dist/bundle.esm.js",
66
"repository": "[email protected]:ZeeCoder/use-resize-observer.git",
@@ -28,8 +28,8 @@
2828
"resize-observer-polyfill": "^1.5.0"
2929
},
3030
"peerDependencies": {
31-
"react": "16.7.0-alpha.2",
32-
"react-dom": "16.7.0-alpha.2"
31+
"react": ">=16.8.0",
32+
"react-dom": ">=16.8.0"
3333
},
3434
"devDependencies": {
3535
"@babel/core": "^7.1.2",
@@ -44,8 +44,8 @@
4444
"lint-staged": "^7.3.0",
4545
"parcel-bundler": "^1.10.3",
4646
"prettier": "^1.14.3",
47-
"react": "16.7.0-alpha.2",
48-
"react-dom": "16.7.0-alpha.2",
47+
"react": "^16.8.1",
48+
"react-dom": "^16.8.1",
4949
"rollup": "^0.66.6",
5050
"rollup-plugin-babel": "^4.0.3"
5151
}

tests/index.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,6 @@ beforeAll(() => {
4444
global.observed = document.querySelector("#observed");
4545
});
4646

47-
// todo make sure parcel transpiles down to IE10 (example: async and "Set" doesn't work properly)
48-
// todo run in sauce labs with multiple browsers
4947
it("should render with 1x1 initially, before the ResizeObserver is triggered", async () => {
5048
expect(observed.textContent).toBe("1x1");
5149
});

0 commit comments

Comments
 (0)