Skip to content

Commit 24671cc

Browse files
JustinBeckwithjkwlui
authored andcommitted
Release v2.0.0 (#94)
1 parent bf81869 commit 24671cc

File tree

2 files changed

+73
-1
lines changed

2 files changed

+73
-1
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
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+

packages/google-cloud-translate/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@google-cloud/translate",
33
"description": "Cloud Translation API Client Library for Node.js",
4-
"version": "1.1.0",
4+
"version": "2.0.0",
55
"license": "Apache-2.0",
66
"author": "Google Inc.",
77
"engines": {

0 commit comments

Comments
 (0)