|
| 1 | +# Changelog |
| 2 | + |
| 3 | +[npm history][1] |
| 4 | + |
| 5 | +[1]: https://www.npmjs.com/package/nodejs-translate?activeTab=versions |
| 6 | + |
| 7 | +## v2.0.0 |
| 8 | + |
| 9 | +**This release has breaking changes**. |
| 10 | + |
| 11 | +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. |
| 12 | + |
| 13 | +#### Old code |
| 14 | +```js |
| 15 | +const translate = require('@google-cloud/translate')({ |
| 16 | + keyFilename: '...' |
| 17 | +}); |
| 18 | +``` |
| 19 | + |
| 20 | +#### New code |
| 21 | +```js |
| 22 | +const {Translate} = require('@google-cloud/translate'); |
| 23 | +const translate = new Translate({ |
| 24 | + keyFilename: '...' |
| 25 | +}); |
| 26 | +``` |
| 27 | + |
| 28 | +### More Breaking changes |
| 29 | +- fix: drop support for node.js 4.x and 9.x (#64) |
| 30 | + |
| 31 | +### New Features |
| 32 | +- feat: convert to TypeScript (#63) |
| 33 | + |
| 34 | +### Documentation |
| 35 | +- docs: fix link (#72) |
| 36 | +- docs: fix small typos (#71) |
| 37 | + |
| 38 | +### Internal / Testing Changes |
| 39 | +- fix: add a synth file (#93) |
| 40 | +- chore: add better types (#92) |
| 41 | +- chore: ignore package-lock.json (#91) |
| 42 | +- chore: use promisify and upgrade common (#90) |
| 43 | +- chore: update renovate config (#86) |
| 44 | +- chore: remove propprop, clean up (#87) |
| 45 | +- remove that whitespace (#85) |
| 46 | +- chore(deps): update dependency typescript to v3 (#82) |
| 47 | +- chore: move mocha options to mocha.opts (#78) |
| 48 | +- chore: assert.deelEqual => assert.deepStrictEqual (#81) |
| 49 | +- chore: enable linting and arrow functions (#80) |
| 50 | +- chore: require node 8 for samples (#79) |
| 51 | +- chore(deps): update dependency gts to ^0.8.0 (#73) |
| 52 | +- chore(deps): update dependency eslint-plugin-node to v7 (#75) |
| 53 | +- fix(deps): update dependency yargs to v12 (#59) |
| 54 | +- chore(deps): update dependency sinon to v6.0.1 (#57) |
| 55 | +- Configure Renovate (#52) |
| 56 | +- refactor: drop repo-tool as an exec wrapper (#56) |
| 57 | +- fix: update linking for samples (#54) |
| 58 | +- chore(package): update eslint to version 5.0.0 (#53) |
| 59 | +- chore: the ultimate fix for repo-tools EPERM (#45) |
| 60 | +- chore: update all dependencies (#50) |
| 61 | +- fix(package): update @google-cloud/common to version 0.20.0 (#49) |
| 62 | +- fix: update all the dependencies (#48) |
| 63 | +- Update nyc to the latest version 🚀 (#47) |
| 64 | +- chore: timeout for system test (#44) |
| 65 | +- chore: test on node10 (#41) |
| 66 | +- chore: workaround for repo-tools EPERM (#36) |
| 67 | +- chore: setup nighty build in CircleCI (#34) |
| 68 | +- Upgrade repo-tools and regenerate scaffolding. (#33) |
| 69 | +- Update proxyquire to the latest version 🚀 (#29) |
| 70 | +- Update mocha to the latest version 🚀 (#22) |
| 71 | +- Linting per [email protected]. ( #21) |
| 72 | + |
0 commit comments