-
Notifications
You must be signed in to change notification settings - Fork 591
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
bf81869
commit 24671cc
Showing
2 changed files
with
73 additions
and
1 deletion.
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 |
---|---|---|
@@ -0,0 +1,72 @@ | ||
# Changelog | ||
|
||
[npm history][1] | ||
|
||
[1]: https://www.npmjs.com/package/nodejs-translate?activeTab=versions | ||
|
||
## v2.0.0 | ||
|
||
**This release has breaking changes**. | ||
|
||
Previous versions of the API would allow for creating new Translate objects directly from the imported module. To provide consistency with es modules, there are no default exports. | ||
|
||
#### Old code | ||
```js | ||
const translate = require('@google-cloud/translate')({ | ||
keyFilename: '...' | ||
}); | ||
``` | ||
|
||
#### New code | ||
```js | ||
const {Translate} = require('@google-cloud/translate'); | ||
const translate = new Translate({ | ||
keyFilename: '...' | ||
}); | ||
``` | ||
|
||
### More Breaking changes | ||
- fix: drop support for node.js 4.x and 9.x (#64) | ||
|
||
### New Features | ||
- feat: convert to TypeScript (#63) | ||
|
||
### Documentation | ||
- docs: fix link (#72) | ||
- docs: fix small typos (#71) | ||
|
||
### Internal / Testing Changes | ||
- fix: add a synth file (#93) | ||
- chore: add better types (#92) | ||
- chore: ignore package-lock.json (#91) | ||
- chore: use promisify and upgrade common (#90) | ||
- chore: update renovate config (#86) | ||
- chore: remove propprop, clean up (#87) | ||
- remove that whitespace (#85) | ||
- chore(deps): update dependency typescript to v3 (#82) | ||
- chore: move mocha options to mocha.opts (#78) | ||
- chore: assert.deelEqual => assert.deepStrictEqual (#81) | ||
- chore: enable linting and arrow functions (#80) | ||
- chore: require node 8 for samples (#79) | ||
- chore(deps): update dependency gts to ^0.8.0 (#73) | ||
- chore(deps): update dependency eslint-plugin-node to v7 (#75) | ||
- fix(deps): update dependency yargs to v12 (#59) | ||
- chore(deps): update dependency sinon to v6.0.1 (#57) | ||
- Configure Renovate (#52) | ||
- refactor: drop repo-tool as an exec wrapper (#56) | ||
- fix: update linking for samples (#54) | ||
- chore(package): update eslint to version 5.0.0 (#53) | ||
- chore: the ultimate fix for repo-tools EPERM (#45) | ||
- chore: update all dependencies (#50) | ||
- fix(package): update @google-cloud/common to version 0.20.0 (#49) | ||
- fix: update all the dependencies (#48) | ||
- Update nyc to the latest version 🚀 (#47) | ||
- chore: timeout for system test (#44) | ||
- chore: test on node10 (#41) | ||
- chore: workaround for repo-tools EPERM (#36) | ||
- chore: setup nighty build in CircleCI (#34) | ||
- Upgrade repo-tools and regenerate scaffolding. (#33) | ||
- Update proxyquire to the latest version 🚀 (#29) | ||
- Update mocha to the latest version 🚀 (#22) | ||
- Linting per prettier@1.9.0. (#21) | ||
|
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