Releases: googleapis/nodejs-logging-winston
v0.8.2
v0.10.0
This release has breaking changes. Support for node.js 4.x and 9.x has ended.
Breaking Changes
New Features
Bug Fixes
- fix: logged errors are reported to error reporting (#148)
- doc: fix link to HttpRequest message (#99)
- fix: prevent permanent merging of labels (#89)
- fix: remove unnecessary runtime dependencies (#73)
- fix: Fix typo in readme (#69)
Dependencies
- fix: Upgrade to @google-cloud/logging 4.x (#168)
- chore(deps): update dependency @google-cloud/common to ^0.25.0 (#163)
- chore(deps): update dependency delay to v4 (#154)
- chore(deps): update dependency @google-cloud/common to ^0.24.0 (#158)
- fix(deps): update dependency @google-cloud/common to ^0.23.0 and logging. (#152)
- fix(deps): update dependency @google-cloud/logging to v3 (#149)
- chore(deps): update dependency pify to v4 (#145)
- fix(deps): update dependency @google-cloud/logging to v2 (#121)
Internal / Testing Changes
- Update CI config (#171)
- Enable prefer-const in the eslint config (#166)
- chore(deps): update dependency @types/glob to v7 (#167)
- fix: fixing samples test and guarding for no entries in system test (#165)
- Enable no-var in eslint (#162)
- fix: presystem-test should func pretest (#164)
- Update CI config (#160)
- Add synth script and update CI (#156)
- Retry npm install in CI (#155)
- chore(deps): update dependency eslint-config-prettier to v3 (#146)
- chore: ignore package-lock.json (#144)
- chore(deps): lock file maintenance (#143)
- chore(deps): lock file maintenance (#142)
- chore(deps): lock file maintenance (#141)
- chore: update renovate config (#140)
- chore: remove greenkeeper badge (#139)
- test: throw on deprecation (#138)
- chore(deps): lock file maintenance (#137)
- chore(deps): update dependency typescript to v3 (#136)
- chore: assert.deelEqual => assert.deepStrictEqual (#135)
- chore: move mocha options to mocha.opts (#133)
- chore: require node 8 for samples (#134)
- chore(deps): lock file maintenance (#132)
- chore(deps): lock file maintenance (#131)
- chore(deps): update dependency eslint-plugin-node to v7 (#130)
- chore(deps): lock file maintenance (#128)
- chore(deps): update dependency gts to ^0.8.0 (#127)
- chore(deps): lock file maintenance (#125)
- chore(deps): lock file maintenance (#124)
- chore(deps): lock file maintenance (#123)
- fix(deps): update dependency @sindresorhus/is to ^0.10.0 (#120)
- chore(deps): lock file maintenance (#119)
- chore(deps): lock file maintenance (#118)
- fix(deps): update dependency yargs to v12 (#117)
- chore: update packages (#114)
- chore(deps): update dependency ava to v0.25.0 (#110)
- Configure Renovate (#102)
- chore(package): update eslint to version 5.0.0 (#103)
- refactor: drop repo-tool as an exec wrapper (#107)
- chore: update sample lockfiles (#106)
- fix: update linking for samples (#104)
- cleanup: get rid of unncessary type casts (#101)
- chore(package): update cpy-cli to version 2.0.0 (#86)
- chore(package): update to the latest gts and typescript (#100)
- test: fix race between sample and system tests (#98)
- fix: fix broken install tests (#96)
- chore: remove
--bail
from system tests config (#95) - chore: lock files maintenance (#83)
- chore: the ultimate fix for repo-tools EPERM (#82)
- chore: timeout for system test (#81)
- chore(package): update @types/node to version 10.0.9 (#80)
- chore: lock files maintenance (#79)
- chore: test on node10 (#77)
- chore: lock files maintenance (#75)
@google-cloud/logging-winston v0.9.0
New Features
The options object passed to the LoggingWinston
constructor can now have prefix
and labels
properties.
If the prefix
string property is specified, its value will be prepended to all logs.
For example, if prefix: 'main'
is used, then logs will look as follows:
<timestamp> [main] <log message>
If the labels
property is specified, which is an object where the value of each key is a string, those labels will be applied to each log message.
Commits
- Update @google-cloud/common to the latest version 🚀 (#61)
cf7373b
- chore(package): update @types/is to version 0.0.19 (#63)
5ceca73
- chore: one more workaround for repo-tools EPERM (#65)
9a22a1e
- chore: workaround for repo-tools EPERM (#64)
597061a
- chore(package): update @types/mocha to version 5.0.0 (#62)
1d4391a
- chore: setup nighty build in CircleCI (#60)
4f55583
- Upgrade repo-tools and regenerate scaffolding. (#59)
ca04025
- chore(package): upgrade logging dep (#58)
fd3582b
- chore(package): update proxyquire to version 2.0.0 (#55)
d8b1d4c
- chore: change
label
toprefix
(#53)d0eae35
- chore: removing node7 job from CircleCI (#51)
b3eed8f
- chore: add install tests for the label[s] options (#50)
3ab6e86
- feature: allow specifying default labels in the constructor (#46)
0e8ecff
@google-cloud/logging-winston v0.8.1
Fixes
- This patch release updates dependencies of the package to fix a security issue caused by
log-driver
package. There are no other changes in this release.
@google-cloud/logging-winston 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
LoggingWinston
constructor. For better compatibility with ES6 modules, this has been modified, and there is no default export, but exports a property namedLoggingWinston
.
// OLD CODE
const LoggingWinston = require('@google-cloud/logging-winston');
// NEW CODE (Node 6+)
const {LoggingWinston} = require('@google-cloud/logging-winston');
// NEW Code (Node 4)
const LoggingWinston = require('@google-cloud/logging-winston').LoggingWinston;
// If you are using ES6 style imports via TypeScript or Babel, you can use es6 style:
import {LogginWinston} from '@google-cloud/logging-winston'
- As a result of translating the codebase to use proper ES6 classes, the
new
keyword is now required when creating a newLoggingWinston
object.
// OLD CODE
const loggingWinston = LoggingWinston(); // no longer works.
// NEW CODE
const loggingWinston = new LoggingWinston();
New Features
- Add label support for log entries (#20)
Commits
- chore: add
npm install
beforenpm publish
(#35)bf69d32
- chore: compile before system and samples tests (#33)
717567c
- chore: add installation tests (#31)
ab73374
- chore(package): update mocha to version 5.0.0 (#30)
e004a9e
- fix: run tests with source map support (#28)
2dd52eb
- feat: add support of labels via metadata in log entry (#23)
b97bee9
- chore: migrate codebase to typescript (#27)
e82b8d2
- make CI run as non-root (#25)
c65024c
- chore(package): update dependencies
72accfc
- fix: Fix logging-winston.js lint (#17)
06adc2a
- Test on Node 9. (#9)
b6955d8
@google-cloud/logging-winston v0.7.0
Features
Runnable samples
There are now runnable samples in the samples/
directory. These samples demonstrate the use of this API and offer an additional resource for getting started. These also power the readme, and are automatically tested to ensure that they are up-to-date and correct.
Implementation Details
- Change to a new linter (ESLint) and code style formatter (prettify).
- Update docs to use JSDoc 3.
- Migrate to the
googleapis/nodejs-logging-winston
repository.
Refer to the nodejs-logging-winston API reference documentation for details.