@google-cloud/logging-bunyan v0.8.0
The codebase has been translated to Typescript. As a result, type definitions are included with this module to support Typescript workflows.
Breaking Changes
- The exports of the modules have changed. The default export of the module was previously a reference to the
LoggingBunyan
constructor. For better compatibility with ES6 modules, this has been modified, and there is no default export, but exports a property namedLoggingBunyan
.
// OLD CODE
const LoggingBunyan = require('@google-cloud/logging-bunyan');
// NEW CODE (Node 6+)
const {LoggingBunyan} = require('@google-cloud/logging-bunyan');
// If you are using ES6 style imports via TypeScript or Babel, you can use es6 style:
import {LoggingBunyan} from '@google-cloud/logging-bunyan';
- As a result of translating the codebase to use proper ES6 classes, the
new
keyword is now required when creating a newLoggingBunyan
object.
// OLD CODE
const loggingBunyan = LoggingBunyan(); // no longer works.
// NEW CODE
const loggingBunyan = new LoggingBunyan();
New Features
- feat: promote record labels to metadata (#17)
c172d7f
Commits
- chore: fix system tests (#43)
5e7150e
- chore: remove unnecessary dependencies (#44)
ee82657
- chore: one more workaround for repo-tools EPERM (#41)
9f05c63
- chore: workaround for repo-tools EPERM (#40)
962f4a0
- chore(package): update @types/mocha to version 5.0.0 (#39)
87840f2
- chore: setup nighty build in CircleCI (#37)
4f14633
- Upgrade repo-tools and regenerate scaffolding. (#35)
1ea584f
- chore(package): update proxyquire to version 2.0.0 (#33)
3f5b008
- chore: removing node7 job from CircleCI (#32)
c5a7d60
- chore: Add README and CODE_OF_CONDUCT to
files
(#23)f77c01f
- chore(package): update eslint-plugin-node to version 6.0.0 (#28)
6b36cd5
- chore: add installation tests (#27)
de5f8d4
- chore(package): update mocha to version 5.0.0 (#26)
f09dfb9
- Update dependencies to enable Greenkeeper 🌴 (#24)
13ed4a3
- feat: promote record labels to metadata (#17)
c172d7f
- chore: remove
--unsafe-perm
from CircleCI config (#22)36937d2
- chore: add build and .DS_Store to .gitignore (#21)
38dbaed
- chore: migrate the code to typescript (#18)
f6bab0f
- chore: Run CI as a non-root user (#19)
bb8d625
- Copy of googleapis/nodejs-logging#28 (#12)
06dfa2f
- Test on Node 9. (#11)
5b762d4