Skip to content

Commit

Permalink
feat: upgrade log to v6
Browse files Browse the repository at this point in the history
BREAKING CHANGE:
Drop support for log v5
  • Loading branch information
medikoo committed Apr 10, 2019
1 parent 4d5a5c9 commit 500cba5
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion lib/writer.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"use strict";

const formatParts = require("sprintf-kit/format-parts")
, LogWriter = require("log/lib/writer")
, LogWriter = require("log/lib/abstract-writer")
, resolveParts = require("log-node/lib/resolve-format-parts");

module.exports = class AwsLambdaLogWriter extends LogWriter {
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"repository": "medikoo/log-aws-lambda.git",
"dependencies": {
"d": "^1.0.0",
"log-node": "^6.0.0",
"log-node": "^7.0.0",
"sprintf-kit": "^2.0.0"
},
"devDependencies": {
Expand All @@ -25,7 +25,7 @@
"git-list-updated": "^1.1.2",
"husky": "^1.3.1",
"lint-staged": "^8.1.5",
"log": "^5.1.0",
"log": "^6.0.0",
"ncjsm": "^2.0.1",
"nyc": "^13.3.0",
"prettier-elastic": "^1.16.4",
Expand All @@ -34,7 +34,7 @@
"tape-index": "^3.1.0"
},
"peerDependencies": {
"log": "^5.0.0"
"log": "^6.0.0"
},
"husky": {
"hooks": {
Expand Down
4 changes: 2 additions & 2 deletions test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ const resolveUncached = () => {
return requireUncached(
[
require.resolve("log"), require.resolve("log/lib/private/logger-prototype"),
require.resolve("log/lib/writer"), require.resolve("log/lib/emitter"),
require.resolve("log/lib/register-master"),
require.resolve("log/lib/abstract-writer"), require.resolve("log/lib/emitter"),
require.resolve("log/lib/get-master-writer"),
require.resolve("log/lib/setup-visibility"), require.resolve("../"),
require.resolve("../lib/writer")
],
Expand Down
6 changes: 3 additions & 3 deletions test/lib/writer.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ const resolveUncached = () => {
return requireUncached(
[
require.resolve("log"), require.resolve("log/lib/private/logger-prototype"),
require.resolve("log/lib/emitter"), require.resolve("log/lib/register-master"),
require.resolve("log/lib/writer"), require.resolve("log/lib/setup-visibility"),
require.resolve("../../lib/writer")
require.resolve("log/lib/emitter"), require.resolve("log/lib/get-master-writer"),
require.resolve("log/lib/abstract-writer"),
require.resolve("log/lib/setup-visibility"), require.resolve("../../lib/writer")
],
() => {
const LogWriter = require("../../lib/writer");
Expand Down

0 comments on commit 500cba5

Please sign in to comment.