-
Notifications
You must be signed in to change notification settings - Fork 68
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update the CHANGELOG and bump the package version
- Loading branch information
Showing
2 changed files
with
61 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,64 +1,88 @@ | ||
## CHANGELOG | ||
|
||
### 1.0.0 | ||
|
||
- Use `React.createPortal` :tada: Big thanks to @doronbrikman for their work on this. In versions where `createPortal` isn't available we still fall back to the old method. | ||
- Default export has changed: You can now use the default export in ES Modules and TypeScript, but in CommonJS environments you'll have to use `require('react-tether').default`. See [the examples](./example/tests/). | ||
- TypeScript definition file built in | ||
- Upgrade to Webpack 4 for the UMD distribution. Smaller bundle sizes! | ||
- Internal: New unit and E2E tests with code coverage, a [new demo page](https://danreeves.github.io/react-tether/), linting and prettier applied to the source, publishing less files to npm. | ||
- :crying_cat_face: Dropped bower support. Recommended upgrade path is either npm or [unpkg](https://unpkg.com/[email protected]/lib/react-tether.js) | ||
|
||
### 0.6.1 | ||
|
||
- Upgrade tether to 1.4.3 [#63](https://github.com/danreeves/react-tether/pull/63) | ||
|
||
### 0.6.0 | ||
|
||
- Update compatibility for React 16 [#57](https://github.com/souporserious/react-tether/pull/57) | ||
- Update repo to point at danreeves/react-tether | ||
|
||
### 0.5.7 | ||
|
||
Update the target node when updating the component [PR #48](https://github.com/souporserious/react-tether/pull/48) | ||
|
||
Compatibility React 15.5.0 [PR #49](https://github.com/souporserious/react-tether/pull/49) | ||
|
||
### 0.5.6 | ||
|
||
Properly call `onUpdate` and `onRepositioned` [PR #40](https://github.com/souporserious/react-tether/pull/40) | ||
|
||
Only render subtree if `destroy` method was not called yet [PR #41](https://github.com/souporserious/react-tether/pull/41) | ||
|
||
Use `babel-plugin-add-module-exports` for `dist` files | ||
|
||
### 0.5.5 | ||
|
||
Add `.npmignore` [PR #39](https://github.com/souporserious/react-tether/pull/39) | ||
|
||
### 0.5.4 | ||
|
||
Expose Tether event system as imperative and props API [PR #30](https://github.com/souporserious/react-tether/pull/30) | ||
|
||
Update tether version to 1.3.7 [PR #32](https://github.com/souporserious/react-tether/pull/32) | ||
|
||
Attachment positions [PR #33](https://github.com/souporserious/react-tether/pull/33) | ||
|
||
### 0.5.2 | ||
|
||
Better `renderElementTo` [PR #19](https://github.com/souporserious/react-tether/pull/19) | ||
|
||
Use `Children.toArray` instead of `Children.forEach` to get individual children | ||
|
||
### 0.5.1 | ||
|
||
Fixed Tether element props not being re-rendered on change | ||
|
||
### 0.5.0 | ||
|
||
Added the ability to apply an `id`, `className`, or `style` to the wrapper Tether element. | ||
|
||
### 0.4.0 | ||
|
||
Fixes: | ||
`renderElementTo` now uses `document.querySelector` | ||
`renderElementTo` now uses `document.querySelector` | ||
|
||
Add dependency warning for people using old school script tags | ||
|
||
### 0.3.3 | ||
|
||
Fix ASI issue with document.body [PR #12](https://github.com/souporserious/react-tether/pull/12) | ||
|
||
### 0.3.2 | ||
|
||
Fixes: | ||
|
||
- Unmount node only if it was mounted [#8](https://github.com/souporserious/react-tether/issues/8) | ||
- Lazily evaluate document.body [#6](https://github.com/souporserious/react-tether/issues/6) | ||
- Server-side rendering [#4](https://github.com/souporserious/react-tether/issues/4) | ||
|
||
### 0.3.1 | ||
|
||
Fix tethered element not being positioned correctly | ||
|
||
### 0.3.0 | ||
|
||
All [Tether options](http://tether.io/#options) are now props | ||
|
||
`renderElementTag` prop to specify which DOM tag to use to render the second child to | ||
|
@@ -70,6 +94,7 @@ Added `position` public method from Tether | |
removed `shallowCompare` | ||
|
||
### 0.2.0 | ||
|
||
Bower exposed lib name renamed to `TetherComponent` from `TetherElement` | ||
|
||
New API accepts a max of two children. First child is used as the target and second child is used as the element that is being tethered. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,20 @@ | ||
{ | ||
"name": "react-tether", | ||
"version": "0.6.1", | ||
"version": "1.0.0", | ||
"description": "Drop content anywhere on the page.", | ||
"main": "lib/react-tether.js", | ||
"types": "lib/react-tether.d.ts", | ||
"scripts": { | ||
"build:lib": "babel src --out-dir lib", | ||
"build": | ||
"npm run build:lib && webpack --mode production && cp src/react-tether.d.ts lib/react-tether.d.ts", | ||
"build": "npm run build:lib && webpack --mode production && cp src/react-tether.d.ts lib/react-tether.d.ts", | ||
"prebuild": "rm -rf dist && mkdir dist && rm -rf lib && mkdir lib", | ||
"prepack": "npm run build", | ||
"prepublishOnly": "npm run test", | ||
"demo": "parcel example/index.html", | ||
"demo:deploy": "./bin/build-demo", | ||
"unit": "jest tests/unit", | ||
"e2e": "testcafe chrome tests/e2e --app 'npm run demo'", | ||
"e2e:full": | ||
"testcafe \"saucelabs:Chrome\",\"saucelabs:Firefox\",\"saucelabs:Safari\",\"saucelabs:MicrosoftEdge\" tests/e2e --app 'npm run demo'", | ||
"e2e:full": "testcafe \"saucelabs:Chrome\",\"saucelabs:Firefox\",\"saucelabs:Safari\",\"saucelabs:MicrosoftEdge\" tests/e2e --app 'npm run demo'", | ||
"test": "npm run lint && npm run typescript && npm run unit", | ||
"tdd": "npm run unit -- --watch", | ||
"react:16": "enzyme-adapter-react-install 16", | ||
|
@@ -30,9 +28,14 @@ | |
"type": "git", | ||
"url": "https://github.com/danreeves/react-tether" | ||
}, | ||
"keywords": ["react", "react-tether", "tether", "component", "drop"], | ||
"author": | ||
"Travis Arnold <[email protected]> (http://souporserious.com)", | ||
"keywords": [ | ||
"react", | ||
"react-tether", | ||
"tether", | ||
"component", | ||
"drop" | ||
], | ||
"author": "Travis Arnold <[email protected]> (http://souporserious.com)", | ||
"license": "MIT", | ||
"bugs": { | ||
"url": "https://github.com/danreeves/react-tether/issues" | ||
|
@@ -87,15 +90,26 @@ | |
"webpack-cli": "2.1.5", | ||
"xo": "0.20.3" | ||
}, | ||
"files": ["dist", "lib"], | ||
"files": [ | ||
"dist", | ||
"lib" | ||
], | ||
"prettier": { | ||
"singleQuote": true, | ||
"trailingComma": "es5" | ||
}, | ||
"xo": { | ||
"parser": "babel-eslint", | ||
"envs": ["node", "browser", "es6", "jest"], | ||
"extends": ["prettier", "plugin:react/recommended"], | ||
"envs": [ | ||
"node", | ||
"browser", | ||
"es6", | ||
"jest" | ||
], | ||
"extends": [ | ||
"prettier", | ||
"plugin:react/recommended" | ||
], | ||
"overrides": [ | ||
{ | ||
"files": "src/TetherComponent.jsx", | ||
|
@@ -106,7 +120,9 @@ | |
}, | ||
{ | ||
"files": "tests/e2e/*.js", | ||
"globals": ["fixture"], | ||
"globals": [ | ||
"fixture" | ||
], | ||
"rules": { | ||
"no-unused-expressions": 0 | ||
} | ||
|
@@ -115,14 +131,19 @@ | |
"settings": { | ||
"import/resolver": { | ||
"node": { | ||
"extensions": [".js", ".jsx"] | ||
"extensions": [ | ||
".js", | ||
".jsx" | ||
] | ||
} | ||
} | ||
} | ||
}, | ||
"jest": { | ||
"setupTestFrameworkScriptFile": "<rootDir>tests/jest-config.js", | ||
"collectCoverageFrom": ["src/**/*.{js,jsx}"] | ||
"collectCoverageFrom": [ | ||
"src/**/*.{js,jsx}" | ||
] | ||
}, | ||
"lint-staged": { | ||
"*.{js,jsx,json,md}": "pretty-quick --staged" | ||
|