Dataset Viewer
Auto-converted to Parquet Duplicate
author
int64
4.98k
943k
date
stringdate
2017-04-15 16:45:02
2022-02-25 15:32:15
timezone
int64
-46,800
39.6k
hash
stringlengths
40
40
message
stringlengths
8
468
mods
listlengths
1
16
language
stringclasses
9 values
license
stringclasses
2 values
repo
stringclasses
119 values
original_message
stringlengths
12
491
is_CCS
int64
1
1
commit_type
stringclasses
129 values
commit_scope
nulllengths
1
44
743,977
15.04.2017 16:45:02
18,000
6f78c05a3a719f3c40e3b8197dd1ea2e85afd627
feat: allow strict mode to be disabled BREAKING CHANGE: the first argument to strict() is now used to enable/disable its functionality, rather than controlling whether or not it is global.
[ { "change_type": "MODIFY", "diff": "@@ -1809,7 +1809,7 @@ Specify --help for available options\nSpecifies either a single option key (string), or an array of options.\nIf any of the options is present, yargs validation is skipped.\n-.strict([global=true])\n+.strict([enabled=true])\n---------\nAny command-line argument given that is not demanded, or does not have a\n", "new_path": "README.md", "old_path": "README.md" }, { "change_type": "MODIFY", "diff": "@@ -1000,19 +1000,6 @@ describe('Command', function () {\ncommandCalled.should.be.true\n})\n- it('does not apply strict globally when passed value of `false`', function () {\n- var commandCalled = false\n- yargs('hi')\n- .strict(false)\n- .command('hi', 'The hi command', function (innerYargs) {\n- commandCalled = true\n- innerYargs.getStrict().should.be.false\n- })\n- yargs.getStrict().should.be.true\n- yargs.argv // parse and run command\n- commandCalled.should.be.true\n- })\n-\n// address regression introduced in #766, thanks @nexdrew!\nit('does not fail strict check due to postional command arguments', function (done) {\nyargs()\n@@ -1037,6 +1024,19 @@ describe('Command', function () {\n})\n})\n+ it('allows a command to override global`', function () {\n+ var commandCalled = false\n+ yargs('hi')\n+ .strict()\n+ .command('hi', 'The hi command', function (innerYargs) {\n+ commandCalled = true\n+ innerYargs.strict(false).getStrict().should.be.false\n+ })\n+ yargs.getStrict().should.be.true\n+ yargs.argv // parse and run command\n+ commandCalled.should.be.true\n+ })\n+\nit('does not fire command if validation fails', function (done) {\nvar commandRun = false\nyargs()\n", "new_path": "test/command.js", "old_path": "test/command.js" }, { "change_type": "MODIFY", "diff": "@@ -225,7 +225,6 @@ describe('yargs dsl tests', function () {\n.implies('foo', 'snuh')\n.conflicts('qux', 'xyzzy')\n.group('foo', 'Group:')\n- .strict(false)\n.exitProcess(false) // defaults to true.\n.global('foo', false)\n.global('qux', false)\n@@ -266,7 +265,6 @@ describe('yargs dsl tests', function () {\nexpect(y.getValidationInstance().getConflicting()).to.deep.equal({})\nexpect(y.getCommandInstance().getCommandHandlers()).to.deep.equal({})\nexpect(y.getExitProcess()).to.equal(false)\n- expect(y.getStrict()).to.equal(false)\nexpect(y.getDemandedOptions()).to.deep.equal({})\nexpect(y.getDemandedCommands()).to.deep.equal({})\nexpect(y.getGroups()).to.deep.equal({})\n", "new_path": "test/yargs.js", "old_path": "test/yargs.js" }, { "change_type": "MODIFY", "diff": "@@ -126,7 +126,6 @@ function Yargs (processArgs, cwd, parentRequire) {\ncommand = command ? command.reset() : Command(self, usage, validation)\nif (!completion) completion = Completion(self, usage, command)\n- if (!strictGlobal) strict = false\ncompletionCommand = null\noutput = ''\nexitError = null\n@@ -695,11 +694,9 @@ function Yargs (processArgs, cwd, parentRequire) {\n}\nvar strict = false\n- var strictGlobal = false\n- self.strict = function (global) {\n- argsert('[boolean]', [global], arguments.length)\n- strict = true\n- strictGlobal = global !== false\n+ self.strict = function (enabled) {\n+ argsert('[boolean]', [enabled], arguments.length)\n+ strict = enabled !== false\nreturn self\n}\nself.getStrict = function () {\n", "new_path": "yargs.js", "old_path": "yargs.js" } ]
JavaScript
MIT License
yargs/yargs
feat: allow strict mode to be disabled (#840) BREAKING CHANGE: the first argument to strict() is now used to enable/disable its functionality, rather than controlling whether or not it is global.
1
feat
null
807,849
18.04.2017 12:18:23
25,200
2e5cf3dbe6ee300915a8fd68cc32b13f0833c0cf
deps: upgrade yargs
[ { "change_type": "MODIFY", "diff": "\"temp-write\": \"^3.2.0\",\n\"write-json-file\": \"^2.0.0\",\n\"write-pkg\": \"^2.1.0\",\n- \"yargs\": \"^7.0.2\"\n+ \"yargs\": \"^7.1.0\"\n},\n\"bin\": {\n\"lerna\": \"./bin/lerna.js\"\n", "new_path": "package.json", "old_path": "package.json" }, { "change_type": "MODIFY", "diff": "@@ -4005,9 +4005,9 @@ yargs@^6.3.0:\ny18n \"^3.2.1\"\nyargs-parser \"^4.2.0\"\n-yargs@^7.0.2:\n- version \"7.0.2\"\n- resolved \"https://registry.yarnpkg.com/yargs/-/yargs-7.0.2.tgz#115b97df1321823e8b8648e8968c782521221f67\"\n+yargs@^7.1.0:\n+ version \"7.1.0\"\n+ resolved \"https://registry.yarnpkg.com/yargs/-/yargs-7.1.0.tgz#6ba318eb16961727f5d284f8ea003e8d6154d0c8\"\ndependencies:\ncamelcase \"^3.0.0\"\ncliui \"^3.2.0\"\n", "new_path": "yarn.lock", "old_path": "yarn.lock" } ]
JavaScript
MIT License
lerna/lerna
deps: upgrade yargs
1
deps
null
807,849
18.04.2017 12:22:21
25,200
bcb12789896379844c768608ca8a69d8750e42cd
bin: remove yargs.terminalWidth() workaround
[ { "change_type": "MODIFY", "diff": "@@ -11,12 +11,6 @@ const globalKeys = Object.keys(globalOptions).concat([\n\"version\",\n]);\n-// workaround non-interactive yargs.terminalWidth() error\n-// until https://github.com/yargs/yargs/pull/837 is released\n-function terminalWidth() {\n- return typeof process.stdout.columns !== \"undefined\" ? process.stdout.columns : null;\n-}\n-\nyargs\n.epilogue(dedent`\nWhen a command fails, all logs are written to lerna-debug.log in the current working directory.\n@@ -24,7 +18,7 @@ yargs\nFor more information, find our manual at https://github.com/lerna/lerna\n`)\n.usage(\"Usage: $0 <command> [options]\")\n- .wrap(terminalWidth())\n+ .wrap(yargs.terminalWidth())\n.options(globalOptions).group(globalKeys, \"Global Options:\")\n.commandDir(\"../lib/commands\")\n.demandCommand()\n", "new_path": "bin/lerna.js", "old_path": "bin/lerna.js" } ]
JavaScript
MIT License
lerna/lerna
bin: remove yargs.terminalWidth() workaround
1
bin
null
807,849
18.04.2017 14:03:15
25,200
2ac3ba1b020c7b66df91077067a6b288e5cc7ceb
cli: move guts of bin/lerna into src/cli
[ { "change_type": "MODIFY", "diff": "#!/usr/bin/env node\n\"use strict\";\n-const yargs = require(\"yargs\");\n-const dedent = require(\"dedent\");\n-const globalOptions = require(\"../lib/Command\").builder;\n-\n-// the options grouped under \"Global Options:\" header\n-const globalKeys = Object.keys(globalOptions).concat([\n- \"help\",\n- \"version\",\n-]);\n-\n-yargs\n- .epilogue(dedent`\n- When a command fails, all logs are written to lerna-debug.log in the current working directory.\n-\n- For more information, find our manual at https://github.com/lerna/lerna\n- `)\n- .usage(\"Usage: $0 <command> [options]\")\n- .wrap(yargs.terminalWidth())\n- .options(globalOptions).group(globalKeys, \"Global Options:\")\n- .commandDir(\"../lib/commands\")\n- .demandCommand()\n- .help(\"h\").alias(\"h\", \"help\")\n- .version().alias(\"v\", \"version\")\n- .argv;\n+require(\"../lib/cli\")().parse(process.argv.slice(2));\n", "new_path": "bin/lerna.js", "old_path": "bin/lerna.js" }, { "change_type": "ADD", "diff": "+import yargs from \"yargs/yargs\";\n+import dedent from \"dedent\";\n+import { builder as globalOptions } from \"./Command\";\n+\n+/**\n+Essentially a factory that returns a yargs() instance that can\n+be used to call parse() immediately (as in ../bin/lerna) or by\n+unit tests to encapsulate instantiation with \"real\" arguments.\n+\n+@param {Array = []} argv\n+@param {String = process.cwd()} cwd\n+**/\n+export default function CLI(argv, cwd) {\n+ const cli = yargs(argv, cwd);\n+\n+ // the options grouped under \"Global Options:\" header\n+ const globalKeys = Object.keys(globalOptions).concat([\n+ \"help\",\n+ \"version\",\n+ ]);\n+\n+ return cli\n+ .usage(\"Usage: $0 <command> [options]\")\n+ .options(globalOptions).group(globalKeys, \"Global Options:\")\n+ .commandDir(\"../lib/commands\")\n+ .demandCommand()\n+ .help(\"h\").alias(\"h\", \"help\")\n+ .version().alias(\"v\", \"version\")\n+ .wrap(cli.terminalWidth())\n+ .epilogue(dedent`\n+ When a command fails, all logs are written to lerna-debug.log in the current working directory.\n+\n+ For more information, find our manual at https://github.com/lerna/lerna\n+ `);\n+}\n", "new_path": "src/cli.js", "old_path": null } ]
JavaScript
MIT License
lerna/lerna
cli: move guts of bin/lerna into src/cli
1
cli
null
807,849
18.04.2017 14:04:13
25,200
957fdaddd6cea23d8e7eb626833e2f9b7763d2d2
cli: add group 'Command Options' so they sort above 'Global Options'
[ { "change_type": "MODIFY", "diff": "@@ -18,15 +18,18 @@ export const describe = \"Link local packages together and install remaining pack\nexport const builder = {\n\"hoist\": {\n+ group: \"Command Options:\",\ndescribe: \"Install external dependencies matching [glob] to the repo root\",\ntype: \"string\",\ndefaultDescription: \"'**'\",\n},\n\"nohoist\": {\n+ group: \"Command Options:\",\ndescribe: \"Don't hoist external dependencies matching [glob] to the repo root\",\ntype: \"string\"\n},\n\"npm-client\": {\n+ group: \"Command Options:\",\ndescribe: \"Executable used to install dependencies (npm, yarn, pnpm, ...)\",\ntype: \"string\",\nrequiresArg: true,\n", "new_path": "src/commands/BootstrapCommand.js", "old_path": "src/commands/BootstrapCommand.js" }, { "change_type": "MODIFY", "diff": "@@ -15,6 +15,7 @@ export const describe = \"Remove the node_modules directory from all packages.\";\nexport const builder = {\n\"yes\": {\n+ group: \"Command Options:\",\ndescribe: \"Skip all confirmation prompts\"\n}\n};\n", "new_path": "src/commands/CleanCommand.js", "old_path": "src/commands/CleanCommand.js" }, { "change_type": "MODIFY", "diff": "@@ -19,6 +19,7 @@ export const describe = dedent`\nexport const builder = {\n\"yes\": {\n+ group: \"Command Options:\",\ndescribe: \"Skip all confirmation prompts\"\n}\n};\n", "new_path": "src/commands/ImportCommand.js", "old_path": "src/commands/ImportCommand.js" }, { "change_type": "MODIFY", "diff": "@@ -24,10 +24,12 @@ export const describe = \"Publish packages in the current project.\";\nexport const builder = {\n\"canary\": {\n+ group: \"Command Options:\",\ndescribe: \"Publish packages after every successful merge using the sha as part of the tag.\",\nalias: \"c\"\n},\n\"cd-version\": {\n+ group: \"Command Options:\",\ndescribe: \"Skip the version selection prompt and increment semver 'major', 'minor', or 'patch'.\",\ntype: \"string\",\nrequiresArg: true,\n@@ -39,43 +41,53 @@ export const builder = {\n},\n},\n\"conventional-commits\": {\n+ group: \"Command Options:\",\ndescribe: \"Use angular conventional-commit format to determine version bump and generate CHANGELOG.\"\n},\n\"exact\": {\n+ group: \"Command Options:\",\ndescribe: \"Specify cross-dependency version numbers exactly rather than with a caret (^).\"\n},\n\"git-remote\": {\n+ group: \"Command Options:\",\ndefaultDescription: \"origin\",\ndescribe: \"Push git changes to the specified remote instead of 'origin'.\",\ntype: \"string\",\nrequiresArg: true\n},\n\"yes\": {\n+ group: \"Command Options:\",\ndescribe: \"Skip all confirmation prompts.\"\n},\n\"message\": {\n+ group: \"Command Options:\",\ndescribe: \"Use a custom commit message when creating the publish commit.\",\nalias: \"m\",\ntype: \"string\",\nrequiresArg: true\n},\n\"npm-tag\": {\n+ group: \"Command Options:\",\ndescribe: \"Publish packages with the specified npm dist-tag\",\ntype: \"string\",\nrequiresArg: true\n},\n\"repo-version\": {\n+ group: \"Command Options:\",\ndescribe: \"Specify repo version to publish.\",\ntype: \"string\",\nrequiresArg: true\n},\n\"skip-git\": {\n+ group: \"Command Options:\",\ndescribe: \"Skip commiting, tagging, and pushing git changes.\"\n},\n\"skip-npm\": {\n+ group: \"Command Options:\",\ndescribe: \"Stop before actually publishing change to npm.\"\n},\n\"skip-temp-tag\": {\n+ group: \"Command Options:\",\ndescribe: \"Do not create a temporary tag while publishing.\"\n}\n};\n", "new_path": "src/commands/PublishCommand.js", "old_path": "src/commands/PublishCommand.js" }, { "change_type": "MODIFY", "diff": "@@ -12,6 +12,7 @@ export const describe = \"Run an npm script in each package that contains that sc\nexport const builder = {\n\"stream\": {\n+ group: \"Command Options:\",\ndescribe: \"Stream output with lines prefixed by package.\"\n}\n};\n", "new_path": "src/commands/RunCommand.js", "old_path": "src/commands/RunCommand.js" } ]
JavaScript
MIT License
lerna/lerna
cli: add group 'Command Options' so they sort above 'Global Options'
1
cli
null
743,863
30.04.2017 23:28:16
25,200
4c824c95470738501a6867cbbeaef99a1832775f
docs: made a few tweaks to CHANGELOG
[ { "change_type": "MODIFY", "diff": "@@ -26,9 +26,10 @@ All notable changes to this project will be documented in this file. See [standa\n### BREAKING CHANGES\n-* environment variables will now override config files, '--' is now populated rather than '_' when parsing is stopped.\n+* environment variables now override config files in order of precedence.\n+* '--' is now populated rather than '_' when parsing is stopped.\n* extends functionality now always loads the JSON provided, rather than reading from a specific key\n-* this pull requests introduces language features that require Node 4+.\n+* Node 4+ is now required; this will allow us to start updating our dependencies.\n* the first argument to strict() is now used to enable/disable its functionality, rather than controlling whether or not it is global.\n", "new_path": "CHANGELOG.md", "old_path": "CHANGELOG.md" } ]
JavaScript
MIT License
yargs/yargs
docs: made a few tweaks to CHANGELOG
1
docs
null
743,863
01.05.2017 23:42:24
25,200
692ee205e24ee7cb19a848c3e88ee19d2ffd72ef
chore: update description for strict()
[ { "change_type": "MODIFY", "diff": "@@ -1847,8 +1847,7 @@ If any of the options is present, yargs validation is skipped.\nAny command-line argument given that is not demanded, or does not have a\ncorresponding description, will be reported as an error.\n-`global` indicates whether `strict()` should be enabled both\n-at the top-level and for each sub-command.\n+Unrecognized commands will also be reported as errors.\n<a name=\"string\"></a>.string(key)\n------------\n", "new_path": "README.md", "old_path": "README.md" } ]
JavaScript
MIT License
yargs/yargs
chore: update description for strict()
1
chore
null
743,863
26.06.2017 15:42:19
25,200
747d426eb64c82ae384ffe6250ecacbcf17539a6
docs: slight tweak to yargs sample code
[ { "change_type": "MODIFY", "diff": "@@ -53,7 +53,7 @@ Retreat from the xupptumblers!\n```js\n#!/usr/bin/env node\n-const yargs = require('yargs') // eslint-disable-line\n+require('yargs') // eslint-disable-line\n.command('serve', 'start the server', (yargs) => {\nyargs.option('port', {\ndescribe: 'port to bind on',\n", "new_path": "README.md", "old_path": "README.md" } ]
JavaScript
MIT License
yargs/yargs
docs: slight tweak to yargs sample code
1
docs
null
743,989
27.06.2017 03:51:52
-19,080
628be21f4300852fb3f905264b222673fbd160f3
fix: don't bother calling JSON.stringify() on string default values
[ { "change_type": "MODIFY", "diff": "@@ -413,7 +413,7 @@ module.exports = function (yargs, y18n) {\n} else {\nswitch (typeof value) {\ncase 'string':\n- string += JSON.stringify(value)\n+ string += '\"' + value + '\"'\nbreak\ncase 'object':\nstring += JSON.stringify(value)\n", "new_path": "lib/usage.js", "old_path": "lib/usage.js" } ]
JavaScript
MIT License
yargs/yargs
fix: don't bother calling JSON.stringify() on string default values (#891)
1
fix
null
807,849
28.06.2017 11:57:13
25,200
d24704def1444ec87c0d4145da467dcdf761958c
fix: shorten error message assert to match npm5 semantics
[ { "change_type": "MODIFY", "diff": "@@ -117,7 +117,7 @@ describe(\"lerna exec\", () => {\nconst { stdout, stderr } = await execa(LERNA_BIN, args, { cwd });\nexpect(stderr).toMatch(\n- \"Failed at the package-1@1.0.0 fail-or-succeed script 'echo \\\"failure!\\\" && exit 1'.\"\n+ \"Failed at the package-1@1.0.0 fail-or-succeed script\"\n);\nexpect(stdout).toMatch(\"failure!\");\nexpect(stdout).toMatch(\"success!\");\n@@ -135,7 +135,7 @@ describe(\"lerna exec\", () => {\nconst { stdout, stderr } = await execa(LERNA_BIN, args, { cwd });\nexpect(stderr).toMatch(\n- \"Failed at the package-1@1.0.0 fail-or-succeed script 'echo \\\"failure!\\\" && exit 1'.\"\n+ \"Failed at the package-1@1.0.0 fail-or-succeed script\"\n);\nexpect(stdout).toMatch(\"failure!\");\nexpect(stdout).toMatch(\"success!\");\n", "new_path": "test/integration/lerna-exec.test.js", "old_path": "test/integration/lerna-exec.test.js" } ]
JavaScript
MIT License
lerna/lerna
fix: shorten error message assert to match npm5 semantics
1
fix
null
808,054
28.06.2017 19:41:47
-7,200
4adfdd343dfc09937b94073ed016c2fe05a257d1
fix: Run yarn in non-interactive mode
[ { "change_type": "MODIFY", "diff": "@@ -82,6 +82,10 @@ export default class NpmUtilities {\nargs.push(\"--mutex\", config.mutex);\n}\n+ if (cmd === \"yarn\") {\n+ args.push(\"--non-interactive\");\n+ }\n+\nlog.silly(\"installInDir\", [cmd, args]);\nChildProcessUtilities.exec(cmd, args, opts, done);\n}).catch(done);\n", "new_path": "src/NpmUtilities.js", "old_path": "src/NpmUtilities.js" }, { "change_type": "MODIFY", "diff": "@@ -387,7 +387,7 @@ describe(\"NpmUtilities\", () => {\n);\nexpect(ChildProcessUtilities.exec).lastCalledWith(\n\"yarn\",\n- [\"install\", \"--mutex\", \"network:12345\"],\n+ [\"install\", \"--mutex\", \"network:12345\", \"--non-interactive\"],\n{\ndirectory,\nregistry: undefined,\n", "new_path": "test/NpmUtilities.js", "old_path": "test/NpmUtilities.js" } ]
JavaScript
MIT License
lerna/lerna
fix: Run yarn in non-interactive mode (#897)
1
fix
null
807,872
28.06.2017 21:21:38
-7,200
a6a3da8ba98d42ca971b4ead2f79402665c0335e
chore(travis): test against node 8 and npm 5
[ { "change_type": "MODIFY", "diff": "@@ -3,7 +3,7 @@ git:\nsudo: false\nlanguage: node_js\nnode_js:\n- - '7'\n+ - '8'\n- '6'\n- '4'\n", "new_path": ".travis.yml", "old_path": ".travis.yml" }, { "change_type": "MODIFY", "diff": "@@ -2,7 +2,7 @@ clone_depth: 1\nenvironment:\nmatrix:\n- - nodejs_version: \"7\"\n+ - nodejs_version: \"8\"\n- nodejs_version: \"6\"\n- nodejs_version: \"4\"\n", "new_path": "appveyor.yml", "old_path": "appveyor.yml" } ]
JavaScript
MIT License
lerna/lerna
chore(travis): test against node 8 and npm 5 (#861)
1
chore
null
743,863
04.07.2017 12:04:45
25,200
a8e0cffbdd36eda0b6f93ca48f0ccfcf6e4af355
fix: defaulting keys to 'undefined' interfered with conflicting key logic
[ { "change_type": "MODIFY", "diff": "@@ -308,10 +308,10 @@ module.exports = function (yargs, usage, y18n) {\nself.conflicting = function (argv) {\nvar args = Object.getOwnPropertyNames(argv)\n-\nargs.forEach(function (arg) {\n- // if there is a conflict defined for this key and both conflicting keys have been specified\n- if (conflicting[arg] && args.indexOf(conflicting[arg]) !== -1 && argv[arg] && argv[conflicting[arg]]) {\n+ // we default keys to 'undefined' that have been configured, we should not\n+ // apply conflicting check unless they are a value other than 'undefined'.\n+ if (conflicting[arg] && args.indexOf(conflicting[arg]) !== -1 && argv[arg] !== undefined && argv[conflicting[arg]] !== undefined) {\nusage.fail(__('Arguments %s and %s are mutually exclusive', arg, conflicting[arg]))\n}\n})\n", "new_path": "lib/validation.js", "old_path": "lib/validation.js" }, { "change_type": "MODIFY", "diff": "@@ -158,8 +158,7 @@ describe('validation tests', function () {\n.argv\n})\n- it('should not fail if no conflicting arguments are provided and the .command()' +\n- 'syntax is used (first conflicting option specified)', function () {\n+ it('should not fail if argument with conflict is provided, but not the argument it conflicts with', function () {\nyargs(['command', '-f', '-c'])\n.command('command')\n.option('f', {\n@@ -175,8 +174,7 @@ describe('validation tests', function () {\n.argv\n})\n- it('should not fail if no conflicting arguments are provided and the .command()' +\n- 'syntax is used (second conflicting option specified)', function () {\n+ it('should not fail if conflicting argument is provided, without argument with conflict', function () {\nyargs(['command', '-b', '-c'])\n.command('command')\n.option('f', {\n@@ -230,6 +228,28 @@ describe('validation tests', function () {\n})\n.argv\n})\n+\n+ it('should fail if alias of conflicting argument is provided', function (done) {\n+ yargs(['-f', '--batman=99'])\n+ .conflicts('f', 'b')\n+ .alias('b', 'batman')\n+ .fail(function (msg) {\n+ msg.should.equal('Arguments f and b are mutually exclusive')\n+ return done()\n+ })\n+ .argv\n+ })\n+\n+ it('should fail if alias of argument with conflict is provided', function (done) {\n+ yargs(['--foo', '-b'])\n+ .conflicts('f', 'b')\n+ .alias('foo', 'f')\n+ .fail(function (msg) {\n+ msg.should.equal('Arguments f and b are mutually exclusive')\n+ return done()\n+ })\n+ .argv\n+ })\n})\ndescribe('demand', function () {\n", "new_path": "test/validation.js", "old_path": "test/validation.js" } ]
JavaScript
MIT License
yargs/yargs
fix: defaulting keys to 'undefined' interfered with conflicting key logic
1
fix
null
743,863
04.07.2017 13:43:27
25,200
782b89690ecc22f969f381f8eff7e69413f2cbc5
fix: 'undefined' default value for choices resulted in validation failing
[ { "change_type": "MODIFY", "diff": "@@ -457,6 +457,88 @@ describe('validation tests', function () {\n})\n.argv\n})\n+\n+ // addresses: https://github.com/yargs/yargs/issues/849\n+ it('succeeds when demandOption is true and valid choice is provided', function (done) {\n+ yargs('one -a 10 marsupial')\n+ .command('one', 'level one', function (yargs) {\n+ yargs\n+ .options({\n+ 'a': {\n+ demandOption: true,\n+ choices: [10, 20]\n+ }\n+ })\n+ }, function (argv) {\n+ argv._[0].should.equal('one')\n+ argv.a.should.equal(10)\n+ return done()\n+ })\n+ .fail(function (msg) {\n+ expect.fail()\n+ })\n+ .argv\n+ })\n+\n+ // addresses: https://github.com/yargs/yargs/issues/849\n+ it('fails when demandOption is true and choice is not provided', function (done) {\n+ yargs('one -a 10 marsupial')\n+ .command('one', 'level one', function (yargs) {\n+ yargs\n+ .options({\n+ 'c': {\n+ choices: ['1', '2']\n+ }\n+ })\n+ .demandOption('c')\n+ }, function (argv) {\n+ expect.fail()\n+ })\n+ .fail(function (msg) {\n+ msg.should.equal('Missing required argument: c')\n+ return done()\n+ })\n+ .argv\n+ })\n+\n+ // addresses: https://github.com/yargs/yargs/issues/849\n+ it('succeeds when demandOption is false and no choice is provided', function () {\n+ yargs('one')\n+ .command('one', 'level one', function (yargs) {\n+ yargs\n+ .options({\n+ 'a': {\n+ demandOption: false,\n+ choices: [10, 20]\n+ }\n+ })\n+ }, function (argv) {\n+ argv._[0].should.equal('one')\n+ })\n+ .fail(function (msg) {\n+ expect.fail()\n+ })\n+ .argv\n+ })\n+\n+ // addresses: https://github.com/yargs/yargs/issues/849\n+ it('succeeds when demandOption is not provided and no choice is provided', function () {\n+ yargs('one')\n+ .command('one', 'level one', function (yargs) {\n+ yargs\n+ .options({\n+ 'a': {\n+ choices: [10, 20]\n+ }\n+ })\n+ }, function (argv) {\n+ argv._[0].should.equal('one')\n+ })\n+ .fail(function (msg) {\n+ expect.fail()\n+ })\n+ .argv\n+ })\n})\ndescribe('config', function () {\n@@ -638,133 +720,6 @@ describe('validation tests', function () {\n})\n.argv\n})\n-\n- // addresses: https://github.com/yargs/yargs/issues/849\n- it('allows demandOption with value true in options shorthand for hidden option', function () {\n- yargs('one -a 10 marsupial')\n- .command('one', 'level one', function (yargs) {\n- yargs\n- .options({\n- 'a': {\n- demandOption: true,\n- choices: [10, 20]\n- }\n- })\n- }, function (argv) {\n- argv._[0].should.equal('one')\n- argv.a.should.equal(10)\n- })\n- .fail(function (msg) {\n- expect.fail()\n- })\n- .argv\n- })\n-\n- // addresses: https://github.com/yargs/yargs/issues/849\n- it('should fail demandOption with value true in options shorthand for hidden option', function (done) {\n- yargs('one -a 10 marsupial')\n- .command('one', 'level one', function (yargs) {\n- yargs\n- .options({\n- 'c': {\n- demandOption: true,\n- choices: ['1', '2']\n- }\n- })\n- }, function (argv) {\n- expect.fail()\n- })\n- .fail(function (msg) {\n- msg.should.equal('Missing required argument: c')\n- return done()\n- })\n- .argv\n- })\n-\n- // addresses: https://github.com/yargs/yargs/issues/849\n- it('allows demandOption with value false in options shorthand for hidden option', function () {\n- yargs('one')\n- .command('one', 'level one', function (yargs) {\n- yargs\n- .options({\n- 'a': {\n- demandOption: false,\n- choices: [10, 20]\n- }\n- })\n- }, function (argv) {\n- argv._[0].should.equal('one')\n- })\n- .fail(function (msg) {\n- expect.fail()\n- })\n- .argv\n- })\n-\n- // addresses: https://github.com/yargs/yargs/issues/849\n- it('allows demandOption with value true in options shorthand for non-hidden option', function () {\n- yargs('one -a 10 marsupial')\n- .command('one', 'level one', function (yargs) {\n- yargs\n- .options({\n- 'a': {\n- describe: 'A',\n- demandOption: true,\n- choices: [10, 20]\n- }\n- })\n- }, function (argv) {\n- argv._[0].should.equal('one')\n- argv.a.should.equal(10)\n- })\n- .fail(function (msg) {\n- expect.fail()\n- })\n- .argv\n- })\n-\n- // addresses: https://github.com/yargs/yargs/issues/849\n- it('should fail demandOption with value true in options shorthand for non-hidden option', function (done) {\n- yargs('one -a 10 marsupial')\n- .command('one', 'level one', function (yargs) {\n- yargs\n- .options({\n- 'c': {\n- describe: 'C',\n- demandOption: true,\n- choices: ['1', '2']\n- }\n- })\n- }, function (argv) {\n- expect.fail()\n- })\n- .fail(function (msg) {\n- msg.should.equal('Missing required argument: c')\n- return done()\n- })\n- .argv\n- })\n-\n- // addresses: https://github.com/yargs/yargs/issues/849\n- it('allows demandOption with value false in options shorthand for non-hidden option', function () {\n- yargs('one')\n- .command('one', 'level one', function (yargs) {\n- yargs\n- .options({\n- 'a': {\n- describe: 'A',\n- demandOption: false,\n- choices: [10, 20]\n- }\n- })\n- }, function (argv) {\n- argv._[0].should.equal('one')\n- })\n- .fail(function (msg) {\n- expect.fail()\n- })\n- .argv\n- })\n})\ndescribe('demandCommand', function () {\n", "new_path": "test/validation.js", "old_path": "test/validation.js" } ]
JavaScript
MIT License
yargs/yargs
fix: 'undefined' default value for choices resulted in validation failing
1
fix
null
448,039
07.08.2017 09:56:43
-7,200
8a39ed9900dddcc110f4804d2fdc19574a84ec68
chore: cut release for v1.0.0-pre.14
[ { "change_type": "MODIFY", "diff": "All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.\n+<a name=\"1.0.0-pre.14\"></a>\n+# [1.0.0-pre.14](https://github.com/dherges/ng-packagr/compare/v1.0.0-pre.13...v1.0.0-pre.14) (2017-08-07)\n+\n+\n+### Bug Fixes\n+\n+* add 'let' to known rxjs operators ([9927f93](https://github.com/dherges/ng-packagr/commit/9927f93)), closes [#85](https://github.com/dherges/ng-packagr/issues/85)\n+* move less from devDependencies to dependencies ([09ef8ce](https://github.com/dherges/ng-packagr/commit/09ef8ce)), closes [#88](https://github.com/dherges/ng-packagr/issues/88)\n+* strip utf-8 bom when reading files ([cb34889](https://github.com/dherges/ng-packagr/commit/cb34889)), closes [#87](https://github.com/dherges/ng-packagr/issues/87)\n+\n+\n+\n<a name=\"1.0.0-pre.13\"></a>\n# [1.0.0-pre.13](https://github.com/dherges/ng-packagr/compare/v1.0.0-pre.12...v1.0.0-pre.13) (2017-07-28)\n", "new_path": "CHANGELOG.md", "old_path": "CHANGELOG.md" }, { "change_type": "MODIFY", "diff": "{\n\"name\": \"ng-packagr\",\n- \"version\": \"1.0.0-pre.13\",\n+ \"version\": \"1.0.0-pre.14\",\n\"description\": \"Compile and package a TypeScript library to Angular Package Format\",\n\"keywords\": [\n\"angular\",\n", "new_path": "package.json", "old_path": "package.json" } ]
TypeScript
MIT License
ng-packagr/ng-packagr
chore: cut release for v1.0.0-pre.14
1
chore
null
448,039
08.08.2017 08:05:57
-7,200
b366a508e7cbf9a0890d0cd4de6204e84a4744de
test: reproduce issue
[ { "change_type": "MODIFY", "diff": "{\n- \"$schema\": \"../../../src/lib/ng-package.schema.json\",\n- \"lib\": {\n- \"entryFile\": \"public_api.ts\"\n- }\n+ \"$schema\": \"../../../src/lib/ng-package.schema.json\"\n}\n", "new_path": "integration/samples/typings/ng-package.json", "old_path": "integration/samples/typings/ng-package.json" }, { "change_type": "DELETE", "diff": "-export * from './src/validator';\n", "new_path": null, "old_path": "integration/samples/typings/public_api.ts" }, { "change_type": "ADD", "diff": "+export * from './validator';\n", "new_path": "integration/samples/typings/src/public_api.ts", "old_path": null } ]
TypeScript
MIT License
ng-packagr/ng-packagr
test: reproduce issue #97
1
test
null
807,849
09.08.2017 18:26:43
25,200
90f84f0e795b75b656a11e04d5792a64b15a38d4
chore: bump dependencies (non-major)
[ { "change_type": "MODIFY", "diff": "\"cmd-shim\": \"^2.0.2\",\n\"columnify\": \"^1.5.4\",\n\"command-join\": \"^2.0.0\",\n- \"conventional-changelog-cli\": \"^1.3.1\",\n- \"conventional-recommended-bump\": \"^1.0.0\",\n+ \"conventional-changelog-cli\": \"^1.3.2\",\n+ \"conventional-recommended-bump\": \"^1.0.1\",\n\"dedent\": \"^0.7.0\",\n\"execa\": \"^0.6.3\",\n\"find-up\": \"^2.1.0\",\n\"glob\": \"^7.1.2\",\n\"globby\": \"^6.1.0\",\n\"graceful-fs\": \"^4.1.11\",\n- \"inquirer\": \"^3.0.6\",\n+ \"inquirer\": \"^3.2.1\",\n\"is-ci\": \"^1.0.10\",\n\"load-json-file\": \"^2.0.0\",\n\"lodash\": \"^4.17.4\",\n\"minimatch\": \"^3.0.4\",\n- \"npmlog\": \"^4.1.0\",\n+ \"npmlog\": \"^4.1.2\",\n\"p-finally\": \"^1.0.0\",\n\"path-exists\": \"^3.0.0\",\n\"read-cmd-shim\": \"^1.0.1\",\n\"read-pkg\": \"^2.0.0\",\n\"rimraf\": \"^2.6.1\",\n- \"safe-buffer\": \"^5.0.1\",\n- \"semver\": \"^5.1.0\",\n+ \"safe-buffer\": \"^5.1.1\",\n+ \"semver\": \"^5.4.1\",\n\"signal-exit\": \"^3.0.2\",\n\"strong-log-transformer\": \"^1.0.6\",\n\"temp-write\": \"^3.3.0\",\n\"write-file-atomic\": \"^2.1.0\",\n- \"write-json-file\": \"^2.1.0\",\n- \"write-pkg\": \"^3.0.1\",\n- \"yargs\": \"^8.0.1\"\n+ \"write-json-file\": \"^2.2.0\",\n+ \"write-pkg\": \"^3.1.0\",\n+ \"yargs\": \"^8.0.2\"\n},\n\"bin\": {\n\"lerna\": \"./bin/lerna.js\"\n\"babel-eslint\": \"^7.2.3\",\n\"babel-jest\": \"^19.0.0\",\n\"babel-plugin-add-module-exports\": \"^0.2.1\",\n- \"babel-preset-env\": \"^1.4.0\",\n+ \"babel-preset-env\": \"^1.6.0\",\n\"eslint\": \"^3.19.0\",\n\"eslint-config-babel\": \"^6.0.0\",\n- \"eslint-plugin-babel\": \"^4.1.1\",\n- \"eslint-plugin-flowtype\": \"^2.33.0\",\n- \"eslint-plugin-node\": \"^4.2.2\",\n+ \"eslint-plugin-babel\": \"^4.1.2\",\n+ \"eslint-plugin-flowtype\": \"^2.35.0\",\n+ \"eslint-plugin-node\": \"^5.1.1\",\n\"file-url\": \"^2.0.2\",\n\"jest\": \"^19.0.2\",\n\"normalize-newline\": \"^3.0.0\",\n", "new_path": "package.json", "old_path": "package.json" }, { "change_type": "MODIFY", "diff": "@@ -72,10 +72,18 @@ ansi-escapes@^1.1.0, ansi-escapes@^1.4.0:\nversion \"1.4.0\"\nresolved \"https://registry.yarnpkg.com/ansi-escapes/-/ansi-escapes-1.4.0.tgz#d3a8a83b319aa67793662b13e761c7911422306e\"\n+ansi-escapes@^2.0.0:\n+ version \"2.0.0\"\n+ resolved \"https://registry.yarnpkg.com/ansi-escapes/-/ansi-escapes-2.0.0.tgz#5bae52be424878dd9783e8910e3fc2922e83c81b\"\n+\nansi-regex@^2.0.0:\nversion \"2.1.1\"\nresolved \"https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-2.1.1.tgz#c3b33ab5ee360d86e0e628f0468ae7ef27d654df\"\n+ansi-regex@^3.0.0:\n+ version \"3.0.0\"\n+ resolved \"https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-3.0.0.tgz#ed0317c322064f79466c02966bddb605ab37d998\"\n+\nansi-styles@^2.2.1:\nversion \"2.2.1\"\nresolved \"https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-2.2.1.tgz#b432dd3358b634cf75e1e4664368240533c1ddbe\"\n@@ -86,6 +94,12 @@ ansi-styles@^3.0.0:\ndependencies:\ncolor-convert \"^1.0.0\"\n+ansi-styles@^3.1.0:\n+ version \"3.2.0\"\n+ resolved \"https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-3.2.0.tgz#c159b8d5be0f9e5a6f346dab94f16ce022161b88\"\n+ dependencies:\n+ color-convert \"^1.9.0\"\n+\nanymatch@^1.3.0:\nversion \"1.3.0\"\nresolved \"https://registry.yarnpkg.com/anymatch/-/anymatch-1.3.0.tgz#a3e52fa39168c825ff57b0248126ce5a8ff95507\"\n@@ -627,9 +641,9 @@ babel-polyfill@^6.23.0:\ncore-js \"^2.4.0\"\nregenerator-runtime \"^0.10.0\"\n-babel-preset-env@^1.4.0:\n- version \"1.4.0\"\n- resolved \"https://registry.yarnpkg.com/babel-preset-env/-/babel-preset-env-1.4.0.tgz#c8e02a3bcc7792f23cded68e0355b9d4c28f0f7a\"\n+babel-preset-env@^1.6.0:\n+ version \"1.6.0\"\n+ resolved \"https://registry.yarnpkg.com/babel-preset-env/-/babel-preset-env-1.6.0.tgz#2de1c782a780a0a5d605d199c957596da43c44e4\"\ndependencies:\nbabel-plugin-check-es2015-constants \"^6.22.0\"\nbabel-plugin-syntax-trailing-function-commas \"^6.22.0\"\n@@ -658,8 +672,9 @@ babel-preset-env@^1.4.0:\nbabel-plugin-transform-es2015-unicode-regex \"^6.22.0\"\nbabel-plugin-transform-exponentiation-operator \"^6.22.0\"\nbabel-plugin-transform-regenerator \"^6.22.0\"\n- browserslist \"^1.4.0\"\n+ browserslist \"^2.1.2\"\ninvariant \"^2.2.2\"\n+ semver \"^5.3.0\"\nbabel-preset-jest@^19.0.0:\nversion \"19.0.0\"\n@@ -770,12 +785,12 @@ browser-resolve@^1.11.2:\ndependencies:\nresolve \"1.1.7\"\n-browserslist@^1.4.0:\n- version \"1.7.7\"\n- resolved \"https://registry.yarnpkg.com/browserslist/-/browserslist-1.7.7.tgz#0bd76704258be829b2398bb50e4b62d1a166b0b9\"\n+browserslist@^2.1.2:\n+ version \"2.3.1\"\n+ resolved \"https://registry.yarnpkg.com/browserslist/-/browserslist-2.3.1.tgz#39500a2090330b2a090120ea6c7fc78b6e091c5e\"\ndependencies:\n- caniuse-db \"^1.0.30000639\"\n- electron-to-chromium \"^1.2.7\"\n+ caniuse-lite \"^1.0.30000712\"\n+ electron-to-chromium \"^1.3.17\"\nbser@1.0.2:\nversion \"1.0.2\"\n@@ -838,9 +853,9 @@ camelcase@^4.1.0:\nversion \"4.1.0\"\nresolved \"https://registry.yarnpkg.com/camelcase/-/camelcase-4.1.0.tgz#d545635be1e33c542649c69173e5de6acfae34dd\"\n-caniuse-db@^1.0.30000639:\n- version \"1.0.30000649\"\n- resolved \"https://registry.yarnpkg.com/caniuse-db/-/caniuse-db-1.0.30000649.tgz#1ee1754a6df235450c8b7cd15e0ebf507221a86a\"\n+caniuse-lite@^1.0.30000712:\n+ version \"1.0.30000713\"\n+ resolved \"https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30000713.tgz#33957ecb4a2154a5d40a60d13d8bf1cfa0881a8a\"\ncaseless@~0.11.0:\nversion \"0.11.0\"\n@@ -863,6 +878,14 @@ chalk@^1.0.0, chalk@^1.1.0, chalk@^1.1.1, chalk@^1.1.3:\nstrip-ansi \"^3.0.0\"\nsupports-color \"^2.0.0\"\n+chalk@^2.0.0:\n+ version \"2.1.0\"\n+ resolved \"https://registry.yarnpkg.com/chalk/-/chalk-2.1.0.tgz#ac5becf14fa21b99c6c92ca7a7d7cfd5b17e743e\"\n+ dependencies:\n+ ansi-styles \"^3.1.0\"\n+ escape-string-regexp \"^1.0.5\"\n+ supports-color \"^4.0.0\"\n+\nchokidar@^1.6.1:\nversion \"1.6.1\"\nresolved \"https://registry.yarnpkg.com/chokidar/-/chokidar-1.6.1.tgz#2f4447ab5e96e50fb3d789fd90d4c72e0e4c70c2\"\n@@ -937,7 +960,7 @@ code-point-at@^1.0.0:\nversion \"1.1.0\"\nresolved \"https://registry.yarnpkg.com/code-point-at/-/code-point-at-1.1.0.tgz#0d070b4d043a5bea33a2f1a40e2edb3d9a4ccf77\"\n-color-convert@^1.0.0:\n+color-convert@^1.0.0, color-convert@^1.9.0:\nversion \"1.9.0\"\nresolved \"https://registry.yarnpkg.com/color-convert/-/color-convert-1.9.0.tgz#1accf97dd739b983bf994d56fec8f95853641b7a\"\ndependencies:\n@@ -997,13 +1020,14 @@ content-type-parser@^1.0.1:\nversion \"1.0.1\"\nresolved \"https://registry.yarnpkg.com/content-type-parser/-/content-type-parser-1.0.1.tgz#c3e56988c53c65127fb46d4032a3a900246fdc94\"\n-conventional-changelog-angular@^1.3.3:\n- version \"1.3.3\"\n- resolved \"https://registry.yarnpkg.com/conventional-changelog-angular/-/conventional-changelog-angular-1.3.3.tgz#e7ce807a85dd4750e1b417f766045497511e0726\"\n+conventional-changelog-angular@^1.3.4:\n+ version \"1.4.0\"\n+ resolved \"https://registry.yarnpkg.com/conventional-changelog-angular/-/conventional-changelog-angular-1.4.0.tgz#118b9f7d41a3d99500bfb6bea1f3525e055e8b9b\"\ndependencies:\ncompare-func \"^1.3.1\"\ngithub-url-from-git \"^1.4.0\"\nq \"^1.4.1\"\n+ read-pkg-up \"^2.0.0\"\nconventional-changelog-atom@^0.1.0:\nversion \"0.1.0\"\n@@ -1011,12 +1035,12 @@ conventional-changelog-atom@^0.1.0:\ndependencies:\nq \"^1.4.1\"\n-conventional-changelog-cli@^1.3.1:\n- version \"1.3.1\"\n- resolved \"https://registry.yarnpkg.com/conventional-changelog-cli/-/conventional-changelog-cli-1.3.1.tgz#1cd5a9dbae25ffb5ffe67afef1e136eaceefd2d5\"\n+conventional-changelog-cli@^1.3.2:\n+ version \"1.3.2\"\n+ resolved \"https://registry.yarnpkg.com/conventional-changelog-cli/-/conventional-changelog-cli-1.3.2.tgz#33abf2b5720a9b094df38e81741ccb502e1a4125\"\ndependencies:\nadd-stream \"^1.0.0\"\n- conventional-changelog \"^1.1.3\"\n+ conventional-changelog \"^1.1.4\"\nlodash \"^4.1.0\"\nmeow \"^3.7.0\"\ntempfile \"^1.1.1\"\n@@ -1027,9 +1051,9 @@ conventional-changelog-codemirror@^0.1.0:\ndependencies:\nq \"^1.4.1\"\n-conventional-changelog-core@^1.8.0:\n- version \"1.8.0\"\n- resolved \"https://registry.yarnpkg.com/conventional-changelog-core/-/conventional-changelog-core-1.8.0.tgz#977848b416caf15fb09f20b12a62d40ef145b957\"\n+conventional-changelog-core@^1.9.0:\n+ version \"1.9.0\"\n+ resolved \"https://registry.yarnpkg.com/conventional-changelog-core/-/conventional-changelog-core-1.9.0.tgz#de5dfbc091847656508d4a389e35c9a1bc49e7f4\"\ndependencies:\nconventional-changelog-writer \"^1.1.0\"\nconventional-commits-parser \"^1.0.0\"\n@@ -1045,9 +1069,9 @@ conventional-changelog-core@^1.8.0:\nread-pkg-up \"^1.0.1\"\nthrough2 \"^2.0.0\"\n-conventional-changelog-ember@^0.2.5:\n- version \"0.2.5\"\n- resolved \"https://registry.yarnpkg.com/conventional-changelog-ember/-/conventional-changelog-ember-0.2.5.tgz#ce21d5cf83cd5ebe05d23fdf232d8844f4b56a4f\"\n+conventional-changelog-ember@^0.2.6:\n+ version \"0.2.6\"\n+ resolved \"https://registry.yarnpkg.com/conventional-changelog-ember/-/conventional-changelog-ember-0.2.6.tgz#8b7355419f5127493c4c562473ab2fc792f1c2b6\"\ndependencies:\nq \"^1.4.1\"\n@@ -1097,15 +1121,15 @@ conventional-changelog-writer@^1.1.0:\nsplit \"^1.0.0\"\nthrough2 \"^2.0.0\"\n-conventional-changelog@^1.1.3:\n- version \"1.1.3\"\n- resolved \"https://registry.yarnpkg.com/conventional-changelog/-/conventional-changelog-1.1.3.tgz#26283078ac38c094df2af1604b0a46bbc0165c4d\"\n+conventional-changelog@^1.1.4:\n+ version \"1.1.4\"\n+ resolved \"https://registry.yarnpkg.com/conventional-changelog/-/conventional-changelog-1.1.4.tgz#108bc750c2a317e200e2f9b413caaa1f8c7efa3b\"\ndependencies:\n- conventional-changelog-angular \"^1.3.3\"\n+ conventional-changelog-angular \"^1.3.4\"\nconventional-changelog-atom \"^0.1.0\"\nconventional-changelog-codemirror \"^0.1.0\"\n- conventional-changelog-core \"^1.8.0\"\n- conventional-changelog-ember \"^0.2.5\"\n+ conventional-changelog-core \"^1.9.0\"\n+ conventional-changelog-ember \"^0.2.6\"\nconventional-changelog-eslint \"^0.1.0\"\nconventional-changelog-express \"^0.1.0\"\nconventional-changelog-jquery \"^0.1.0\"\n@@ -1119,7 +1143,7 @@ conventional-commits-filter@^1.0.0:\nis-subset \"^0.1.1\"\nmodify-values \"^1.0.0\"\n-conventional-commits-parser@^1.0.0, conventional-commits-parser@^1.0.1:\n+conventional-commits-parser@^1.0.0:\nversion \"1.3.0\"\nresolved \"https://registry.yarnpkg.com/conventional-commits-parser/-/conventional-commits-parser-1.3.0.tgz#e327b53194e1a7ad5dc63479ee9099a52b024865\"\ndependencies:\n@@ -1131,15 +1155,27 @@ conventional-commits-parser@^1.0.0, conventional-commits-parser@^1.0.1:\nthrough2 \"^2.0.0\"\ntrim-off-newlines \"^1.0.0\"\n-conventional-recommended-bump@^1.0.0:\n- version \"1.0.0\"\n- resolved \"https://registry.yarnpkg.com/conventional-recommended-bump/-/conventional-recommended-bump-1.0.0.tgz#6d303a27837ae938b7c68c8ddeed34559b4b0789\"\n+conventional-commits-parser@^2.0.0:\n+ version \"2.0.0\"\n+ resolved \"https://registry.yarnpkg.com/conventional-commits-parser/-/conventional-commits-parser-2.0.0.tgz#71d01910cb0a99aeb20c144e50f81f4df3178447\"\n+ dependencies:\n+ JSONStream \"^1.0.4\"\n+ is-text-path \"^1.0.0\"\n+ lodash \"^4.2.1\"\n+ meow \"^3.3.0\"\n+ split2 \"^2.0.0\"\n+ through2 \"^2.0.0\"\n+ trim-off-newlines \"^1.0.0\"\n+\n+conventional-recommended-bump@^1.0.1:\n+ version \"1.0.1\"\n+ resolved \"https://registry.yarnpkg.com/conventional-recommended-bump/-/conventional-recommended-bump-1.0.1.tgz#56b8ae553a8a1152fa069e767599e1f6948bd36c\"\ndependencies:\nconcat-stream \"^1.4.10\"\nconventional-commits-filter \"^1.0.0\"\n- conventional-commits-parser \"^1.0.1\"\n+ conventional-commits-parser \"^2.0.0\"\ngit-raw-commits \"^1.2.0\"\n- git-semver-tags \"^1.2.0\"\n+ git-semver-tags \"^1.2.1\"\nmeow \"^3.3.0\"\nobject-assign \"^4.0.1\"\n@@ -1287,6 +1323,10 @@ detect-indent@^4.0.0:\ndependencies:\nrepeating \"^2.0.0\"\n+detect-indent@^5.0.0:\n+ version \"5.0.0\"\n+ resolved \"https://registry.yarnpkg.com/detect-indent/-/detect-indent-5.0.0.tgz#3871cc0a6a002e8c3e5b3cf7f336264675f06b9d\"\n+\ndiff@^3.0.0:\nversion \"3.2.0\"\nresolved \"https://registry.yarnpkg.com/diff/-/diff-3.2.0.tgz#c9ce393a4b7cbd0b058a725c93df299027868ff9\"\n@@ -1314,9 +1354,9 @@ ecc-jsbn@~0.1.1:\ndependencies:\njsbn \"~0.1.0\"\n-electron-to-chromium@^1.2.7:\n- version \"1.3.2\"\n- resolved \"https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.3.2.tgz#b8ce5c93b308db0e92f6d0435c46ddec8f6363ab\"\n+electron-to-chromium@^1.3.17:\n+ version \"1.3.17\"\n+ resolved \"https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.3.17.tgz#41c13457cc7166c5c15e767ae61d86a8cacdee5d\"\n\"errno@>=0.1.1 <0.2.0-0\":\nversion \"0.1.4\"\n@@ -1410,24 +1450,23 @@ eslint-config-babel@^6.0.0:\nversion \"6.0.0\"\nresolved \"https://registry.yarnpkg.com/eslint-config-babel/-/eslint-config-babel-6.0.0.tgz#66feedf6ce6e04abe585cec1a65b5bcc96bed50a\"\n-eslint-plugin-babel@^4.1.1:\n- version \"4.1.1\"\n- resolved \"https://registry.yarnpkg.com/eslint-plugin-babel/-/eslint-plugin-babel-4.1.1.tgz#ef285c87039b67beb3bbd227f5b0eed4fb376b87\"\n+eslint-plugin-babel@^4.1.2:\n+ version \"4.1.2\"\n+ resolved \"https://registry.yarnpkg.com/eslint-plugin-babel/-/eslint-plugin-babel-4.1.2.tgz#79202a0e35757dd92780919b2336f1fa2fe53c1e\"\n-eslint-plugin-flowtype@^2.33.0:\n- version \"2.33.0\"\n- resolved \"https://registry.yarnpkg.com/eslint-plugin-flowtype/-/eslint-plugin-flowtype-2.33.0.tgz#b2783814ed2ddcf729953b8f65ff73c90cabee4b\"\n+eslint-plugin-flowtype@^2.35.0:\n+ version \"2.35.0\"\n+ resolved \"https://registry.yarnpkg.com/eslint-plugin-flowtype/-/eslint-plugin-flowtype-2.35.0.tgz#d17494f0ae8b727c632d8b9d4b4a848e7e0c04af\"\ndependencies:\nlodash \"^4.15.0\"\n-eslint-plugin-node@^4.2.2:\n- version \"4.2.2\"\n- resolved \"https://registry.yarnpkg.com/eslint-plugin-node/-/eslint-plugin-node-4.2.2.tgz#82959ca9aed79fcbd28bb1b188d05cac04fb3363\"\n+eslint-plugin-node@^5.1.1:\n+ version \"5.1.1\"\n+ resolved \"https://registry.yarnpkg.com/eslint-plugin-node/-/eslint-plugin-node-5.1.1.tgz#a7ed956e780c22aef6afd1116005acd82f26eac6\"\ndependencies:\n- ignore \"^3.0.11\"\n- minimatch \"^3.0.2\"\n- object-assign \"^4.0.1\"\n- resolve \"^1.1.7\"\n+ ignore \"^3.3.3\"\n+ minimatch \"^3.0.4\"\n+ resolve \"^1.3.3\"\nsemver \"5.3.0\"\neslint@^3.19.0:\n@@ -1571,10 +1610,12 @@ extend@~3.0.0:\nversion \"3.0.0\"\nresolved \"https://registry.yarnpkg.com/extend/-/extend-3.0.0.tgz#5a474353b9f3353ddd8176dfd37b91c83a46f1d4\"\n-external-editor@^2.0.1:\n- version \"2.0.1\"\n- resolved \"https://registry.yarnpkg.com/external-editor/-/external-editor-2.0.1.tgz#4c597c6c88fa6410e41dbbaa7b1be2336aa31095\"\n+external-editor@^2.0.4:\n+ version \"2.0.4\"\n+ resolved \"https://registry.yarnpkg.com/external-editor/-/external-editor-2.0.4.tgz#1ed9199da9cbfe2ef2f7a31b2fde8b0d12368972\"\ndependencies:\n+ iconv-lite \"^0.4.17\"\n+ jschardet \"^1.4.2\"\ntmp \"^0.0.31\"\nextglob@^0.3.1:\n@@ -1818,6 +1859,13 @@ git-semver-tags@^1.2.0:\nmeow \"^3.3.0\"\nsemver \"^5.0.1\"\n+git-semver-tags@^1.2.1:\n+ version \"1.2.1\"\n+ resolved \"https://registry.yarnpkg.com/git-semver-tags/-/git-semver-tags-1.2.1.tgz#6ccd2a52e735b736748dc762444fcd9588e27490\"\n+ dependencies:\n+ meow \"^3.3.0\"\n+ semver \"^5.0.1\"\n+\ngitconfiglocal@^1.0.0:\nversion \"1.0.0\"\nresolved \"https://registry.yarnpkg.com/gitconfiglocal/-/gitconfiglocal-1.0.0.tgz#41d045f3851a5ea88f03f24ca1c6178114464b9b\"\n@@ -1918,6 +1966,10 @@ has-flag@^1.0.0:\nversion \"1.0.0\"\nresolved \"https://registry.yarnpkg.com/has-flag/-/has-flag-1.0.0.tgz#9d9e793165ce017a00f00418c43f942a7b1d11fa\"\n+has-flag@^2.0.0:\n+ version \"2.0.0\"\n+ resolved \"https://registry.yarnpkg.com/has-flag/-/has-flag-2.0.0.tgz#e8207af1cc7b30d446cc70b734b5e8be18f88d51\"\n+\nhas-unicode@^2.0.0:\nversion \"2.0.1\"\nresolved \"https://registry.yarnpkg.com/has-unicode/-/has-unicode-2.0.1.tgz#e0e6fe6a28cf51138855e086d1691e771de2a8b9\"\n@@ -1964,10 +2016,18 @@ iconv-lite@0.4.13:\nversion \"0.4.13\"\nresolved \"https://registry.yarnpkg.com/iconv-lite/-/iconv-lite-0.4.13.tgz#1f88aba4ab0b1508e8312acc39345f36e992e2f2\"\n-ignore@^3.0.11, ignore@^3.2.0:\n+iconv-lite@^0.4.17:\n+ version \"0.4.18\"\n+ resolved \"https://registry.yarnpkg.com/iconv-lite/-/iconv-lite-0.4.18.tgz#23d8656b16aae6742ac29732ea8f0336a4789cf2\"\n+\n+ignore@^3.2.0:\nversion \"3.2.6\"\nresolved \"https://registry.yarnpkg.com/ignore/-/ignore-3.2.6.tgz#26e8da0644be0bb4cb39516f6c79f0e0f4ffe48c\"\n+ignore@^3.3.3:\n+ version \"3.3.3\"\n+ resolved \"https://registry.yarnpkg.com/ignore/-/ignore-3.3.3.tgz#432352e57accd87ab3110e82d3fea0e47812156d\"\n+\nimurmurhash@^0.1.4:\nversion \"0.1.4\"\nresolved \"https://registry.yarnpkg.com/imurmurhash/-/imurmurhash-0.1.4.tgz#9218b9b2b928a238b13dc4fb6b6d576f231453ea\"\n@@ -2011,22 +2071,23 @@ inquirer@^0.12.0:\nstrip-ansi \"^3.0.0\"\nthrough \"^2.3.6\"\n-inquirer@^3.0.6:\n- version \"3.0.6\"\n- resolved \"https://registry.yarnpkg.com/inquirer/-/inquirer-3.0.6.tgz#e04aaa9d05b7a3cb9b0f407d04375f0447190347\"\n+inquirer@^3.2.1:\n+ version \"3.2.1\"\n+ resolved \"https://registry.yarnpkg.com/inquirer/-/inquirer-3.2.1.tgz#06ceb0f540f45ca548c17d6840959878265fa175\"\ndependencies:\n- ansi-escapes \"^1.1.0\"\n- chalk \"^1.0.0\"\n+ ansi-escapes \"^2.0.0\"\n+ chalk \"^2.0.0\"\ncli-cursor \"^2.1.0\"\ncli-width \"^2.0.0\"\n- external-editor \"^2.0.1\"\n+ external-editor \"^2.0.4\"\nfigures \"^2.0.0\"\nlodash \"^4.3.0\"\nmute-stream \"0.0.7\"\nrun-async \"^2.2.0\"\n- rx \"^4.1.0\"\n- string-width \"^2.0.0\"\n- strip-ansi \"^3.0.0\"\n+ rx-lite \"^4.0.8\"\n+ rx-lite-aggregates \"^4.0.8\"\n+ string-width \"^2.1.0\"\n+ strip-ansi \"^4.0.0\"\nthrough \"^2.3.6\"\ninterpret@^1.0.0:\n@@ -2497,6 +2558,10 @@ jsbn@~0.1.0:\nversion \"0.1.0\"\nresolved \"https://registry.yarnpkg.com/jsbn/-/jsbn-0.1.0.tgz#650987da0dd74f4ebf5a11377a2aa2d273e97dfd\"\n+jschardet@^1.4.2:\n+ version \"1.5.1\"\n+ resolved \"https://registry.yarnpkg.com/jschardet/-/jschardet-1.5.1.tgz#c519f629f86b3a5bedba58a88d311309eec097f9\"\n+\njsdom@^9.11.0:\nversion \"9.11.0\"\nresolved \"https://registry.yarnpkg.com/jsdom/-/jsdom-9.11.0.tgz#a95b0304e521a2ca5a63c6ea47bf7708a7a84591\"\n@@ -2864,7 +2929,7 @@ npm-run-path@^2.0.0:\ndependencies:\npath-key \"^2.0.0\"\n-npmlog@^4.0.1, npmlog@^4.1.0:\n+npmlog@^4.0.1:\nversion \"4.1.0\"\nresolved \"https://registry.yarnpkg.com/npmlog/-/npmlog-4.1.0.tgz#dc59bee85f64f00ed424efb2af0783df25d1c0b5\"\ndependencies:\n@@ -2873,6 +2938,15 @@ npmlog@^4.0.1, npmlog@^4.1.0:\ngauge \"~2.7.3\"\nset-blocking \"~2.0.0\"\n+npmlog@^4.1.2:\n+ version \"4.1.2\"\n+ resolved \"https://registry.yarnpkg.com/npmlog/-/npmlog-4.1.2.tgz#08a7f2a8bf734604779a9efa4ad5cc717abb954b\"\n+ dependencies:\n+ are-we-there-yet \"~1.1.2\"\n+ console-control-strings \"~1.1.0\"\n+ gauge \"~2.7.3\"\n+ set-blocking \"~2.0.0\"\n+\nnumber-is-nan@^1.0.0:\nversion \"1.0.1\"\nresolved \"https://registry.yarnpkg.com/number-is-nan/-/number-is-nan-1.0.1.tgz#097b602b53422a522c1afb8790318336941a011d\"\n@@ -3328,12 +3402,18 @@ resolve@1.1.7:\nversion \"1.1.7\"\nresolved \"https://registry.yarnpkg.com/resolve/-/resolve-1.1.7.tgz#203114d82ad2c5ed9e8e0411b3932875e889e97b\"\n-resolve@^1.1.6, resolve@^1.1.7, resolve@^1.2.0:\n+resolve@^1.1.6, resolve@^1.2.0:\nversion \"1.3.2\"\nresolved \"https://registry.yarnpkg.com/resolve/-/resolve-1.3.2.tgz#1f0442c9e0cbb8136e87b9305f932f46c7f28235\"\ndependencies:\npath-parse \"^1.0.5\"\n+resolve@^1.3.3:\n+ version \"1.4.0\"\n+ resolved \"https://registry.yarnpkg.com/resolve/-/resolve-1.4.0.tgz#a75be01c53da25d934a98ebd0e4c4a7312f92a86\"\n+ dependencies:\n+ path-parse \"^1.0.5\"\n+\nrestore-cursor@^1.0.1:\nversion \"1.0.1\"\nresolved \"https://registry.yarnpkg.com/restore-cursor/-/restore-cursor-1.0.1.tgz#34661f46886327fed2991479152252df92daa541\"\n@@ -3378,17 +3458,23 @@ run-async@^2.2.0:\ndependencies:\nis-promise \"^2.1.0\"\n+rx-lite-aggregates@^4.0.8:\n+ version \"4.0.8\"\n+ resolved \"https://registry.yarnpkg.com/rx-lite-aggregates/-/rx-lite-aggregates-4.0.8.tgz#753b87a89a11c95467c4ac1626c4efc4e05c67be\"\n+ dependencies:\n+ rx-lite \"*\"\n+\n+rx-lite@*, rx-lite@^4.0.8:\n+ version \"4.0.8\"\n+ resolved \"https://registry.yarnpkg.com/rx-lite/-/rx-lite-4.0.8.tgz#0b1e11af8bc44836f04a6407e92da42467b79444\"\n+\nrx-lite@^3.1.2:\nversion \"3.1.2\"\nresolved \"https://registry.yarnpkg.com/rx-lite/-/rx-lite-3.1.2.tgz#19ce502ca572665f3b647b10939f97fd1615f102\"\n-rx@^4.1.0:\n- version \"4.1.0\"\n- resolved \"https://registry.yarnpkg.com/rx/-/rx-4.1.0.tgz#a5f13ff79ef3b740fe30aa803fb09f98805d4782\"\n-\n-safe-buffer@^5.0.1:\n- version \"5.0.1\"\n- resolved \"https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.0.1.tgz#d263ca54696cd8a306b5ca6551e92de57918fbe7\"\n+safe-buffer@^5.1.1:\n+ version \"5.1.1\"\n+ resolved \"https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.1.1.tgz#893312af69b2123def71f57889001671eeb2c853\"\nsane@~1.5.0:\nversion \"1.5.0\"\n@@ -3406,10 +3492,14 @@ sax@^1.2.1:\nversion \"1.2.2\"\nresolved \"https://registry.yarnpkg.com/sax/-/sax-1.2.2.tgz#fd8631a23bc7826bef5d871bdb87378c95647828\"\n-\"semver@2 || 3 || 4 || 5\", semver@5.3.0, semver@^5.0.1, semver@^5.1.0, semver@^5.3.0, semver@~5.3.0:\n+\"semver@2 || 3 || 4 || 5\", semver@5.3.0, semver@^5.0.1, semver@^5.3.0, semver@~5.3.0:\nversion \"5.3.0\"\nresolved \"https://registry.yarnpkg.com/semver/-/semver-5.3.0.tgz#9b2ce5d3de02d17c6012ad326aa6b4d0cf54f94f\"\n+semver@^5.4.1:\n+ version \"5.4.1\"\n+ resolved \"https://registry.yarnpkg.com/semver/-/semver-5.4.1.tgz#e059c09d8571f0540823733433505d3a2f00b18e\"\n+\nset-blocking@^2.0.0, set-blocking@~2.0.0:\nversion \"2.0.0\"\nresolved \"https://registry.yarnpkg.com/set-blocking/-/set-blocking-2.0.0.tgz#045f9782d011ae9a6803ddd382b24392b3d890f7\"\n@@ -3462,12 +3552,18 @@ sntp@1.x.x:\ndependencies:\nhoek \"2.x.x\"\n-sort-keys@^1.1.1, sort-keys@^1.1.2:\n+sort-keys@^1.1.1:\nversion \"1.1.2\"\nresolved \"https://registry.yarnpkg.com/sort-keys/-/sort-keys-1.1.2.tgz#441b6d4d346798f1b4e49e8920adfba0e543f9ad\"\ndependencies:\nis-plain-obj \"^1.0.0\"\n+sort-keys@^2.0.0:\n+ version \"2.0.0\"\n+ resolved \"https://registry.yarnpkg.com/sort-keys/-/sort-keys-2.0.0.tgz#658535584861ec97d730d6cf41822e1f56684128\"\n+ dependencies:\n+ is-plain-obj \"^1.0.0\"\n+\nsource-map-support@^0.4.2:\nversion \"0.4.11\"\nresolved \"https://registry.yarnpkg.com/source-map-support/-/source-map-support-0.4.11.tgz#647f939978b38535909530885303daf23279f322\"\n@@ -3556,6 +3652,13 @@ string-width@^2.0.0:\nis-fullwidth-code-point \"^2.0.0\"\nstrip-ansi \"^3.0.0\"\n+string-width@^2.1.0:\n+ version \"2.1.1\"\n+ resolved \"https://registry.yarnpkg.com/string-width/-/string-width-2.1.1.tgz#ab93f27a8dc13d28cac815c462143a6d9012ae9e\"\n+ dependencies:\n+ is-fullwidth-code-point \"^2.0.0\"\n+ strip-ansi \"^4.0.0\"\n+\nstring_decoder@~0.10.x:\nversion \"0.10.31\"\nresolved \"https://registry.yarnpkg.com/string_decoder/-/string_decoder-0.10.31.tgz#62e203bc41766c6c28c9fc84301dab1c5310fa94\"\n@@ -3570,6 +3673,12 @@ strip-ansi@^3.0.0, strip-ansi@^3.0.1:\ndependencies:\nansi-regex \"^2.0.0\"\n+strip-ansi@^4.0.0:\n+ version \"4.0.0\"\n+ resolved \"https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-4.0.0.tgz#a8479022eb1ac368a871389b635262c505ee368f\"\n+ dependencies:\n+ ansi-regex \"^3.0.0\"\n+\nstrip-bom@3.0.0, strip-bom@^3.0.0:\nversion \"3.0.0\"\nresolved \"https://registry.yarnpkg.com/strip-bom/-/strip-bom-3.0.0.tgz#2334c18e9c759f7bdd56fdef7e9ae3d588e68ed3\"\n@@ -3618,6 +3727,12 @@ supports-color@^3.1.2:\ndependencies:\nhas-flag \"^1.0.0\"\n+supports-color@^4.0.0:\n+ version \"4.2.1\"\n+ resolved \"https://registry.yarnpkg.com/supports-color/-/supports-color-4.2.1.tgz#65a4bb2631e90e02420dba5554c375a4754bb836\"\n+ dependencies:\n+ has-flag \"^2.0.0\"\n+\nsymbol-tree@^3.2.1:\nversion \"3.2.2\"\nresolved \"https://registry.yarnpkg.com/symbol-tree/-/symbol-tree-3.2.2.tgz#ae27db38f660a7ae2e1c3b7d1bc290819b8519e6\"\n@@ -3948,22 +4063,23 @@ write-file-atomic@^2.0.0, write-file-atomic@^2.1.0:\nimurmurhash \"^0.1.4\"\nslide \"^1.1.5\"\n-write-json-file@^2.0.0, write-json-file@^2.1.0:\n- version \"2.1.0\"\n- resolved \"https://registry.yarnpkg.com/write-json-file/-/write-json-file-2.1.0.tgz#ba1cf3ac7ee89db26c3d528986e48421389046b7\"\n+write-json-file@^2.2.0:\n+ version \"2.2.0\"\n+ resolved \"https://registry.yarnpkg.com/write-json-file/-/write-json-file-2.2.0.tgz#51862506bbb3b619eefab7859f1fd6c6d0530876\"\ndependencies:\n+ detect-indent \"^5.0.0\"\ngraceful-fs \"^4.1.2\"\nmake-dir \"^1.0.0\"\npify \"^2.0.0\"\nsort-keys \"^1.1.1\"\nwrite-file-atomic \"^2.0.0\"\n-write-pkg@^3.0.1:\n- version \"3.0.1\"\n- resolved \"https://registry.yarnpkg.com/write-pkg/-/write-pkg-3.0.1.tgz#f95245805be6f6a4eb1d6c31c43b57226815e6e3\"\n+write-pkg@^3.1.0:\n+ version \"3.1.0\"\n+ resolved \"https://registry.yarnpkg.com/write-pkg/-/write-pkg-3.1.0.tgz#030a9994cc9993d25b4e75a9f1a1923607291ce9\"\ndependencies:\n- sort-keys \"^1.1.2\"\n- write-json-file \"^2.0.0\"\n+ sort-keys \"^2.0.0\"\n+ write-json-file \"^2.2.0\"\nwrite@^0.2.1:\nversion \"0.2.1\"\n@@ -4017,9 +4133,9 @@ yargs@^6.3.0:\ny18n \"^3.2.1\"\nyargs-parser \"^4.2.0\"\n-yargs@^8.0.1:\n- version \"8.0.1\"\n- resolved \"https://registry.yarnpkg.com/yargs/-/yargs-8.0.1.tgz#420ef75e840c1457a80adcca9bc6fa3849de51aa\"\n+yargs@^8.0.2:\n+ version \"8.0.2\"\n+ resolved \"https://registry.yarnpkg.com/yargs/-/yargs-8.0.2.tgz#6299a9055b1cefc969ff7e79c1d918dceb22c360\"\ndependencies:\ncamelcase \"^4.1.0\"\ncliui \"^3.2.0\"\n", "new_path": "yarn.lock", "old_path": "yarn.lock" } ]
JavaScript
MIT License
lerna/lerna
chore: bump dependencies (non-major)
1
chore
null
807,849
10.08.2017 09:39:46
25,200
f36ba1d731553c9da38b26c69d3a353b51e5c621
chore: chalk 2.x
[ { "change_type": "MODIFY", "diff": "\"homepage\": \"https://lernajs.io/\",\n\"dependencies\": {\n\"async\": \"^1.5.0\",\n- \"chalk\": \"^1.1.1\",\n+ \"chalk\": \"^2.1.0\",\n\"cmd-shim\": \"^2.0.2\",\n\"columnify\": \"^1.5.4\",\n\"command-join\": \"^2.0.0\",\n", "new_path": "package.json", "old_path": "package.json" }, { "change_type": "MODIFY", "diff": "@@ -878,7 +878,7 @@ chalk@^1.0.0, chalk@^1.1.0, chalk@^1.1.1, chalk@^1.1.3:\nstrip-ansi \"^3.0.0\"\nsupports-color \"^2.0.0\"\n-chalk@^2.0.0:\n+chalk@^2.0.0, chalk@^2.1.0:\nversion \"2.1.0\"\nresolved \"https://registry.yarnpkg.com/chalk/-/chalk-2.1.0.tgz#ac5becf14fa21b99c6c92ca7a7d7cfd5b17e743e\"\ndependencies:\n", "new_path": "yarn.lock", "old_path": "yarn.lock" } ]
JavaScript
MIT License
lerna/lerna
chore: chalk 2.x
1
chore
null
807,849
10.08.2017 09:56:14
25,200
001ec5882630cedd895f2c95a56a755617bb036c
chore: fs-extra 4.x
[ { "change_type": "MODIFY", "diff": "\"dedent\": \"^0.7.0\",\n\"execa\": \"^0.6.3\",\n\"find-up\": \"^2.1.0\",\n- \"fs-extra\": \"^3.0.1\",\n+ \"fs-extra\": \"^4.0.1\",\n\"get-port\": \"^3.1.0\",\n\"glob\": \"^7.1.2\",\n\"globby\": \"^6.1.0\",\n", "new_path": "package.json", "old_path": "package.json" }, { "change_type": "MODIFY", "diff": "@@ -1733,9 +1733,9 @@ form-data@~2.1.1:\ncombined-stream \"^1.0.5\"\nmime-types \"^2.1.12\"\n-fs-extra@^3.0.1:\n- version \"3.0.1\"\n- resolved \"https://registry.yarnpkg.com/fs-extra/-/fs-extra-3.0.1.tgz#3794f378c58b342ea7dbbb23095109c4b3b62291\"\n+fs-extra@^4.0.1:\n+ version \"4.0.1\"\n+ resolved \"https://registry.yarnpkg.com/fs-extra/-/fs-extra-4.0.1.tgz#7fc0c6c8957f983f57f306a24e5b9ddd8d0dd880\"\ndependencies:\ngraceful-fs \"^4.1.2\"\njsonfile \"^3.0.0\"\n", "new_path": "yarn.lock", "old_path": "yarn.lock" } ]
JavaScript
MIT License
lerna/lerna
chore: fs-extra 4.x
1
chore
null
807,849
10.08.2017 10:02:46
25,200
d1b5dddc3bc97317e6fa406b840e6acc628cf013
chore: upgrade eslint + eslint-config-babel
[ { "change_type": "MODIFY", "diff": "\"babel-jest\": \"^19.0.0\",\n\"babel-plugin-add-module-exports\": \"^0.2.1\",\n\"babel-preset-env\": \"^1.6.0\",\n- \"eslint\": \"^3.19.0\",\n- \"eslint-config-babel\": \"^6.0.0\",\n+ \"eslint\": \"^4.4.1\",\n+ \"eslint-config-babel\": \"^7.0.2\",\n\"eslint-plugin-babel\": \"^4.1.2\",\n\"eslint-plugin-flowtype\": \"^2.35.0\",\n\"eslint-plugin-node\": \"^5.1.1\",\n", "new_path": "package.json", "old_path": "package.json" }, { "change_type": "MODIFY", "diff": "@@ -37,9 +37,9 @@ acorn@^4.0.4:\nversion \"4.0.4\"\nresolved \"https://registry.yarnpkg.com/acorn/-/acorn-4.0.4.tgz#17a8d6a7a6c4ef538b814ec9abac2779293bf30a\"\n-acorn@^5.0.1:\n- version \"5.0.3\"\n- resolved \"https://registry.yarnpkg.com/acorn/-/acorn-5.0.3.tgz#c460df08491463f028ccb82eab3730bf01087b3d\"\n+acorn@^5.1.1:\n+ version \"5.1.1\"\n+ resolved \"https://registry.yarnpkg.com/acorn/-/acorn-5.1.1.tgz#53fe161111f912ab999ee887a90a0bc52822fd75\"\nadd-stream@^1.0.0:\nversion \"1.0.0\"\n@@ -56,6 +56,15 @@ ajv@^4.7.0:\nco \"^4.6.0\"\njson-stable-stringify \"^1.0.1\"\n+ajv@^5.2.0:\n+ version \"5.2.2\"\n+ resolved \"https://registry.yarnpkg.com/ajv/-/ajv-5.2.2.tgz#47c68d69e86f5d953103b0074a9430dc63da5e39\"\n+ dependencies:\n+ co \"^4.6.0\"\n+ fast-deep-equal \"^1.0.0\"\n+ json-schema-traverse \"^0.3.0\"\n+ json-stable-stringify \"^1.0.1\"\n+\nalign-text@^0.1.1, align-text@^0.1.3:\nversion \"0.1.4\"\nresolved \"https://registry.yarnpkg.com/align-text/-/align-text-0.1.4.tgz#0cd90a561093f35d0a99256c22b7069433fad117\"\n@@ -68,7 +77,7 @@ amdefine@>=0.0.4:\nversion \"1.0.1\"\nresolved \"https://registry.yarnpkg.com/amdefine/-/amdefine-1.0.1.tgz#4a5282ac164729e93619bcfd3ad151f817ce91f5\"\n-ansi-escapes@^1.1.0, ansi-escapes@^1.4.0:\n+ansi-escapes@^1.4.0:\nversion \"1.4.0\"\nresolved \"https://registry.yarnpkg.com/ansi-escapes/-/ansi-escapes-1.4.0.tgz#d3a8a83b319aa67793662b13e761c7911422306e\"\n@@ -233,7 +242,7 @@ babel-cli@^6.24.1:\noptionalDependencies:\nchokidar \"^1.6.1\"\n-babel-code-frame@^6.16.0, babel-code-frame@^6.22.0:\n+babel-code-frame@^6.22.0:\nversion \"6.22.0\"\nresolved \"https://registry.yarnpkg.com/babel-code-frame/-/babel-code-frame-6.22.0.tgz#027620bee567a88c32561574e7fd0801d33118e4\"\ndependencies:\n@@ -868,7 +877,7 @@ center-align@^0.1.1:\nalign-text \"^0.1.3\"\nlazy-cache \"^1.0.3\"\n-chalk@^1.0.0, chalk@^1.1.0, chalk@^1.1.1, chalk@^1.1.3:\n+chalk@^1.1.0, chalk@^1.1.1, chalk@^1.1.3:\nversion \"1.1.3\"\nresolved \"https://registry.yarnpkg.com/chalk/-/chalk-1.1.3.tgz#a8115c55e4a702fe4d150abd3872822a7e09fc98\"\ndependencies:\n@@ -909,12 +918,6 @@ circular-json@^0.3.1:\nversion \"0.3.1\"\nresolved \"https://registry.yarnpkg.com/circular-json/-/circular-json-0.3.1.tgz#be8b36aefccde8b3ca7aa2d6afc07a37242c0d2d\"\n-cli-cursor@^1.0.1:\n- version \"1.0.2\"\n- resolved \"https://registry.yarnpkg.com/cli-cursor/-/cli-cursor-1.0.2.tgz#64da3f7d56a54412e59794bd62dc35295e8f2987\"\n- dependencies:\n- restore-cursor \"^1.0.1\"\n-\ncli-cursor@^2.1.0:\nversion \"2.1.0\"\nresolved \"https://registry.yarnpkg.com/cli-cursor/-/cli-cursor-2.1.0.tgz#b35dac376479facc3e94747d41d0d0f5238ffcb5\"\n@@ -1004,7 +1007,7 @@ concat-map@0.0.1:\nversion \"0.0.1\"\nresolved \"https://registry.yarnpkg.com/concat-map/-/concat-map-0.0.1.tgz#d8a96bd77fd68df7793a73036a3ba0d5405d477b\"\n-concat-stream@^1.4.10, concat-stream@^1.5.2:\n+concat-stream@^1.4.10, concat-stream@^1.6.0:\nversion \"1.6.0\"\nresolved \"https://registry.yarnpkg.com/concat-stream/-/concat-stream-1.6.0.tgz#0aac662fd52be78964d5532f694784e70110acf7\"\ndependencies:\n@@ -1198,7 +1201,7 @@ cross-spawn@^4.0.0:\nlru-cache \"^4.0.1\"\nwhich \"^1.2.9\"\n-cross-spawn@^5.0.1:\n+cross-spawn@^5.0.1, cross-spawn@^5.1.0:\nversion \"5.1.0\"\nresolved \"https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-5.1.0.tgz#e8bd0efee58fcff6f8f94510a0a554bbfa235449\"\ndependencies:\n@@ -1232,12 +1235,6 @@ currently-unhandled@^0.4.1:\ndependencies:\narray-find-index \"^1.0.1\"\n-d@^0.1.1, d@~0.1.1:\n- version \"0.1.1\"\n- resolved \"https://registry.yarnpkg.com/d/-/d-0.1.1.tgz#da184c535d18d8ee7ba2aa229b914009fae11309\"\n- dependencies:\n- es5-ext \"~0.10.2\"\n-\ndargs@^4.0.1:\nversion \"4.1.0\"\nresolved \"https://registry.yarnpkg.com/dargs/-/dargs-4.1.0.tgz#03a9dbb4b5c2f139bf14ae53f0b8a2a6a86f4e17\"\n@@ -1263,6 +1260,12 @@ debug@^2.1.1, debug@^2.2.0:\ndependencies:\nms \"0.7.2\"\n+debug@^2.6.8:\n+ version \"2.6.8\"\n+ resolved \"https://registry.yarnpkg.com/debug/-/debug-2.6.8.tgz#e731531ca2ede27d188222427da17821d68ff4fc\"\n+ dependencies:\n+ ms \"2.0.0\"\n+\ndebug@~2.2.0:\nversion \"2.2.0\"\nresolved \"https://registry.yarnpkg.com/debug/-/debug-2.2.0.tgz#f87057e995b1a1f6ae6a4960664137bc56f039da\"\n@@ -1370,58 +1373,6 @@ error-ex@^1.2.0:\ndependencies:\nis-arrayish \"^0.2.1\"\n-es5-ext@^0.10.7, es5-ext@^0.10.8, es5-ext@~0.10.11, es5-ext@~0.10.2, es5-ext@~0.10.7:\n- version \"0.10.12\"\n- resolved \"https://registry.yarnpkg.com/es5-ext/-/es5-ext-0.10.12.tgz#aa84641d4db76b62abba5e45fd805ecbab140047\"\n- dependencies:\n- es6-iterator \"2\"\n- es6-symbol \"~3.1\"\n-\n-es6-iterator@2:\n- version \"2.0.0\"\n- resolved \"https://registry.yarnpkg.com/es6-iterator/-/es6-iterator-2.0.0.tgz#bd968567d61635e33c0b80727613c9cb4b096bac\"\n- dependencies:\n- d \"^0.1.1\"\n- es5-ext \"^0.10.7\"\n- es6-symbol \"3\"\n-\n-es6-map@^0.1.3:\n- version \"0.1.4\"\n- resolved \"https://registry.yarnpkg.com/es6-map/-/es6-map-0.1.4.tgz#a34b147be224773a4d7da8072794cefa3632b897\"\n- dependencies:\n- d \"~0.1.1\"\n- es5-ext \"~0.10.11\"\n- es6-iterator \"2\"\n- es6-set \"~0.1.3\"\n- es6-symbol \"~3.1.0\"\n- event-emitter \"~0.3.4\"\n-\n-es6-set@~0.1.3:\n- version \"0.1.4\"\n- resolved \"https://registry.yarnpkg.com/es6-set/-/es6-set-0.1.4.tgz#9516b6761c2964b92ff479456233a247dc707ce8\"\n- dependencies:\n- d \"~0.1.1\"\n- es5-ext \"~0.10.11\"\n- es6-iterator \"2\"\n- es6-symbol \"3\"\n- event-emitter \"~0.3.4\"\n-\n-es6-symbol@3, es6-symbol@~3.1, es6-symbol@~3.1.0:\n- version \"3.1.0\"\n- resolved \"https://registry.yarnpkg.com/es6-symbol/-/es6-symbol-3.1.0.tgz#94481c655e7a7cad82eba832d97d5433496d7ffa\"\n- dependencies:\n- d \"~0.1.1\"\n- es5-ext \"~0.10.11\"\n-\n-es6-weak-map@^2.0.1:\n- version \"2.0.1\"\n- resolved \"https://registry.yarnpkg.com/es6-weak-map/-/es6-weak-map-2.0.1.tgz#0d2bbd8827eb5fb4ba8f97fbfea50d43db21ea81\"\n- dependencies:\n- d \"^0.1.1\"\n- es5-ext \"^0.10.8\"\n- es6-iterator \"2\"\n- es6-symbol \"3\"\n-\nescape-string-regexp@^1.0.2, escape-string-regexp@^1.0.3, escape-string-regexp@^1.0.5:\nversion \"1.0.5\"\nresolved \"https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz#1b61c0562190a8dff6ae3bb2cf0200ca130b86d4\"\n@@ -1437,18 +1388,9 @@ escodegen@^1.6.1:\noptionalDependencies:\nsource-map \"~0.2.0\"\n-escope@^3.6.0:\n- version \"3.6.0\"\n- resolved \"https://registry.yarnpkg.com/escope/-/escope-3.6.0.tgz#e01975e812781a163a6dadfdd80398dc64c889c3\"\n- dependencies:\n- es6-map \"^0.1.3\"\n- es6-weak-map \"^2.0.1\"\n- esrecurse \"^4.1.0\"\n- estraverse \"^4.1.1\"\n-\n-eslint-config-babel@^6.0.0:\n- version \"6.0.0\"\n- resolved \"https://registry.yarnpkg.com/eslint-config-babel/-/eslint-config-babel-6.0.0.tgz#66feedf6ce6e04abe585cec1a65b5bcc96bed50a\"\n+eslint-config-babel@^7.0.2:\n+ version \"7.0.2\"\n+ resolved \"https://registry.yarnpkg.com/eslint-config-babel/-/eslint-config-babel-7.0.2.tgz#cbde74f61cee087d8cd6e607fcfa087869a02d99\"\neslint-plugin-babel@^4.1.2:\nversion \"4.1.2\"\n@@ -1469,51 +1411,59 @@ eslint-plugin-node@^5.1.1:\nresolve \"^1.3.3\"\nsemver \"5.3.0\"\n-eslint@^3.19.0:\n- version \"3.19.0\"\n- resolved \"https://registry.yarnpkg.com/eslint/-/eslint-3.19.0.tgz#c8fc6201c7f40dd08941b87c085767386a679acc\"\n+eslint-scope@^3.7.1:\n+ version \"3.7.1\"\n+ resolved \"https://registry.yarnpkg.com/eslint-scope/-/eslint-scope-3.7.1.tgz#3d63c3edfda02e06e01a452ad88caacc7cdcb6e8\"\n+ dependencies:\n+ esrecurse \"^4.1.0\"\n+ estraverse \"^4.1.1\"\n+\n+eslint@^4.4.1:\n+ version \"4.4.1\"\n+ resolved \"https://registry.yarnpkg.com/eslint/-/eslint-4.4.1.tgz#99cd7eafcffca2ff99a5c8f5f2a474d6364b4bd3\"\ndependencies:\n- babel-code-frame \"^6.16.0\"\n+ ajv \"^5.2.0\"\n+ babel-code-frame \"^6.22.0\"\nchalk \"^1.1.3\"\n- concat-stream \"^1.5.2\"\n- debug \"^2.1.1\"\n+ concat-stream \"^1.6.0\"\n+ cross-spawn \"^5.1.0\"\n+ debug \"^2.6.8\"\ndoctrine \"^2.0.0\"\n- escope \"^3.6.0\"\n- espree \"^3.4.0\"\n+ eslint-scope \"^3.7.1\"\n+ espree \"^3.5.0\"\nesquery \"^1.0.0\"\nestraverse \"^4.2.0\"\nesutils \"^2.0.2\"\nfile-entry-cache \"^2.0.0\"\n- glob \"^7.0.3\"\n- globals \"^9.14.0\"\n- ignore \"^3.2.0\"\n+ functional-red-black-tree \"^1.0.1\"\n+ glob \"^7.1.2\"\n+ globals \"^9.17.0\"\n+ ignore \"^3.3.3\"\nimurmurhash \"^0.1.4\"\n- inquirer \"^0.12.0\"\n- is-my-json-valid \"^2.10.0\"\n+ inquirer \"^3.0.6\"\nis-resolvable \"^1.0.0\"\n- js-yaml \"^3.5.1\"\n- json-stable-stringify \"^1.0.0\"\n+ js-yaml \"^3.9.1\"\n+ json-stable-stringify \"^1.0.1\"\nlevn \"^0.3.0\"\n- lodash \"^4.0.0\"\n- mkdirp \"^0.5.0\"\n+ lodash \"^4.17.4\"\n+ minimatch \"^3.0.2\"\n+ mkdirp \"^0.5.1\"\nnatural-compare \"^1.4.0\"\noptionator \"^0.8.2\"\n- path-is-inside \"^1.0.1\"\n- pluralize \"^1.2.1\"\n- progress \"^1.1.8\"\n- require-uncached \"^1.0.2\"\n- shelljs \"^0.7.5\"\n- strip-bom \"^3.0.0\"\n+ path-is-inside \"^1.0.2\"\n+ pluralize \"^4.0.0\"\n+ progress \"^2.0.0\"\n+ require-uncached \"^1.0.3\"\n+ semver \"^5.3.0\"\nstrip-json-comments \"~2.0.1\"\n- table \"^3.7.8\"\n+ table \"^4.0.1\"\ntext-table \"~0.2.0\"\n- user-home \"^2.0.0\"\n-espree@^3.4.0:\n- version \"3.4.1\"\n- resolved \"https://registry.yarnpkg.com/espree/-/espree-3.4.1.tgz#28a83ab4aaed71ed8fe0f5efe61b76a05c13c4d2\"\n+espree@^3.5.0:\n+ version \"3.5.0\"\n+ resolved \"https://registry.yarnpkg.com/espree/-/espree-3.5.0.tgz#98358625bdd055861ea27e2867ea729faf463d8d\"\ndependencies:\n- acorn \"^5.0.1\"\n+ acorn \"^5.1.1\"\nacorn-jsx \"^3.0.0\"\nesprima@^2.7.1:\n@@ -1524,6 +1474,10 @@ esprima@^3.1.1:\nversion \"3.1.3\"\nresolved \"https://registry.yarnpkg.com/esprima/-/esprima-3.1.3.tgz#fdca51cee6133895e3c88d535ce49dbff62a4633\"\n+esprima@^4.0.0:\n+ version \"4.0.0\"\n+ resolved \"https://registry.yarnpkg.com/esprima/-/esprima-4.0.0.tgz#4499eddcd1110e0b218bacf2fa7f7f59f55ca804\"\n+\nesquery@^1.0.0:\nversion \"1.0.0\"\nresolved \"https://registry.yarnpkg.com/esquery/-/esquery-1.0.0.tgz#cfba8b57d7fba93f17298a8a006a04cda13d80fa\"\n@@ -1553,13 +1507,6 @@ esutils@^2.0.2:\nversion \"2.0.2\"\nresolved \"https://registry.yarnpkg.com/esutils/-/esutils-2.0.2.tgz#0abf4f1caa5bcb1f7a9d8acc6dea4faaa04bac9b\"\n-event-emitter@~0.3.4:\n- version \"0.3.4\"\n- resolved \"https://registry.yarnpkg.com/event-emitter/-/event-emitter-0.3.4.tgz#8d63ddfb4cfe1fae3b32ca265c4c720222080bb5\"\n- dependencies:\n- d \"~0.1.1\"\n- es5-ext \"~0.10.7\"\n-\nexec-sh@^0.2.0:\nversion \"0.2.0\"\nresolved \"https://registry.yarnpkg.com/exec-sh/-/exec-sh-0.2.0.tgz#14f75de3f20d286ef933099b2ce50a90359cef10\"\n@@ -1590,10 +1537,6 @@ execa@^0.6.3:\nsignal-exit \"^3.0.0\"\nstrip-eof \"^1.0.0\"\n-exit-hook@^1.0.0:\n- version \"1.1.1\"\n- resolved \"https://registry.yarnpkg.com/exit-hook/-/exit-hook-1.1.1.tgz#f05ca233b48c05d54fff07765df8507e95c02ff8\"\n-\nexpand-brackets@^0.1.4:\nversion \"0.1.5\"\nresolved \"https://registry.yarnpkg.com/expand-brackets/-/expand-brackets-0.1.5.tgz#df07284e342a807cd733ac5af72411e581d1177b\"\n@@ -1628,6 +1571,10 @@ extsprintf@1.0.2:\nversion \"1.0.2\"\nresolved \"https://registry.yarnpkg.com/extsprintf/-/extsprintf-1.0.2.tgz#e1080e0658e300b06294990cc70e1502235fd550\"\n+fast-deep-equal@^1.0.0:\n+ version \"1.0.0\"\n+ resolved \"https://registry.yarnpkg.com/fast-deep-equal/-/fast-deep-equal-1.0.0.tgz#96256a3bc975595eb36d82e9929d060d893439ff\"\n+\nfast-levenshtein@~2.0.4:\nversion \"2.0.6\"\nresolved \"https://registry.yarnpkg.com/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz#3d8a5c66883a16a30ca8643e851f19baa7797917\"\n@@ -1644,13 +1591,6 @@ fb-watchman@^2.0.0:\ndependencies:\nbser \"^2.0.0\"\n-figures@^1.3.5:\n- version \"1.7.0\"\n- resolved \"https://registry.yarnpkg.com/figures/-/figures-1.7.0.tgz#cbe1e3affcf1cd44b80cadfed28dc793a9701d2e\"\n- dependencies:\n- escape-string-regexp \"^1.0.5\"\n- object-assign \"^4.1.0\"\n-\nfigures@^2.0.0:\nversion \"2.0.0\"\nresolved \"https://registry.yarnpkg.com/figures/-/figures-2.0.0.tgz#3ab1a2d2a62c8bfb431a0c94cb797a2fce27c962\"\n@@ -1773,6 +1713,10 @@ fstream@^1.0.0, fstream@^1.0.2, fstream@~1.0.10:\nmkdirp \">=0.5 0\"\nrimraf \"2\"\n+functional-red-black-tree@^1.0.1:\n+ version \"1.0.1\"\n+ resolved \"https://registry.yarnpkg.com/functional-red-black-tree/-/functional-red-black-tree-1.0.1.tgz#1b0ab3bd553b2a0d6399d29c0e3ea0b252078327\"\n+\ngauge@~2.7.3:\nversion \"2.7.3\"\nresolved \"https://registry.yarnpkg.com/gauge/-/gauge-2.7.3.tgz#1c23855f962f17b3ad3d0dc7443f304542edfe09\"\n@@ -1900,10 +1844,14 @@ glob@^7.0.0, glob@^7.0.3, glob@^7.0.5, glob@^7.1.2:\nonce \"^1.3.0\"\npath-is-absolute \"^1.0.0\"\n-globals@^9.0.0, globals@^9.14.0:\n+globals@^9.0.0:\nversion \"9.14.0\"\nresolved \"https://registry.yarnpkg.com/globals/-/globals-9.14.0.tgz#8859936af0038741263053b39d0e76ca241e4034\"\n+globals@^9.17.0:\n+ version \"9.18.0\"\n+ resolved \"https://registry.yarnpkg.com/globals/-/globals-9.18.0.tgz#aa3896b3e69b487f17e31ed2143d69a8e30c2d8a\"\n+\nglobby@^5.0.0:\nversion \"5.0.0\"\nresolved \"https://registry.yarnpkg.com/globby/-/globby-5.0.0.tgz#ebd84667ca0dbb330b99bcfc68eac2bc54370e0d\"\n@@ -2020,10 +1968,6 @@ iconv-lite@^0.4.17:\nversion \"0.4.18\"\nresolved \"https://registry.yarnpkg.com/iconv-lite/-/iconv-lite-0.4.18.tgz#23d8656b16aae6742ac29732ea8f0336a4789cf2\"\n-ignore@^3.2.0:\n- version \"3.2.6\"\n- resolved \"https://registry.yarnpkg.com/ignore/-/ignore-3.2.6.tgz#26e8da0644be0bb4cb39516f6c79f0e0f4ffe48c\"\n-\nignore@^3.3.3:\nversion \"3.3.3\"\nresolved \"https://registry.yarnpkg.com/ignore/-/ignore-3.3.3.tgz#432352e57accd87ab3110e82d3fea0e47812156d\"\n@@ -2053,25 +1997,7 @@ ini@^1.3.2, ini@~1.3.0:\nversion \"1.3.4\"\nresolved \"https://registry.yarnpkg.com/ini/-/ini-1.3.4.tgz#0537cb79daf59b59a1a517dff706c86ec039162e\"\n-inquirer@^0.12.0:\n- version \"0.12.0\"\n- resolved \"https://registry.yarnpkg.com/inquirer/-/inquirer-0.12.0.tgz#1ef2bfd63504df0bc75785fff8c2c41df12f077e\"\n- dependencies:\n- ansi-escapes \"^1.1.0\"\n- ansi-regex \"^2.0.0\"\n- chalk \"^1.0.0\"\n- cli-cursor \"^1.0.1\"\n- cli-width \"^2.0.0\"\n- figures \"^1.3.5\"\n- lodash \"^4.3.0\"\n- readline2 \"^1.0.1\"\n- run-async \"^0.1.0\"\n- rx-lite \"^3.1.2\"\n- string-width \"^1.0.1\"\n- strip-ansi \"^3.0.0\"\n- through \"^2.3.6\"\n-\n-inquirer@^3.2.1:\n+inquirer@^3.0.6, inquirer@^3.2.1:\nversion \"3.2.1\"\nresolved \"https://registry.yarnpkg.com/inquirer/-/inquirer-3.2.1.tgz#06ceb0f540f45ca548c17d6840959878265fa175\"\ndependencies:\n@@ -2090,10 +2016,6 @@ inquirer@^3.2.1:\nstrip-ansi \"^4.0.0\"\nthrough \"^2.3.6\"\n-interpret@^1.0.0:\n- version \"1.0.2\"\n- resolved \"https://registry.yarnpkg.com/interpret/-/interpret-1.0.2.tgz#f4f623f0bb7122f15f5717c8e254b8161b5c5b2d\"\n-\ninvariant@^2.2.0, invariant@^2.2.2:\nversion \"2.2.2\"\nresolved \"https://registry.yarnpkg.com/invariant/-/invariant-2.2.2.tgz#9e1f56ac0acdb6bf303306f338be3b204ae60360\"\n@@ -2170,7 +2092,7 @@ is-glob@^2.0.0, is-glob@^2.0.1:\ndependencies:\nis-extglob \"^1.0.0\"\n-is-my-json-valid@^2.10.0, is-my-json-valid@^2.12.4:\n+is-my-json-valid@^2.12.4:\nversion \"2.15.0\"\nresolved \"https://registry.yarnpkg.com/is-my-json-valid/-/is-my-json-valid-2.15.0.tgz#936edda3ca3c211fd98f3b2d3e08da43f7b2915b\"\ndependencies:\n@@ -2547,13 +2469,20 @@ js-tokens@^3.0.0:\nversion \"3.0.1\"\nresolved \"https://registry.yarnpkg.com/js-tokens/-/js-tokens-3.0.1.tgz#08e9f132484a2c45a30907e9dc4d5567b7f114d7\"\n-js-yaml@^3.5.1, js-yaml@^3.7.0:\n+js-yaml@^3.7.0:\nversion \"3.8.1\"\nresolved \"https://registry.yarnpkg.com/js-yaml/-/js-yaml-3.8.1.tgz#782ba50200be7b9e5a8537001b7804db3ad02628\"\ndependencies:\nargparse \"^1.0.7\"\nesprima \"^3.1.1\"\n+js-yaml@^3.9.1:\n+ version \"3.9.1\"\n+ resolved \"https://registry.yarnpkg.com/js-yaml/-/js-yaml-3.9.1.tgz#08775cebdfdd359209f0d2acd383c8f86a6904a0\"\n+ dependencies:\n+ argparse \"^1.0.7\"\n+ esprima \"^4.0.0\"\n+\njsbn@~0.1.0:\nversion \"0.1.0\"\nresolved \"https://registry.yarnpkg.com/jsbn/-/jsbn-0.1.0.tgz#650987da0dd74f4ebf5a11377a2aa2d273e97dfd\"\n@@ -2594,11 +2523,15 @@ jsesc@~0.5.0:\nversion \"0.5.0\"\nresolved \"https://registry.yarnpkg.com/jsesc/-/jsesc-0.5.0.tgz#e7dee66e35d6fc16f710fe91d5cf69f70f08911d\"\n+json-schema-traverse@^0.3.0:\n+ version \"0.3.1\"\n+ resolved \"https://registry.yarnpkg.com/json-schema-traverse/-/json-schema-traverse-0.3.1.tgz#349a6d44c53a51de89b40805c5d5e59b417d3340\"\n+\njson-schema@0.2.3:\nversion \"0.2.3\"\nresolved \"https://registry.yarnpkg.com/json-schema/-/json-schema-0.2.3.tgz#b480c892e59a2f05954ce727bd3f2a4e882f9e13\"\n-json-stable-stringify@^1.0.0, json-stable-stringify@^1.0.1:\n+json-stable-stringify@^1.0.1:\nversion \"1.0.1\"\nresolved \"https://registry.yarnpkg.com/json-stable-stringify/-/json-stable-stringify-1.0.1.tgz#9a759d39c5f2ff503fd5300646ed445f88c4f9af\"\ndependencies:\n@@ -2827,7 +2760,7 @@ minimist@^1.1.1, minimist@^1.1.3, minimist@^1.2.0:\nversion \"1.2.0\"\nresolved \"https://registry.yarnpkg.com/minimist/-/minimist-1.2.0.tgz#a35008b20f41383eec1fb914f4cd5df79a264284\"\n-\"mkdirp@>=0.5 0\", mkdirp@^0.5.0, mkdirp@^0.5.1, mkdirp@~0.5.0, mkdirp@~0.5.1:\n+\"mkdirp@>=0.5 0\", mkdirp@^0.5.1, mkdirp@~0.5.0, mkdirp@~0.5.1:\nversion \"0.5.1\"\nresolved \"https://registry.yarnpkg.com/mkdirp/-/mkdirp-0.5.1.tgz#30057438eac6cf7f8c4767f38648d6697d75c903\"\ndependencies:\n@@ -2849,9 +2782,9 @@ ms@0.7.2:\nversion \"0.7.2\"\nresolved \"https://registry.yarnpkg.com/ms/-/ms-0.7.2.tgz#ae25cf2512b3885a1d95d7f037868d8431124765\"\n-mute-stream@0.0.5:\n- version \"0.0.5\"\n- resolved \"https://registry.yarnpkg.com/mute-stream/-/mute-stream-0.0.5.tgz#8fbfabb0a98a253d3184331f9e8deb7372fac6c0\"\n+ms@2.0.0:\n+ version \"2.0.0\"\n+ resolved \"https://registry.yarnpkg.com/ms/-/ms-2.0.0.tgz#5608aeadfc00be6c2901df5f9861788de0d597c8\"\nmute-stream@0.0.7:\nversion \"0.0.7\"\n@@ -2982,10 +2915,6 @@ once@~1.3.3:\ndependencies:\nwrappy \"1\"\n-onetime@^1.0.0:\n- version \"1.1.0\"\n- resolved \"https://registry.yarnpkg.com/onetime/-/onetime-1.1.0.tgz#a1f7838f8314c516f05ecefcbc4ccfe04b4ed789\"\n-\nonetime@^2.0.0:\nversion \"2.0.0\"\nresolved \"https://registry.yarnpkg.com/onetime/-/onetime-2.0.0.tgz#52aa8110e52fc5126ffc667bd8ec21c2ed209ce6\"\n@@ -3091,7 +3020,7 @@ path-is-absolute@^1.0.0:\nversion \"1.0.1\"\nresolved \"https://registry.yarnpkg.com/path-is-absolute/-/path-is-absolute-1.0.1.tgz#174b9268735534ffbc7ace6bf53a5a9e1b5c5f5f\"\n-path-is-inside@^1.0.1:\n+path-is-inside@^1.0.1, path-is-inside@^1.0.2:\nversion \"1.0.2\"\nresolved \"https://registry.yarnpkg.com/path-is-inside/-/path-is-inside-1.0.2.tgz#365417dede44430d1c11af61027facf074bdfc53\"\n@@ -3131,9 +3060,9 @@ pinkie@^2.0.0:\nversion \"2.0.4\"\nresolved \"https://registry.yarnpkg.com/pinkie/-/pinkie-2.0.4.tgz#72556b80cfa0d48a974e80e77248e80ed4f7f870\"\n-pluralize@^1.2.1:\n- version \"1.2.1\"\n- resolved \"https://registry.yarnpkg.com/pluralize/-/pluralize-1.2.1.tgz#d1a21483fd22bb41e58a12fa3421823140897c45\"\n+pluralize@^4.0.0:\n+ version \"4.0.0\"\n+ resolved \"https://registry.yarnpkg.com/pluralize/-/pluralize-4.0.0.tgz#59b708c1c0190a2f692f1c7618c446b052fd1762\"\nprelude-ls@~1.1.2:\nversion \"1.1.2\"\n@@ -3157,9 +3086,9 @@ process-nextick-args@~1.0.6:\nversion \"1.0.7\"\nresolved \"https://registry.yarnpkg.com/process-nextick-args/-/process-nextick-args-1.0.7.tgz#150e20b756590ad3f91093f25a4f2ad8bff30ba3\"\n-progress@^1.1.8:\n- version \"1.1.8\"\n- resolved \"https://registry.yarnpkg.com/progress/-/progress-1.1.8.tgz#e260c78f6161cdd9b0e56cc3e0a85de17c7a57be\"\n+progress@^2.0.0:\n+ version \"2.0.0\"\n+ resolved \"https://registry.yarnpkg.com/progress/-/progress-2.0.0.tgz#8a1be366bf8fc23db2bd23f10c6fe920b4389d1f\"\nprr@~0.0.0:\nversion \"0.0.0\"\n@@ -3266,20 +3195,6 @@ readdirp@^2.0.0:\nreadable-stream \"^2.0.2\"\nset-immediate-shim \"^1.0.1\"\n-readline2@^1.0.1:\n- version \"1.0.1\"\n- resolved \"https://registry.yarnpkg.com/readline2/-/readline2-1.0.1.tgz#41059608ffc154757b715d9989d199ffbf372e35\"\n- dependencies:\n- code-point-at \"^1.0.0\"\n- is-fullwidth-code-point \"^1.0.0\"\n- mute-stream \"0.0.5\"\n-\n-rechoir@^0.6.2:\n- version \"0.6.2\"\n- resolved \"https://registry.yarnpkg.com/rechoir/-/rechoir-0.6.2.tgz#85204b54dba82d5742e28c96756ef43af50e3384\"\n- dependencies:\n- resolve \"^1.1.6\"\n-\nredent@^1.0.0:\nversion \"1.0.0\"\nresolved \"https://registry.yarnpkg.com/redent/-/redent-1.0.0.tgz#cf916ab1fd5f1f16dfb20822dd6ec7f730c2afde\"\n@@ -3387,7 +3302,7 @@ require-main-filename@^1.0.1:\nversion \"1.0.1\"\nresolved \"https://registry.yarnpkg.com/require-main-filename/-/require-main-filename-1.0.1.tgz#97f717b69d48784f5f526a6c5aa8ffdda055a4d1\"\n-require-uncached@^1.0.2:\n+require-uncached@^1.0.3:\nversion \"1.0.3\"\nresolved \"https://registry.yarnpkg.com/require-uncached/-/require-uncached-1.0.3.tgz#4e0d56d6c9662fd31e43011c4b95aa49955421d3\"\ndependencies:\n@@ -3402,7 +3317,7 @@ resolve@1.1.7:\nversion \"1.1.7\"\nresolved \"https://registry.yarnpkg.com/resolve/-/resolve-1.1.7.tgz#203114d82ad2c5ed9e8e0411b3932875e889e97b\"\n-resolve@^1.1.6, resolve@^1.2.0:\n+resolve@^1.2.0:\nversion \"1.3.2\"\nresolved \"https://registry.yarnpkg.com/resolve/-/resolve-1.3.2.tgz#1f0442c9e0cbb8136e87b9305f932f46c7f28235\"\ndependencies:\n@@ -3414,13 +3329,6 @@ resolve@^1.3.3:\ndependencies:\npath-parse \"^1.0.5\"\n-restore-cursor@^1.0.1:\n- version \"1.0.1\"\n- resolved \"https://registry.yarnpkg.com/restore-cursor/-/restore-cursor-1.0.1.tgz#34661f46886327fed2991479152252df92daa541\"\n- dependencies:\n- exit-hook \"^1.0.0\"\n- onetime \"^1.0.0\"\n-\nrestore-cursor@^2.0.0:\nversion \"2.0.0\"\nresolved \"https://registry.yarnpkg.com/restore-cursor/-/restore-cursor-2.0.0.tgz#9f7ee287f82fd326d4fd162923d62129eee0dfaf\"\n@@ -3446,12 +3354,6 @@ rimraf@~2.5.1, rimraf@~2.5.4:\ndependencies:\nglob \"^7.0.5\"\n-run-async@^0.1.0:\n- version \"0.1.0\"\n- resolved \"https://registry.yarnpkg.com/run-async/-/run-async-0.1.0.tgz#c8ad4a5e110661e402a7d21b530e009f25f8e389\"\n- dependencies:\n- once \"^1.3.0\"\n-\nrun-async@^2.2.0:\nversion \"2.3.0\"\nresolved \"https://registry.yarnpkg.com/run-async/-/run-async-2.3.0.tgz#0371ab4ae0bdd720d4166d7dfda64ff7a445a6c0\"\n@@ -3468,10 +3370,6 @@ rx-lite@*, rx-lite@^4.0.8:\nversion \"4.0.8\"\nresolved \"https://registry.yarnpkg.com/rx-lite/-/rx-lite-4.0.8.tgz#0b1e11af8bc44836f04a6407e92da42467b79444\"\n-rx-lite@^3.1.2:\n- version \"3.1.2\"\n- resolved \"https://registry.yarnpkg.com/rx-lite/-/rx-lite-3.1.2.tgz#19ce502ca572665f3b647b10939f97fd1615f102\"\n-\nsafe-buffer@^5.1.1:\nversion \"5.1.1\"\nresolved \"https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.1.1.tgz#893312af69b2123def71f57889001671eeb2c853\"\n@@ -3518,14 +3416,6 @@ shebang-regex@^1.0.0:\nversion \"1.0.0\"\nresolved \"https://registry.yarnpkg.com/shebang-regex/-/shebang-regex-1.0.0.tgz#da42f49740c0b42db2ca9728571cb190c98efea3\"\n-shelljs@^0.7.5:\n- version \"0.7.7\"\n- resolved \"https://registry.yarnpkg.com/shelljs/-/shelljs-0.7.7.tgz#b2f5c77ef97148f4b4f6e22682e10bba8667cff1\"\n- dependencies:\n- glob \"^7.0.0\"\n- interpret \"^1.0.0\"\n- rechoir \"^0.6.2\"\n-\nshellwords@^0.1.0:\nversion \"0.1.0\"\nresolved \"https://registry.yarnpkg.com/shellwords/-/shellwords-0.1.0.tgz#66afd47b6a12932d9071cbfd98a52e785cd0ba14\"\n@@ -3737,9 +3627,9 @@ symbol-tree@^3.2.1:\nversion \"3.2.2\"\nresolved \"https://registry.yarnpkg.com/symbol-tree/-/symbol-tree-3.2.2.tgz#ae27db38f660a7ae2e1c3b7d1bc290819b8519e6\"\n-table@^3.7.8:\n- version \"3.8.3\"\n- resolved \"https://registry.yarnpkg.com/table/-/table-3.8.3.tgz#2bbc542f0fda9861a755d3947fefd8b3f513855f\"\n+table@^4.0.1:\n+ version \"4.0.1\"\n+ resolved \"https://registry.yarnpkg.com/table/-/table-4.0.1.tgz#a8116c133fac2c61f4a420ab6cdf5c4d61f0e435\"\ndependencies:\najv \"^4.7.0\"\najv-keywords \"^1.0.0\"\n@@ -3927,12 +3817,6 @@ user-home@^1.1.1:\nversion \"1.1.1\"\nresolved \"https://registry.yarnpkg.com/user-home/-/user-home-1.1.1.tgz#2b5be23a32b63a7c9deb8d0f28d485724a3df190\"\n-user-home@^2.0.0:\n- version \"2.0.0\"\n- resolved \"https://registry.yarnpkg.com/user-home/-/user-home-2.0.0.tgz#9c70bfd8169bc1dcbf48604e0f04b8b49cde9e9f\"\n- dependencies:\n- os-homedir \"^1.0.0\"\n-\nutil-deprecate@~1.0.1:\nversion \"1.0.2\"\nresolved \"https://registry.yarnpkg.com/util-deprecate/-/util-deprecate-1.0.2.tgz#450d4dc9fa70de732762fbd2d4a28981419a0ccf\"\n", "new_path": "yarn.lock", "old_path": "yarn.lock" } ]
JavaScript
MIT License
lerna/lerna
chore: upgrade eslint + eslint-config-babel
1
chore
null
807,849
10.08.2017 10:03:36
25,200
3c0b1b1068c45da7c2901f344b476dc7306afa2d
lint: remove unnecessary escape character
[ { "change_type": "MODIFY", "diff": "@@ -124,7 +124,7 @@ export default class ImportCommand extends Command {\n.replace(/^([-+]{3} [ab])/mg, replacement)\n.replace(/^(diff --git a)/mg, replacement)\n.replace(/^(diff --git \\S+ b)/mg, replacement)\n- .replace(/^(rename (from|to)) /mg, `\\$1 ${this.targetDir}/`);\n+ .replace(/^(rename (from|to)) /mg, `$1 ${this.targetDir}/`);\n// Apply the modified patch to the current lerna repository, preserving\n// original commit date, author and message.\n", "new_path": "src/commands/ImportCommand.js", "old_path": "src/commands/ImportCommand.js" } ]
JavaScript
MIT License
lerna/lerna
lint: remove unnecessary escape character
1
lint
null
448,039
14.08.2017 07:40:17
-7,200
ad6325baa00aff76d7bea0726f06cdbaf0740aa7
fix: move ng-package.schema.json to dist root directory BREAKING CHANGES: the `ng-package.schema.json` was accidentally moved to `lib` folder in a previous release. Restore it in its original location!
[ { "change_type": "MODIFY", "diff": "@@ -14,7 +14,7 @@ require('ts-node').register({\nproject: path.join(__dirname, '..', 'tsconfig.packagr.json')\n});\n-const ngPackagr = require('../lib/ng-packagr');\n+const ngPackagr = require('../src/lib/ng-packagr');\nlet promise = Promise.resolve();\nwhile (SAMPLES.length > 0) {\n", "new_path": "integration/samples.js", "old_path": "integration/samples.js" }, { "change_type": "MODIFY", "diff": "\"prebuild\": \"rimraf dist && yarn schema\",\n\"build\": \"tsc -p tsconfig.packagr.json\",\n\"postbuild\": \"node scripts/postbuild.js\",\n- \"schema\": \"json2ts --input src/lib/ng-package.schema.json --output src/lib/ng-package.schema.ts\",\n+ \"schema\": \"json2ts --input src/ng-package.schema.json --output src/ng-package.schema.ts\",\n\"prerelease\": \"yarn build\",\n\"release\": \"standard-version --message 'chore: cut release for v%s' --prerelease pre\",\n\"postrelease\": \"node scripts/prepublish.js\",\n", "new_path": "package.json", "old_path": "package.json" }, { "change_type": "MODIFY", "diff": "@@ -19,7 +19,7 @@ const copy = (paths, opts) => {\n// copyfiles 'lib/conf/**/*.json' dist\",\ncopy(['src/cli/*', 'dist'], {up: 1})\n- .then(() => copy(['src/lib/ng-package.schema.json', 'dist'], {up: 1}))\n+ .then(() => copy(['src/ng-package.schema.json', 'dist'], {up: 1}))\n.then(() => copy(['src/lib/conf/**/*.json', 'dist'], {up: 1}))\n.catch((err) => {\nconsole.error(\"Cannot copy files\", err);\n", "new_path": "scripts/postbuild.js", "old_path": "scripts/postbuild.js" }, { "change_type": "RENAME", "diff": "", "new_path": "src/.gitignore", "old_path": "src/lib/.gitignore" }, { "change_type": "MODIFY", "diff": "-import { NgPackageConfig } from '../ng-package.schema';\n+import { NgPackageConfig } from '../../ng-package.schema';\nconst path = require('path');\nconst SCOPE_PREFIX = '@';\n", "new_path": "src/lib/model/ng-package.ts", "old_path": "src/lib/model/ng-package.ts" }, { "change_type": "MODIFY", "diff": "@@ -17,7 +17,7 @@ import { error, warn, info, success, debug } from './util/log';\n// `ng-package.json` config\nimport { NgPackage } from './model/ng-package';\n-import { NgPackageConfig } from './ng-package.schema';\n+import { NgPackageConfig } from '../ng-package.schema';\n", "new_path": "src/lib/ng-packagr.ts", "old_path": "src/lib/ng-packagr.ts" }, { "change_type": "MODIFY", "diff": "import * as path from 'path';\nimport { SchemaClass, SchemaClassFactory } from '@ngtools/json-schema';\n-import { NgPackageConfig } from '../ng-package.schema';\n+import { NgPackageConfig } from '../../ng-package.schema';\nimport { NgPackage } from '../model/ng-package';\n-import { findFromDirectory } from '../util/fs';\nimport { readJson, writeJson } from '../util/json';\n+const schemaPromise = readJson(path.resolve(__dirname, '..', '..', 'ng-package.schema.json'))\n+ .then((jsonSchema: any) => SchemaClassFactory<NgPackageConfig>(jsonSchema));\n/**\n* Reads an Angular package definition file from 'ng-package.json'\n*\n- * @param file `ng-package.json` definition file\n+ * @param file path pointing to `ng-package.json` file\n*/\nexport const readPackage = (file: string): Promise<NgPackage> => {\nconst base = path.dirname(file);\n- return readJson(file)\n- .then((ngPkg: NgPackageConfig) => {\n+ // read 'ng-package.json'\n+ return readJson(file).then((ngPkg: NgPackageConfig) => {\n// resolve pathes relative to `ng-package.json` file\nconst dir = path.resolve(base, ngPkg.src || '.');\n- return readJson(`${dir}/package.json`)\n- .then((pkg: any) => {\n+ // read 'package.json'\n+ return readJson(path.resolve(dir, 'package.json')).then((pkg: any) => {\n+ // read 'ng-package.schema.json'\n+ return schemaPromise.then((SchemaClass) => {\n+ const schema = new SchemaClass(ngPkg);\n- return new Promise((resolve, reject) => {\n-\n- findFromDirectory(__dirname, 'ng-package.schema.json', (fileName: string) => {\n- resolve(fileName);\n+ return Promise.resolve(new NgPackage(pkg, ngPkg, base, schema));\n});\n- })\n- .then((schemaFileName: string) => readJson(schemaFileName))\n- .then((schemaJson: any) => {\n- const NgPackageSchema = SchemaClassFactory(schemaJson);\n- const schema: SchemaClass<NgPackageConfig> = new NgPackageSchema(ngPkg);\n-\n- return Promise.resolve(new NgPackage(base, schema.$$root(), pkg));\n- });\n-\n});\n});\n}\n@@ -51,9 +43,7 @@ export const readPackage = (file: string): Promise<NgPackage> => {\n*/\nexport const createPackage = (src: string, dest: string, additionalProperties?: {}): Promise<any> => {\n- return readJson(`${src}/package.json`)\n- .then((packageJson) => {\n-\n+ return readJson(path.resolve(src, 'package.json')).then((packageJson) => {\n// set additional properties\nif (additionalProperties) {\nObject.keys(additionalProperties).forEach((key) => {\n", "new_path": "src/lib/steps/package.ts", "old_path": "src/lib/steps/package.ts" }, { "change_type": "RENAME", "diff": "", "new_path": "src/ng-package.schema.json", "old_path": "src/lib/ng-package.schema.json" }, { "change_type": "MODIFY", "diff": "\"inlineSources\": true,\n\"declaration\": true,\n\"lib\": [\"es2015\", \"dom\"],\n- \"outDir\": \"dist/lib\",\n+ \"outDir\": \"dist\",\n\"experimentalDecorators\": true,\n\"noEmitOnError\": true,\n\"noImplicitAny\": false,\n", "new_path": "tsconfig.packagr.json", "old_path": "tsconfig.packagr.json" } ]
TypeScript
MIT License
ng-packagr/ng-packagr
fix: move ng-package.schema.json to dist root directory BREAKING CHANGES: the `ng-package.schema.json` was accidentally moved to `lib` folder in a previous release. Restore it in its original location!
1
fix
null
448,039
14.08.2017 07:59:34
-7,200
0c3130c726dfcebae1abb719b5565fdd4d1dba2a
fix: read json config values thru `schema.$$get()`
[ { "change_type": "MODIFY", "diff": "+import { SchemaClass } from '@ngtools/json-schema';\nimport { NgPackageConfig } from '../../ng-package.schema';\nconst path = require('path');\n@@ -5,35 +6,56 @@ const SCOPE_PREFIX = '@';\nconst SCOPE_NAME_SEPARATOR = '/';\n-/** POVO (plain-old value object) of the Angular package being built. */\n+/** POVO (plain-old value object :-)) of the Angular package being built. */\nexport class NgPackage {\nconstructor(\n- private basePath: string,\n- /** Contents of `ng-package.json` file. */\n+ /** Unmodified contents of the project's `package.json` file. */\n+ public packageJson: any,\n+ /** Unmodified contents of the project's `ng-package.json` file. */\npublic ngPackageJson: NgPackageConfig,\n- /** Contents of `package.json` file. */\n- public packageJson: any\n+ private basePath: string,\n+ private $schema: SchemaClass<NgPackageConfig>\n) {}\n+ /*\n+ const foo = this.$schema.$$get('lib.entryFile'); // --> \"src/public_api.ts\"\n+ const bar = this.$schema.$$get('lib'); // --> undefined\n+ console.log(foo);\n+ console.log(bar);\n+ */\n+\npublic get dest(): string {\n- return path.resolve(this.basePath, this.ngPackageJson.dest);\n+ return path.resolve(this.basePath, this.$schema.$$get('dest'));\n}\npublic get src(): string {\n- return path.resolve(this.basePath, this.ngPackageJson.src);\n+ return path.resolve(this.basePath, this.$schema.$$get('src'));\n}\npublic get workingDirectory(): string {\n- return path.resolve(this.basePath, this.ngPackageJson.workingDirectory);\n+ return path.resolve(this.basePath, this.$schema.$$get('workingDirectory'));\n}\npublic get flatModuleFileName(): string {\n- return path.basename(this.ngPackageJson.lib.flatModuleFile || this.meta.name);\n+ let name: string = this.$schema.$$get('lib.flatModuleFile');\n+ if (!name) {\n+ name = this.meta.name;\n+ }\n+\n+ return path.basename(name);\n}\npublic get libExternals(): Object {\n- return this.ngPackageJson.lib.externals || {};\n+ if (this.ngPackageJson.lib) {\n+ return this.ngPackageJson.lib.externals;\n+ } else {\n+ return {};\n+ }\n+ }\n+\n+ public get entryFile(): string {\n+ return this.$schema.$$get('lib.entryFile');\n}\n/** Package meta information */\n", "new_path": "src/lib/model/ng-package.ts", "old_path": "src/lib/model/ng-package.ts" }, { "change_type": "MODIFY", "diff": "+import * as path from 'path';\nimport { main as tsc } from '@angular/tsc-wrapped';\nimport { NgPackage } from '../model/ng-package';\nimport { readJson, writeJson } from '../util/json';\nimport { debug } from '../util/log';\n-const path = require('path');\n-\nexport const prepareTsConfig = (ngPkg: NgPackage, outFile: string): Promise<string> => {\n@@ -14,7 +13,7 @@ export const prepareTsConfig = (ngPkg: NgPackage, outFile: string): Promise<stri\ntsConfig['angularCompilerOptions']['flatModuleId'] = ngPkg.packageJson.name;\ntsConfig['angularCompilerOptions']['flatModuleOutFile'] = `${ngPkg.flatModuleFileName}.js`;\n- tsConfig['files'] = [ ngPkg.ngPackageJson.lib.entryFile ];\n+ tsConfig['files'] = [ ngPkg.entryFile ];\nreturn writeJson(tsConfig, outFile)\n.then(() => Promise.resolve(outFile));\n", "new_path": "src/lib/steps/ngc.ts", "old_path": "src/lib/steps/ngc.ts" } ]
TypeScript
MIT License
ng-packagr/ng-packagr
fix: read json config values thru `schema.$$get()`
1
fix
null
743,897
14.08.2017 21:21:16
25,200
a2c0fefc4e1fe5300309c0bb5eb0ebfc254e4982
docs: correct typos in example.md
[ { "change_type": "MODIFY", "diff": "@@ -135,7 +135,7 @@ DEBUG(\"Extra chatty mode\");\nShowing semi-important stuff too\nExtra chatty mode\n-Tell users how to use yer options and make demands.\n+Tell users how to use your options and make demands.\n-------------------------------------------------\narea.js:\n@@ -164,7 +164,7 @@ console.log(\"The area is:\", argv.w * argv.h);\nMissing required arguments: h\n-After yer demands have been met, demand more! Ask for non-hyphenated arguments!\n+After your demands have been met, demand more! Ask for non-hyphenated arguments!\n-----------------------------------------\ndemand_count.js:\n@@ -268,8 +268,8 @@ console.dir(argv._);\nYargs is here to help you...\n---------------------------\n-Ye can describe parameters fer help messages and set aliases. Yargs figures\n-out how ter format a handy help string automatically.\n+You can describe parameters for help messages and set aliases. Yargs figures\n+out how to format a handy help string automatically.\nline_count.js:\n", "new_path": "docs/examples.md", "old_path": "docs/examples.md" } ]
JavaScript
MIT License
yargs/yargs
docs: correct typos in example.md (#934)
1
docs
null
448,039
16.08.2017 13:53:37
-7,200
e22ead21d2f7c4fc9fa89ae6bad6ba1535bc2eba
chore: cut release for v1.0.0-pre.15
[ { "change_type": "MODIFY", "diff": "All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.\n+<a name=\"1.0.0-pre.15\"></a>\n+# [1.0.0-pre.15](https://github.com/dherges/ng-packagr/compare/v1.0.0-pre.14...v1.0.0-pre.15) (2017-08-16)\n+\n+\n+### Bug Fixes\n+\n+* move ng-package.schema.json to dist root directory ([ad6325b](https://github.com/dherges/ng-packagr/commit/ad6325b))\n+* read json config values thru `schema.$$get()` ([0c3130c](https://github.com/dherges/ng-packagr/commit/0c3130c))\n+\n+\n+### Features\n+\n+* update rollup to version 0.46.0 ([1f25f7a](https://github.com/dherges/ng-packagr/commit/1f25f7a))\n+* update rollup to version 0.47.0 ([29a8901](https://github.com/dherges/ng-packagr/commit/29a8901))\n+\n+\n+### BREAKING CHANGES\n+\n+* the `ng-package.schema.json` was accidentally moved to `lib` folder in a previous release. Restore it in its original location!\n+\n+\n+\n<a name=\"1.0.0-pre.14\"></a>\n# [1.0.0-pre.14](https://github.com/dherges/ng-packagr/compare/v1.0.0-pre.13...v1.0.0-pre.14) (2017-08-07)\n", "new_path": "CHANGELOG.md", "old_path": "CHANGELOG.md" }, { "change_type": "MODIFY", "diff": "{\n\"name\": \"ng-packagr\",\n- \"version\": \"1.0.0-pre.14\",\n+ \"version\": \"1.0.0-pre.15\",\n\"description\": \"Compile and package a TypeScript library to Angular Package Format\",\n\"keywords\": [\n\"angular\",\n", "new_path": "package.json", "old_path": "package.json" } ]
TypeScript
MIT License
ng-packagr/ng-packagr
chore: cut release for v1.0.0-pre.15
1
chore
null
448,039
22.08.2017 07:30:00
-7,200
2709d4a54cc7ec5531f8b9d9da0a6fde9dfe7a77
chore: cut release for v1.0.0-pre.16
[ { "change_type": "MODIFY", "diff": "All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.\n+<a name=\"1.0.0-pre.16\"></a>\n+# [1.0.0-pre.16](https://github.com/dherges/ng-packagr/compare/v1.0.0-pre.15...v1.0.0-pre.16) (2017-08-22)\n+\n+\n+### Features\n+\n+* update rollup to version ^0.48.0 ([9110899](https://github.com/dherges/ng-packagr/commit/9110899))\n+\n+\n+\n<a name=\"1.0.0-pre.15\"></a>\n# [1.0.0-pre.15](https://github.com/dherges/ng-packagr/compare/v1.0.0-pre.14...v1.0.0-pre.15) (2017-08-16)\n", "new_path": "CHANGELOG.md", "old_path": "CHANGELOG.md" }, { "change_type": "MODIFY", "diff": "{\n\"name\": \"ng-packagr\",\n- \"version\": \"1.0.0-pre.15\",\n+ \"version\": \"1.0.0-pre.16\",\n\"description\": \"Compile and package a TypeScript library to Angular Package Format\",\n\"keywords\": [\n\"angular\",\n", "new_path": "package.json", "old_path": "package.json" } ]
TypeScript
MIT License
ng-packagr/ng-packagr
chore: cut release for v1.0.0-pre.16
1
chore
null
807,849
23.08.2017 20:56:50
25,200
5421da5ae601e9f8857c7cf53f219957c4d74399
chore: write-file-atomic ^2.3.0
[ { "change_type": "MODIFY", "diff": "\"signal-exit\": \"^3.0.2\",\n\"strong-log-transformer\": \"^1.0.6\",\n\"temp-write\": \"^3.3.0\",\n- \"write-file-atomic\": \"^2.1.0\",\n+ \"write-file-atomic\": \"^2.3.0\",\n\"write-json-file\": \"^2.2.0\",\n\"write-pkg\": \"^3.1.0\",\n\"yargs\": \"^8.0.2\"\n", "new_path": "package.json", "old_path": "package.json" }, { "change_type": "MODIFY", "diff": "@@ -3453,10 +3453,6 @@ slice-ansi@0.0.4:\nversion \"0.0.4\"\nresolved \"https://registry.yarnpkg.com/slice-ansi/-/slice-ansi-0.0.4.tgz#edbf8903f66f7ce2f8eafd6ceed65e264c831b35\"\n-slide@^1.1.5:\n- version \"1.1.6\"\n- resolved \"https://registry.yarnpkg.com/slide/-/slide-1.1.6.tgz#56eb027d65b4d2dce6cb2e2d32c4d4afc9e1d707\"\n-\nsntp@1.x.x:\nversion \"1.0.9\"\nresolved \"https://registry.yarnpkg.com/sntp/-/sntp-1.0.9.tgz#6541184cc90aeea6c6e7b35e2659082443c66198\"\n@@ -3960,13 +3956,13 @@ wrappy@1:\nversion \"1.0.2\"\nresolved \"https://registry.yarnpkg.com/wrappy/-/wrappy-1.0.2.tgz#b5243d8f3ec1aa35f1364605bc0d1036e30ab69f\"\n-write-file-atomic@^2.0.0, write-file-atomic@^2.1.0:\n- version \"2.1.0\"\n- resolved \"https://registry.yarnpkg.com/write-file-atomic/-/write-file-atomic-2.1.0.tgz#1769f4b551eedce419f0505deae2e26763542d37\"\n+write-file-atomic@^2.0.0, write-file-atomic@^2.3.0:\n+ version \"2.3.0\"\n+ resolved \"https://registry.yarnpkg.com/write-file-atomic/-/write-file-atomic-2.3.0.tgz#1ff61575c2e2a4e8e510d6fa4e243cce183999ab\"\ndependencies:\ngraceful-fs \"^4.1.11\"\nimurmurhash \"^0.1.4\"\n- slide \"^1.1.5\"\n+ signal-exit \"^3.0.2\"\nwrite-json-file@^2.2.0:\nversion \"2.2.0\"\n", "new_path": "yarn.lock", "old_path": "yarn.lock" } ]
JavaScript
MIT License
lerna/lerna
chore: write-file-atomic ^2.3.0
1
chore
null
807,849
23.08.2017 21:00:27
25,200
41b1be9a6cbc919c63fd336534d9d57ef58577bf
chore: inquirer 3.2.2
[ { "change_type": "MODIFY", "diff": "\"glob\": \"^7.1.2\",\n\"globby\": \"^6.1.0\",\n\"graceful-fs\": \"^4.1.11\",\n- \"inquirer\": \"^3.2.1\",\n+ \"inquirer\": \"^3.2.2\",\n\"is-ci\": \"^1.0.10\",\n\"load-json-file\": \"^3.0.0\",\n\"lodash\": \"^4.17.4\",\n", "new_path": "package.json", "old_path": "package.json" }, { "change_type": "MODIFY", "diff": "@@ -2003,9 +2003,9 @@ ini@^1.3.2, ini@~1.3.0:\nversion \"1.3.4\"\nresolved \"https://registry.yarnpkg.com/ini/-/ini-1.3.4.tgz#0537cb79daf59b59a1a517dff706c86ec039162e\"\n-inquirer@^3.0.6, inquirer@^3.2.1:\n- version \"3.2.1\"\n- resolved \"https://registry.yarnpkg.com/inquirer/-/inquirer-3.2.1.tgz#06ceb0f540f45ca548c17d6840959878265fa175\"\n+inquirer@^3.0.6, inquirer@^3.2.2:\n+ version \"3.2.2\"\n+ resolved \"https://registry.yarnpkg.com/inquirer/-/inquirer-3.2.2.tgz#c2aaede1507cc54d826818737742d621bef2e823\"\ndependencies:\nansi-escapes \"^2.0.0\"\nchalk \"^2.0.0\"\n", "new_path": "yarn.lock", "old_path": "yarn.lock" } ]
JavaScript
MIT License
lerna/lerna
chore: inquirer 3.2.2
1
chore
null
807,849
23.08.2017 21:02:33
25,200
debaf90fb8a6c099eb8414d8ff0c68a871c34305
chore: eslint ^4.5.0
[ { "change_type": "MODIFY", "diff": "\"babel-jest\": \"^19.0.0\",\n\"babel-plugin-add-module-exports\": \"^0.2.1\",\n\"babel-preset-env\": \"^1.6.0\",\n- \"eslint\": \"^4.4.1\",\n+ \"eslint\": \"^4.5.0\",\n\"eslint-config-babel\": \"^7.0.2\",\n\"eslint-plugin-babel\": \"^4.1.2\",\n\"eslint-plugin-flowtype\": \"^2.35.0\",\n", "new_path": "package.json", "old_path": "package.json" }, { "change_type": "MODIFY", "diff": "@@ -50,8 +50,8 @@ ajv-keywords@^1.0.0:\nresolved \"https://registry.yarnpkg.com/ajv-keywords/-/ajv-keywords-1.5.1.tgz#314dd0a4b3368fad3dfcdc54ede6171b886daf3c\"\najv@^4.7.0:\n- version \"4.11.2\"\n- resolved \"https://registry.yarnpkg.com/ajv/-/ajv-4.11.2.tgz#f166c3c11cbc6cb9dcc102a5bcfe5b72c95287e6\"\n+ version \"4.11.8\"\n+ resolved \"https://registry.yarnpkg.com/ajv/-/ajv-4.11.8.tgz#82ffb02b29e662ae53bdc20af15947706739c536\"\ndependencies:\nco \"^4.6.0\"\njson-stable-stringify \"^1.0.1\"\n@@ -915,8 +915,8 @@ ci-info@^1.0.0:\nresolved \"https://registry.yarnpkg.com/ci-info/-/ci-info-1.0.0.tgz#dc5285f2b4e251821683681c381c3388f46ec534\"\ncircular-json@^0.3.1:\n- version \"0.3.1\"\n- resolved \"https://registry.yarnpkg.com/circular-json/-/circular-json-0.3.1.tgz#be8b36aefccde8b3ca7aa2d6afc07a37242c0d2d\"\n+ version \"0.3.3\"\n+ resolved \"https://registry.yarnpkg.com/circular-json/-/circular-json-0.3.3.tgz#815c99ea84f6809529d2f45791bdf82711352d66\"\ncli-cursor@^2.1.0:\nversion \"2.1.0\"\n@@ -1424,13 +1424,13 @@ eslint-scope@^3.7.1:\nesrecurse \"^4.1.0\"\nestraverse \"^4.1.1\"\n-eslint@^4.4.1:\n- version \"4.4.1\"\n- resolved \"https://registry.yarnpkg.com/eslint/-/eslint-4.4.1.tgz#99cd7eafcffca2ff99a5c8f5f2a474d6364b4bd3\"\n+eslint@^4.5.0:\n+ version \"4.5.0\"\n+ resolved \"https://registry.yarnpkg.com/eslint/-/eslint-4.5.0.tgz#bb75d3b8bde97fb5e13efcd539744677feb019c3\"\ndependencies:\najv \"^5.2.0\"\nbabel-code-frame \"^6.22.0\"\n- chalk \"^1.1.3\"\n+ chalk \"^2.1.0\"\nconcat-stream \"^1.6.0\"\ncross-spawn \"^5.1.0\"\ndebug \"^2.6.8\"\n@@ -1461,6 +1461,7 @@ eslint@^4.4.1:\nprogress \"^2.0.0\"\nrequire-uncached \"^1.0.3\"\nsemver \"^5.3.0\"\n+ strip-ansi \"^4.0.0\"\nstrip-json-comments \"~2.0.1\"\ntable \"^4.0.1\"\ntext-table \"~0.2.0\"\n@@ -1491,24 +1492,20 @@ esquery@^1.0.0:\nestraverse \"^4.0.0\"\nesrecurse@^4.1.0:\n- version \"4.1.0\"\n- resolved \"https://registry.yarnpkg.com/esrecurse/-/esrecurse-4.1.0.tgz#4713b6536adf7f2ac4f327d559e7756bff648220\"\n+ version \"4.2.0\"\n+ resolved \"https://registry.yarnpkg.com/esrecurse/-/esrecurse-4.2.0.tgz#fa9568d98d3823f9a41d91e902dcab9ea6e5b163\"\ndependencies:\n- estraverse \"~4.1.0\"\n+ estraverse \"^4.1.0\"\nobject-assign \"^4.0.1\"\nestraverse@^1.9.1:\nversion \"1.9.3\"\nresolved \"https://registry.yarnpkg.com/estraverse/-/estraverse-1.9.3.tgz#af67f2dc922582415950926091a4005d29c9bb44\"\n-estraverse@^4.0.0, estraverse@^4.1.1, estraverse@^4.2.0:\n+estraverse@^4.0.0, estraverse@^4.1.0, estraverse@^4.1.1, estraverse@^4.2.0:\nversion \"4.2.0\"\nresolved \"https://registry.yarnpkg.com/estraverse/-/estraverse-4.2.0.tgz#0dee3fed31fcd469618ce7342099fc1afa0bdb13\"\n-estraverse@~4.1.0:\n- version \"4.1.1\"\n- resolved \"https://registry.yarnpkg.com/estraverse/-/estraverse-4.1.1.tgz#f6caca728933a850ef90661d0e17982ba47111a2\"\n-\nesutils@^2.0.2:\nversion \"2.0.2\"\nresolved \"https://registry.yarnpkg.com/esutils/-/esutils-2.0.2.tgz#0abf4f1caa5bcb1f7a9d8acc6dea4faaa04bac9b\"\n", "new_path": "yarn.lock", "old_path": "yarn.lock" } ]
JavaScript
MIT License
lerna/lerna
chore: eslint ^4.5.0
1
chore
null
807,849
23.08.2017 22:07:01
25,200
eef3f405e5fe2fd5c96b9d0e80a02fab13dd2807
chore: get-port ^3.2.0, ensuring port is always bound in IPv4 range
[ { "change_type": "MODIFY", "diff": "\"execa\": \"^0.6.3\",\n\"find-up\": \"^2.1.0\",\n\"fs-extra\": \"^4.0.1\",\n- \"get-port\": \"^3.1.0\",\n+ \"get-port\": \"^3.2.0\",\n\"glob\": \"^7.1.2\",\n\"globby\": \"^6.1.0\",\n\"graceful-fs\": \"^4.1.11\",\n", "new_path": "package.json", "old_path": "package.json" }, { "change_type": "MODIFY", "diff": "@@ -65,7 +65,7 @@ export default class BootstrapCommand extends Command {\n: [this.filteredPackages];\nif (npmClient === \"yarn\" && !mutex) {\n- return getPort(42424).then((port) => {\n+ return getPort({ port: 42424, host: '0.0.0.0' }).then((port) => {\nthis.npmConfig.mutex = `network:${port}`;\ncallback(null, true);\n}).catch(callback);\n", "new_path": "src/commands/BootstrapCommand.js", "old_path": "src/commands/BootstrapCommand.js" }, { "change_type": "MODIFY", "diff": "@@ -114,7 +114,7 @@ describe(\"lerna bootstrap\", () => {\ntest.skip(\"works with yarn install\", async () => {\nconst cwd = await initFixture(\"BootstrapCommand/integration-lifecycle\");\n- const port = await getPort(42042);\n+ const port = await getPort({ port: 42042, host: '0.0.0.0' });\nconst mutex = [\"--mutex\", `network:${port}`];\n// NOTE: yarn doesn't support linking binaries from transitive dependencies,\n", "new_path": "test/integration/lerna-bootstrap.test.js", "old_path": "test/integration/lerna-bootstrap.test.js" }, { "change_type": "MODIFY", "diff": "@@ -63,7 +63,7 @@ describe(\"lerna clean\", () => {\ntest.skip(\"local yarn\", async () => {\nconst cwd = await initFixture(\"CleanCommand/integration\");\n- const port = await getPort(42042);\n+ const port = await getPort({ port: 42042, host: '0.0.0.0' });\nconst mutex = [\"--mutex\", `network:${port}`];\nawait execa(\"yarn\", [\"install\", \"--no-lockfile\", ...mutex], { cwd });\n", "new_path": "test/integration/lerna-clean.test.js", "old_path": "test/integration/lerna-clean.test.js" }, { "change_type": "MODIFY", "diff": "@@ -1757,9 +1757,9 @@ get-pkg-repo@^1.0.0:\nparse-github-repo-url \"^1.3.0\"\nthrough2 \"^2.0.0\"\n-get-port@^3.1.0:\n- version \"3.1.0\"\n- resolved \"https://registry.yarnpkg.com/get-port/-/get-port-3.1.0.tgz#ef01b18a84ca6486970ff99e54446141a73ffd3e\"\n+get-port@^3.2.0:\n+ version \"3.2.0\"\n+ resolved \"https://registry.yarnpkg.com/get-port/-/get-port-3.2.0.tgz#dd7ce7de187c06c8bf353796ac71e099f0980ebc\"\nget-stdin@^4.0.1:\nversion \"4.0.1\"\n", "new_path": "yarn.lock", "old_path": "yarn.lock" } ]
JavaScript
MIT License
lerna/lerna
chore: get-port ^3.2.0, ensuring port is always bound in IPv4 range
1
chore
null
807,849
23.08.2017 22:30:54
25,200
4d984c1401a0fd842af1424fd7e63dba04f33054
chore: execa ^0.8.0
[ { "change_type": "MODIFY", "diff": "\"conventional-changelog-cli\": \"^1.3.2\",\n\"conventional-recommended-bump\": \"^1.0.1\",\n\"dedent\": \"^0.7.0\",\n- \"execa\": \"^0.6.3\",\n+ \"execa\": \"^0.8.0\",\n\"find-up\": \"^2.1.0\",\n\"fs-extra\": \"^4.0.1\",\n\"get-port\": \"^3.2.0\",\n", "new_path": "package.json", "old_path": "package.json" }, { "change_type": "MODIFY", "diff": "@@ -1504,9 +1504,9 @@ execa@^0.5.0:\nsignal-exit \"^3.0.0\"\nstrip-eof \"^1.0.0\"\n-execa@^0.6.3:\n- version \"0.6.3\"\n- resolved \"https://registry.yarnpkg.com/execa/-/execa-0.6.3.tgz#57b69a594f081759c69e5370f0d17b9cb11658fe\"\n+execa@^0.8.0:\n+ version \"0.8.0\"\n+ resolved \"https://registry.yarnpkg.com/execa/-/execa-0.8.0.tgz#d8d76bbc1b55217ed190fd6dd49d3c774ecfc8da\"\ndependencies:\ncross-spawn \"^5.0.1\"\nget-stream \"^3.0.0\"\n", "new_path": "yarn.lock", "old_path": "yarn.lock" } ]
JavaScript
MIT License
lerna/lerna
chore: execa ^0.8.0
1
chore
null
573,190
25.08.2017 12:47:00
25,200
927b79a0c01e3edc13ba3d9766a17500aa654e3a
docs: update the website `git clone` should be recursive
[ { "change_type": "MODIFY", "diff": "@@ -23,7 +23,7 @@ The website templates are maintained at https://github.com/restify/restify.githu\nTo update the documentaiton on the website to reflect the latest version of 5.x simply:\n```\n-git clone git@github.com:restify/restify.github.io\n+git clone --recursive git@github.com:restify/restify.github.io\ncd restify.github.io\ngit submodule update --remote && git add _docs && git commit -m 'bump' && git push origin master\n```\n", "new_path": "CONTRIBUTING.md", "old_path": "CONTRIBUTING.md" } ]
JavaScript
MIT License
restify/node-restify
docs: update the website `git clone` should be recursive
1
docs
null
448,039
28.08.2017 07:49:00
-7,200
edb8ab71612fedc416921fea6d315145ec5ba30c
chore: cut release for v1.0.0-pre.17
[ { "change_type": "MODIFY", "diff": "All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.\n+<a name=\"1.0.0-pre.17\"></a>\n+# [1.0.0-pre.17](https://github.com/dherges/ng-packagr/compare/v1.0.0-pre.16...v1.0.0-pre.17) (2017-08-28)\n+\n+\n+### Bug Fixes\n+\n+* **package:** update rollup to version 0.49.0 ([b5b920c](https://github.com/dherges/ng-packagr/commit/b5b920c))\n+\n+\n+### Features\n+\n+* support external dependency '[@angular](https://github.com/angular)/common/http' by default ([df44752](https://github.com/dherges/ng-packagr/commit/df44752))\n+\n+\n+\n<a name=\"1.0.0-pre.16\"></a>\n# [1.0.0-pre.16](https://github.com/dherges/ng-packagr/compare/v1.0.0-pre.15...v1.0.0-pre.16) (2017-08-22)\n", "new_path": "CHANGELOG.md", "old_path": "CHANGELOG.md" }, { "change_type": "MODIFY", "diff": "{\n\"name\": \"ng-packagr\",\n- \"version\": \"1.0.0-pre.16\",\n+ \"version\": \"1.0.0-pre.17\",\n\"description\": \"Compile and package a TypeScript library to Angular Package Format\",\n\"keywords\": [\n\"angular\",\n", "new_path": "package.json", "old_path": "package.json" } ]
TypeScript
MIT License
ng-packagr/ng-packagr
chore: cut release for v1.0.0-pre.17
1
chore
null
573,227
28.08.2017 20:58:37
-7,200
22370420f138f38d7a4627e7ce30e25033f0624e
test(plugin): avoid using 127.0.0.2 in throttle tests
[ { "change_type": "MODIFY", "diff": "@@ -189,10 +189,17 @@ describe('throttle plugin', function () {\n});\n});\n+ describe('expose headers', function () {\n+ before(function (done) {\n+ // close global server before creating a new to avoid port conflicts\n+ CLIENT.close();\n+ SERVER.close(done);\n+ });\n+\nit('should expose headers on options set', function (done) {\n// setup a new server with headers set to true since we cant\n// change throttle options after init\n- setupClientServer('127.0.0.2', {\n+ setupClientServer('127.0.0.1', {\nburst: 17,\nrate: 0.1,\nusername: true,\n@@ -225,3 +232,4 @@ describe('throttle plugin', function () {\n});\n});\n});\n+});\n", "new_path": "test/plugins/throttle.test.js", "old_path": "test/plugins/throttle.test.js" } ]
JavaScript
MIT License
restify/node-restify
test(plugin): avoid using 127.0.0.2 in throttle tests
1
test
null
807,849
28.08.2017 22:45:48
25,200
958a2ab5b94221632cc981fc94ed5b951bc45efa
ci: synchronize upgraded npm across matrix, using 5.4.0 in node v8.x
[ { "change_type": "MODIFY", "diff": "@@ -19,6 +19,9 @@ cache:\n- node_modules\nbefore_install:\n+ - if [[ `node -v` == v4* ]]; then npm i -g npm@3; fi\n+ - if [[ `node -v` == v6* ]]; then npm i -g npm@4; fi\n+ - if [[ `node -v` == v8* ]]; then npm i -g npm@5.4.0; fi\n- curl -o- -L https://yarnpkg.com/install.sh | bash\n- export PATH=$HOME/.yarn/bin:$PATH\n", "new_path": ".travis.yml", "old_path": ".travis.yml" }, { "change_type": "MODIFY", "diff": "@@ -18,6 +18,8 @@ cache:\ninstall:\n- ps: Install-Product node $env:nodejs_version\n- IF %nodejs_version% EQU 4 npm -g install npm@3\n+ - IF %nodejs_version% EQU 6 npm -g install npm@4\n+ - IF %nodejs_version% EQU 8 npm -g install npm@5.4.0\n- yarn --frozen-lockfile\nbefore_test:\n", "new_path": "appveyor.yml", "old_path": "appveyor.yml" } ]
JavaScript
MIT License
lerna/lerna
ci: synchronize upgraded npm across matrix, using 5.4.0 in node v8.x
1
ci
null
573,227
30.08.2017 23:58:10
-7,200
63066954b8945b63fe91d252b7d35e1df70d35e1
docs(plugins): Document undocumented parser options
[ { "change_type": "MODIFY", "diff": "@@ -258,7 +258,10 @@ server.use(restify.plugins.bodyParser({\nuploadDir: os.tmpdir(),\nmultiples: true,\nhash: 'sha1',\n- rejectUnknown: true\n+ rejectUnknown: true,\n+ requestBodyOnGet: false,\n+ reviver: undefined,\n+ maxFieldsSize: 2 * 1024 * 1024\n}));\n```\n@@ -275,6 +278,9 @@ Options:\n* `multiples` - if you want to support html5 multiple attribute in upload fields.\n* `hash` - If you want checksums calculated for incoming files, set this to either `sha1` or `md5`.\n* `rejectUnknown` - Set to `true` if you want to end the request with a `UnsupportedMediaTypeError` when none of the supported content types was given.\n+* `requestBodyOnGet` - Parse body of a GET request. The default is `false`.\n+* `reviver` - `jsonParser` only. If a function, this prescribes how the value originally produced by parsing is transformed, before being returned. For more information check out [JSON.parse(text[, reviver])](https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/JSON/parse). Optional.\n+* `maxFieldsSize` - `multipartParser` only. Limits the amount of memory all fields together (except files) can allocate in bytes. The default size is `2 * 1024 * 1024` bytes *(2MB)*.\n## RequestLogger\n", "new_path": "docs/api/plugins.md", "old_path": "docs/api/plugins.md" } ]
JavaScript
MIT License
restify/node-restify
docs(plugins): Document undocumented parser options (#1469)
1
docs
null
448,039
31.08.2017 10:01:15
-7,200
665a24981af6edf308b48dad2814cfdf2cbee831
feat: ng-packagr is released 1.0.0 final
[ { "change_type": "MODIFY", "diff": "\"postbuild\": \"node scripts/postbuild.js\",\n\"schema\": \"json2ts --input src/ng-package.schema.json --output src/ng-package.schema.ts\",\n\"prerelease\": \"yarn build\",\n- \"release\": \"standard-version --message 'chore: cut release for v%s' --prerelease pre\",\n+ \"release\": \"standard-version --message 'chore: cut release for v%s'\",\n\"postrelease\": \"node scripts/prepublish.js\",\n\"publish:ci\": \"yarn prerelease && yarn postrelease\",\n\"samples\": \"integration/samples.sh\",\n", "new_path": "package.json", "old_path": "package.json" } ]
TypeScript
MIT License
ng-packagr/ng-packagr
feat: ng-packagr is released 1.0.0 final
1
feat
null
448,039
31.08.2017 10:08:10
-7,200
8f6f3f2897d361da4d6244f36b3e8875ff0abb8f
chore: cut release for v1.0.0
[ { "change_type": "MODIFY", "diff": "All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.\n+<a name=\"1.0.0\"></a>\n+# [1.0.0](https://github.com/dherges/ng-packagr/compare/v1.0.0-pre.17...v1.0.0) (2017-08-31)\n+\n+\n+### Features\n+\n+* ng-packagr is released 1.0.0 final ([665a249](https://github.com/dherges/ng-packagr/commit/665a249))\n+\n+\n+\n<a name=\"1.0.0-pre.17\"></a>\n# [1.0.0-pre.17](https://github.com/dherges/ng-packagr/compare/v1.0.0-pre.16...v1.0.0-pre.17) (2017-08-28)\n", "new_path": "CHANGELOG.md", "old_path": "CHANGELOG.md" }, { "change_type": "MODIFY", "diff": "{\n\"name\": \"ng-packagr\",\n- \"version\": \"1.0.0-pre.17\",\n+ \"version\": \"1.0.0\",\n\"description\": \"Compile and package a TypeScript library to Angular Package Format\",\n\"keywords\": [\n\"angular\",\n", "new_path": "package.json", "old_path": "package.json" } ]
TypeScript
MIT License
ng-packagr/ng-packagr
chore: cut release for v1.0.0
1
chore
null
448,039
31.08.2017 11:02:51
-7,200
a74c69811f64c3272f8e0263abfe6a2c571948d7
chore: cut release for v1.0.1
[ { "change_type": "MODIFY", "diff": "All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.\n+<a name=\"1.0.1\"></a>\n+## [1.0.1](https://github.com/dherges/ng-packagr/compare/v1.0.0...v1.0.1) (2017-08-31)\n+\n+\n+### Bug Fixes\n+\n+* make a dummy release for 1.0.1 ([a6d6893](https://github.com/dherges/ng-packagr/commit/a6d6893))\n+\n+\n+\n<a name=\"1.0.0\"></a>\n# [1.0.0](https://github.com/dherges/ng-packagr/compare/v1.0.0-pre.17...v1.0.0) (2017-08-31)\n", "new_path": "CHANGELOG.md", "old_path": "CHANGELOG.md" }, { "change_type": "MODIFY", "diff": "{\n\"name\": \"ng-packagr\",\n- \"version\": \"1.0.0\",\n+ \"version\": \"1.0.1\",\n\"description\": \"Compile and package a TypeScript library to Angular Package Format\",\n\"keywords\": [\n\"angular\",\n", "new_path": "package.json", "old_path": "package.json" } ]
TypeScript
MIT License
ng-packagr/ng-packagr
chore: cut release for v1.0.1
1
chore
null
743,863
03.09.2017 12:50:47
25,200
c240661c27a69fdd2bae401919a9ad31ccd1be01
fix: address bug with handling of arrays of implications
[ { "change_type": "MODIFY", "diff": "@@ -255,10 +255,10 @@ module.exports = function validation (yargs, usage, y18n) {\nconst implyFail = []\nObject.keys(implied).forEach((key) => {\n- if (implied[key]) {\n- implied[key].forEach((value) => {\n- let num\nconst origKey = key\n+ ;(implied[key] || []).forEach((value) => {\n+ let num\n+ let key = origKey\n// convert string '1' to number 1\nnum = Number(key)\n@@ -287,12 +287,10 @@ module.exports = function validation (yargs, usage, y18n) {\n} else {\nvalue = argv[value]\n}\n-\nif (key && !value) {\nimplyFail.push(origKey)\n}\n})\n- }\n})\nif (implyFail.length) {\n", "new_path": "lib/validation.js", "old_path": "lib/validation.js" }, { "change_type": "MODIFY", "diff": "@@ -39,32 +39,19 @@ describe('validation tests', () => {\n})\nit('fails if either implied argument is not set', (done) => {\n- let fail1 = false\n- let fail2 = false\n- yargs(['--foo', '-a'])\n- .boolean('foo')\n- .implies({\n- 'foo': ['a', 'b']\n- })\n+ yargs(['-f', '-b'])\n+ .implies('f', ['b', 'c'])\n.fail((msg1) => {\n- fail1 = true\n- yargs(['--foo', '-b'])\n- .boolean('foo')\n- .implies({\n- 'foo': ['a', 'b']\n- })\n+ yargs(['-f', '-c'])\n+ .implies('f', ['b', 'c'])\n.fail((msg2) => {\n- fail2 = true\n- msg1.should.match(/Implications failed/)\n- msg2.should.match(/Implications failed/)\n+ msg1.should.match(/f -> b f -> c/)\n+ msg2.should.match(/f -> b f -> c/)\nreturn done()\n})\n.argv\n})\n.argv\n- // Prevent timeouts\n- fail1.should.be.true\n- fail2.should.be.true\n})\nit(\"fails if --no-foo's implied argument is not set\", (done) => {\n", "new_path": "test/validation.js", "old_path": "test/validation.js" } ]
JavaScript
MIT License
yargs/yargs
fix: address bug with handling of arrays of implications
1
fix
null
743,927
03.09.2017 20:10:28
-3,600
792564d954d5143b2b57b05aaca4007780f5b728
feat: to allow both undefined and nulls, for benefit of TypeScript
[ { "change_type": "MODIFY", "diff": "@@ -384,7 +384,7 @@ function Yargs (processArgs, cwd, parentRequire) {\n}\nself.demandCommand = function demandCommand (min, max, minMsg, maxMsg) {\n- argsert('[number] [number|string] [string|null] [string|null]', [min, max, minMsg, maxMsg], arguments.length)\n+ argsert('[number] [number|string] [string|null|undefined] [string|null|undefined]', [min, max, minMsg, maxMsg], arguments.length)\nif (typeof min === 'undefined') min = 1\n@@ -428,7 +428,7 @@ function Yargs (processArgs, cwd, parentRequire) {\n}\nself.usage = function (msg, opts) {\n- argsert('<string|null|object> [object]', [msg, opts], arguments.length)\n+ argsert('<string|null|undefined|object> [object]', [msg, opts], arguments.length)\nif (!opts && typeof msg === 'object') {\nopts = msg\n@@ -685,7 +685,7 @@ function Yargs (processArgs, cwd, parentRequire) {\n}\nself.wrap = function (cols) {\n- argsert('<number|null>', [cols], arguments.length)\n+ argsert('<number|null|undefined>', [cols], arguments.length)\nusage.wrap(cols)\nreturn self\n}\n", "new_path": "yargs.js", "old_path": "yargs.js" } ]
JavaScript
MIT License
yargs/yargs
feat: to allow both undefined and nulls, for benefit of TypeScript (#945)
1
feat
null
573,195
06.09.2017 12:10:06
25,200
9373cb5e9bb4b9986b98bf0196b9deb00b791f50
New: server `strictNext` option throws when calling next more than once
[ { "change_type": "MODIFY", "diff": "@@ -253,8 +253,9 @@ function Server(options) {\nthis.router = options.router;\nthis.routes = {};\nthis.secure = false;\n- this.versions = options.versions || options.version || [];\nthis.socketio = options.socketio || false;\n+ this._once = (options.strictNext === false) ? once : once.strict;\n+ this.versions = options.versions || options.version || [];\nthis._inflightRequests = 0;\nvar fmt = mergeFormatters(options.formatters);\n@@ -851,9 +852,9 @@ Server.prototype._route = function _route(req, res, name, cb) {\n* for case #3, emitted error events are async and serial. this means the\n* automatic invocation of cb() cannot occur:\n*\n- * 1) `emittedError` - this boolean is set to true when next is called with an\n- * error. this var is used to avoid automatic invocation of cb(), which is\n- * delayed until all async error events are fired.\n+ * 1) `emittingErrors` - this boolean is set to true when the server is still\n+ * emitting error events. this var is used to avoid automatic invocation of\n+ * cb(), which is delayed until all async error events are fired.\n* 2) `done` - when next is invoked with a value of `false`, or handler if\n*\n* @private\n@@ -881,11 +882,8 @@ Server.prototype._run = function _run(req, res, route, chain, cb) {\nvar log = this.log;\nvar self = this;\nvar handlerName = null;\n- var emittedError = false;\n-\n- if (cb) {\n- cb = once(cb);\n- }\n+ var emittingErrors = false;\n+ cb = self._once(cb);\n// attach a listener for 'close' and 'aborted' events, this will let us set\n// a flag so that we can stop processing the request if the client closes\n@@ -914,19 +912,19 @@ Server.prototype._run = function _run(req, res, route, chain, cb) {\nif (typeof arg !== 'undefined') {\nif (arg instanceof Error) {\n// the emitting of the error events are async, so we can not\n- // complete this invocation of run() until it returns. calling\n- // _emitErrorEvents is async, but returns a sync flag. when this\n- // flag is true, we will avoid automatically calling cb at the\n- // end of this function, which causes server to move on to the\n- // next handler in the chain.\n- emittedError = self._emitErrorEvents(req, res, route, arg,\n- function emitErrorsDone() {\n- res.send(arg);\n- return (cb ? cb(arg) : true);\n- });\n+ // complete this invocation of run() until it returns. set a\n+ // flag so that the automatic invocation of cb() at the end of\n+ // this function is bypassed.\n+ emittingErrors = true;\n// set the done flag - allows us to stop execution of handler\n// chain now that an error has occurred.\ndone = true;\n+ // now emit error events in serial and async\n+ self._emitErrorEvents(req, res, route, arg,\n+ function emitErrorsDone() {\n+ res.send(arg);\n+ return cb(arg);\n+ });\n} else if (typeof (arg) === 'string') { // GH-193, allow redirect\nif (req._rstfy_chained_route) {\nvar _e = new errors.InternalError();\n@@ -988,7 +986,7 @@ Server.prototype._run = function _run(req, res, route, chain, cb) {\nreq._currentHandler = handlerName;\nreq.startHandlerTimer(handlerName);\n- var n = once(next);\n+ var n = self._once(next);\n// support ifError only if domains are on\nif (self.handleUncaughtExceptions === true) {\n@@ -1019,17 +1017,20 @@ Server.prototype._run = function _run(req, res, route, chain, cb) {\nself.emit('done', req, res, route);\n}\n- // Don't return cb here if errors are currently being emitted. they are\n- // async, so we cannot fire cb until all error events are done\n- // emitting.\n- if (!emittedError) {\n- return (cb ? cb(arg) : true);\n- } else {\n- return (true);\n+ // if we have reached here, there are no more handlers in the chain, or\n+ // we next(err), and we are done with the request. if errors are still\n+ // being emitted (due to being async), skip calling cb now, that will\n+ // happen after all error events are done being emitted.\n+ if (emittingErrors === false) {\n+ return cb(arg);\n}\n+\n+ // don't really need to return anything, returning null to placate\n+ // eslint.\n+ return null;\n}\n- var n1 = once(next);\n+ var n1 = self._once(next);\ndtrace._rstfy_probes['route-start'].fire(function () {\nreturn ([\n@@ -1104,8 +1105,7 @@ Server.prototype._setupRequest = function _setupRequest(req, res) {\n* @param {Object} route the current route, if applicable\n* @param {Object} err an error object\n* @param {Object} cb callback function\n- * @returns {Boolean} if error events are firing, which is async, return\n- * true. else return false.\n+ * @returns {undefined}\n*/\nServer.prototype._emitErrorEvents =\nfunction _emitErrorEvents(req, res, route, err, cb) {\n@@ -1132,7 +1132,7 @@ function _emitErrorEvents(req, res, route, err, cb) {\n}\n// kick off the async listeners\n- vasync.forEachPipeline({\n+ return vasync.forEachPipeline({\ninputs: errEvtNames,\nfunc: function emitError(errEvtName, vasyncCb) {\nself.emit(errEvtName, req, res, err, function emitErrDone() {\n@@ -1147,10 +1147,6 @@ function _emitErrorEvents(req, res, route, err, cb) {\n// error to pass it on.\nreturn cb(err);\n});\n-\n- // while async listeners are firing, return a boolean indicating whether or\n- // not we had any listeners to fire.\n- return (errEvtNames.length > 0) ? true : false;\n};\n", "new_path": "lib/server.js", "old_path": "lib/server.js" }, { "change_type": "MODIFY", "diff": "@@ -2897,3 +2897,22 @@ test('should emit restifyError even for router errors', function (t) {\nt.done();\n});\n});\n+\n+\n+test('calling next twice should throw', function (t) {\n+ SERVER.get('/', function (req, res, next) {\n+ res.send(200);\n+ next();\n+ next();\n+ });\n+\n+ SERVER.on('uncaughtException', function (req, res, route, err) {\n+ t.ok(err);\n+ t.equal(err.message, 'next shouldn\\'t be called more than once');\n+ t.end();\n+ });\n+\n+ CLIENT.get('/', function (err, req, res, data) {\n+ t.ifError(err);\n+ });\n+});\n", "new_path": "test/server.test.js", "old_path": "test/server.test.js" } ]
JavaScript
MIT License
restify/node-restify
New: server `strictNext` option throws when calling next more than once (#1454)
1
new
null
573,195
08.09.2017 10:59:52
25,200
33dc141eb8d67e414456b3059f51e537e06ccf49
docs: more detailed plugin docs
[ { "change_type": "MODIFY", "diff": "@@ -32,21 +32,141 @@ server.use(restify.plugins.throttle({\nserver.use(restify.plugins.conditionalRequest());\n```\n-## Available Plugins\n+## `server.pre()` plugins\n+\n+This module includes various pre plugins, which are intended to be used prior\n+to routing of the URL. To use a plugin before routing, use the `server.pre()`\n+method.\n+\n+### `restify.plugins.pre.context()`\n+\n+This plugin creates `req.set(key, val)` and `req.get(key)` methods for setting\n+and retrieving request specific data.\n+\n+Example:\n+\n+```js\n+server.pre(restify.plugins.pre.context());\n+server.get('/', [\n+ function(req, res, next) {\n+ req.set(myMessage, 'hello world');\n+ return next();\n+ },\n+ function two(req, res, next) {\n+ res.send(req.get(myMessage)); // => sends 'hello world'\n+ return next();\n+ }\n+]);\n+```\n+\n+### `restify.plugins.pre.dedupeSlashes()`\n+\n+This plugin deduplicates extra slashes found in the URL. This can help with\n+malformed URLs that might otherwise get misrouted.\n+\n+Exmaple:\n+\n+```js\n+server.pre(restify.plugins.pre.dedupeSlashes());\n+server.get('/hello/:one', function(req, res, next) {\n+ res.send(200);\n+ return next();\n+});\n+\n+// the server will now convert requests to /hello//jake => /hello/jake\n+```\n+\n+### `restify.plugins.pre.reqIdHeaders(opts)`\n+\n+This plugin pulls the value from an incoming request header and uses it as the\n+value of the request id. Subsequent calls to `req.id()` will return the header\n+values.\n+\n+* `opts` {Object} an options object\n+* `options.headers` {Array} an array of header names to use. lookup precedence\n+ is left to right (lowest index first)\n+\n+### `restify.plugins.pre.strictQueryParams(opts)`\n+\n+This plugins disallows sloppy query params. `?key=value&value2` would\n+normally result in a value of `{ key: value, value2: '' }`, but with this plugin\n+enabled the request is rejected with a `BadRequestError` (400).\n+\n+* `opts` {Object} an options object\n+* `opts.message` {String} a custom error message\n+\n+### `restify.plugins.pre.userAgentConnection(opts)`\n+\n+For curl user-agents, this plugin sets a `connection: close` header, and\n+removes the content-length header for HEAD requests. A custom regexp can be\n+crafted to target other user-agents. Note that passing in `userAgentRegExp`\n+overriddes the default regexp matching curl agents.\n+\n+* `opts` {Object} an options object\n+* `opts.userAgentRegExp` {RegExp} regexp matching any user-agents applicable\n-* `sanitizePath()` - cleans up duplicate or trailing / on the URL\n-* `context()` - Provide req.set(key, val) and req.get(key) methods for setting and retrieving context to a specific request.\n-* `userAgent(options)` - used to support edge cases for HEAD requests when using curl\n- * `options.userAgentRegExp` {RegExp} regexp to capture curl user-agents\n-* `strictQueryParams()` - checks req.urls query params with strict key/val format and rejects non-strict requests with status code 400.\n- * `options.message` {String} response body message string\n-This module includes the following header parser plugins:\n-* `acceptParser(accepts)` - Accept header\n+## `server.use()` plugins\n+\n+### `restify.plugins.acceptParser(accepts)`\n+\n+Parses the `Accept` header, and ensures that the server can respond to what\n+the client asked for. In almost all cases passing in `server.acceptable` is\n+all that's required, as that's an array of content types the server knows\n+how to respond to (with the formatters you've registered). If the request is\n+for a non-handled type, this plugin will return a `NotAcceptableError` (406).\n+\n* `accepts` {Array} an array of acceptable types\n-* `authorizationParser(options)` - Authorization header\n- * `options` {Object} options object passed to http-signature module\n+\n+Example:\n+\n+```js\n+server.use(restify.plugins.acceptParser(server.acceptable));\n+```\n+\n+### `restify.plugins.authorizationParser(opts)`\n+Parses out the `Authorization` header as best restify can. Currently only HTTP\n+Basic Auth and [HTTP Signature](https://github.com/joyent/node-http-signature)\n+schemes are supported.\n+\n+* `opts` {Object} an optional options object that is passed to http-signature\n+\n+If successfully parsed, `req.authorization` will be set:\n+\n+```js\n+{\n+ scheme: <Basic|Signature|...>,\n+ credentials: <Undecoded value of header>,\n+ basic: {\n+ username: $user\n+ password: $password\n+ }\n+}\n+```\n+\n+`req.username` will also be set, and defaults to 'anonymous'. If the scheme\n+is unrecognized, the only thing available in `req.authorization` will be\n+`scheme` and `credentials` - it will be up to you to parse out the rest.\n+\n+\n+### `restify.plugins.dateParser(sec)`\n+\n+Parses out the HTTP Date header (if present) and checks for clock skew. If the\n+header is invalid, a `InvalidHeaderError` (400) is returned. If the clock skew\n+exceeds the specified value, a `RequestExpiredError` (400) is returned.\n+\n+* `sec` {Number} allowed clock skew in seconds. defaults to 300s, like Kerberos\n+\n+```js\n+// Allows clock skew of 1m\n+server.use(restify.plugins.dateParser(60));\n+```\n+\n+## TBD to be organized\n+\n+This module includes the following header parser plugins:\n+\n* `conditionalRequest()` - Conditional headers (If-\\*)\n* `fullResponse()` - handles disappeared CORS headers\n@@ -86,17 +206,8 @@ This module includes the following data parsing plugins:\n* `requestLogger(options)` - adds timers for each handler in your request chain\n* `options.properties` {Object} properties to pass to bunyan's `log.child()` method\n-The module includes the following request plugins:\n-\n-* `reqIdHeaders(options)` - a plugin that lets you use incoming request header\n- values to set the request id (5.x compatible only)\n- * `options.headers` {Array} an array of header names to use. lookup\n- precedence is left to right (lowest index first)\n-\nThe module includes the following response plugins:\n-* `dateParser(delta)` - expires requests based on current time + delta\n- * `delta` {Number} age in seconds\n* `gzip(options)` - gzips the response if client accepts it\n* `options` {Object} options to pass to zlib\n* `serveStatic()` - used to serve static files\n@@ -152,60 +263,6 @@ The module includes the following plugins to be used with restify's `pre` event:\n* `options.err` {Error} opts.err A restify error used as a response when the inflight request limit is exceeded\n* `options.server` {Object} The restify server that this module will throttle\n-## Accept Parser\n-\n-Parses out the `Accept` header, and ensures that the server can respond to what\n-the client asked for. You almost always want to just pass in\n-`server.acceptable` here, as that's an array of content types the server knows\n-how to respond to (with the formatters you've registered). If the request is\n-for a non-handled type, this plugin will return an error of `406`.\n-\n-```js\n-server.use(restify.plugins.acceptParser(server.acceptable));\n-```\n-\n-## Authorization Parser\n-\n-```js\n-server.use(restify.authorizationParser());\n-```\n-\n-Parses out the `Authorization` header as best restify can. Currently only\n-HTTP Basic Auth and\n-[HTTP Signature](https://github.com/joyent/node-http-signature)\n-schemes are supported. When this is used, `req.authorization` will be set\n-to something like:\n-\n-```js\n-{\n- scheme: <Basic|Signature|...>,\n- credentials: <Undecoded value of header>,\n- basic: {\n- username: $user\n- password: $password\n- }\n-}\n-```\n-\n-`req.username` will also be set, and defaults to 'anonymous'. If the scheme\n-is unrecognized, the only thing available in `req.authorization` will be\n-`scheme` and `credentials` - it will be up to you to parse out the rest.\n-\n-\n-## Date Parser\n-\n-```js\n-server.use(restify.plugins.dateParser());\n-```\n-\n-Parses out the HTTP Date header (if present) and checks for clock skew (default\n-allowed clock skew is 300s, like Kerberos). You can pass in a number, which is\n-interpreted in seconds, to allow for clock skew.\n-\n-```js\n-// Allows clock skew of 1m\n-server.use(restify.plugins.dateParser(60));\n-```\n## QueryParser\n", "new_path": "docs/api/plugins.md", "old_path": "docs/api/plugins.md" } ]
JavaScript
MIT License
restify/node-restify
docs: more detailed plugin docs (#1474)
1
docs
null
573,190
08.09.2017 15:04:47
25,200
84be6799c4a80ae67f3aa03165c8031a55bddc97
feat: cpuUsageThrottle
[ { "change_type": "MODIFY", "diff": "@@ -260,8 +260,14 @@ event, e.g., `server.on('after', plugins.metrics());`:\nThe module includes the following plugins to be used with restify's `pre` event:\n* `inflightRequestThrottle(options)` - limits the max number of inflight requests\n* `options.limit` {Number} the maximum number of inflight requests the server will handle before returning an error\n- * `options.err` {Error} opts.err A restify error used as a response when the inflight request limit is exceeded\n+ * `options.err` {Error} A restify error used as a response when the inflight request limit is exceeded\n* `options.server` {Object} The restify server that this module will throttle\n+* `cpuUsageThrottle(options)`- Reject requests based on the server's current CPU usage\n+ * `options.limit` - {Number} The point at which restify will begin rejecting a % of all requests at the front door.\n+ * `options.max` - {Number} The point at which restify will reject 100% of all requests at the front door.\n+ * `options.interval` - {Number} How frequently to recalculate the % of traffic to be rejecting.\n+ * `options.halfLife` - {Number} How responsive your application will be to spikes in CPU usage, for more details read the cpuUsageThrottle section below.\n+ * `options.err` - {Error} A restify error used as a response when the cpu usage limit is exceeded\n## QueryParser\n@@ -525,6 +531,44 @@ requests. It defaults to `503 ServiceUnavailableError`.\nThis plugin should be registered as early as possibly in the middleware stack\nusing `pre` to avoid performing unnecessary work.\n+## CPU Usage Throttling\n+\n+```js\n+var restify = require('restify');\n+\n+var server = restify.createServer();\n+const options = {\n+ limit: .75,\n+ max: 1,\n+ interval: 250,\n+ halfLife: 500,\n+}\n+\n+server.pre(restify.plugins.cpuUsageThrottle(options));\n+```\n+\n+cpuUsageThrottle is a middleware that rejects a variable number of requests (between 0% and 100%) based on a historical view of CPU utilization of a Node.js process. Essentially, this plugin allows you to define what constitutes a saturated Node.js process via CPU utilization and it will handle dropping a % of requests based on that definiton. This is useful when you would like to keep CPU bound tasks from piling up causing an increased per-request latency.\n+\n+The algorithm asks you for a maximum CPU utilization rate, which it uses to determine at what point it should be rejecting 100% of traffic. For a normal Node.js service, this is 1 since Node is single threaded. It uses this, paired with a limit that you provide to determine the total % of traffic it should be rejecting. For example, if you specify a limit of .5 and a max of 1, and the current EWMA (next paragraph) value reads .75, this plugin will reject approximately 50% of all requests.\n+\n+When looking at the process' CPU usage, this algorithm will take a load average over a user specified interval. For example, if given an interval of 250ms, this plugin will attempt to record the average CPU utilization over 250ms intervals. Due to contention for resources, the duration of each average may be wider or narrower than 250ms. To compensate for this, we use an exponentially weighted moving average. The EWMA algorithm is provided by the ewma module. The parameter for configuring the EWMA is halfLife. This value controls how quickly each load average measurment decays to half it's value when being represented in the current average. For example, if you have an interval of 250, and a halfLife of 250, you will take the previous ewma value multiplied by .5 and add it to the new CPU utilization average measurement multiplied by .5. The previous value and the new measurement would each represent 50% of the new value. A good way of thinking about the halfLife is in terms of how responsive this plugin will be to spikes in CPU utilization. The higher the halfLife, the longer CPU utilization will have to remain above your defined limit before this plugin begins rejecting requests and, converserly, the longer it will have to drop below your limit before the plugin begins accepting requests again. This is a knob you will want to with play when trying to determine the ideal value for your use case.\n+\n+For a better understanding of the EWMA algorithn, refer to the documentation for the ewma module.\n+\n+Params:\n+ * `limit` - The point at which restify will begin rejecting a % of all requests at the front door. This value is a percentage. For example `0.8` === 80% average CPU utilization. Defaults to `0.75`.\n+ * `max` - The point at which restify will reject 100% of all requests at the front door. This is used in conjunction with limit to determine what % of traffic restify needs to reject when attempting to bring the average load back within tolerable thresholds. Since Node.js is single threaded, the default for this is `1`. In some rare cases, a Node.js process can exceed 100% CPU usage and you will want to update this value.\n+ * `interval` - How frequently we calculate the average CPU utilization. When we calculate an average CPU utilization, we calculate it over this interval, and this drives whether or not we should be shedding load. This can be thought of as a \"resolution\" where the lower this value, the higher the resolution our load average will be and the more frequently we will recalculate the % of traffic we should be shedding. This check is rather lightweight, while the default is 250ms, you should be able to decrease this value without seeing a significant impact to performance.\n+ * `halfLife` - When we sample the CPU usage on an interval, we create a series of data points. We take these points and calculate a moving average. The halfLife indicates how quickly a point \"decays\" to half it's value in the moving average. The lower the halfLife, the more impact newer data points have on the average. If you want to be extremely responsive to spikes in CPU usage, set this to a lower value. If you want your process to put more emphasis on recent historical CPU usage when determininng whether it should shed load, set this to a higher value. The unit is in ms. Defaults to `250`.\n+\n+You can also update the plugin during runtime using the `.update()` function. This function accepts the same `opts` object as a constructor.\n+\n+```js\n+var plugin = restify.plugins.cpuUsageThrottle(options);\n+server.pre(plugin);\n+\n+plugin.update({ limit: .4, halfLife: 5000 });\n+```\n## Conditional Request Handler\n", "new_path": "docs/api/plugins.md", "old_path": "docs/api/plugins.md" }, { "change_type": "ADD", "diff": "+'use strict';\n+\n+var assert = require('assert-plus');\n+var pidusage = require('pidusage');\n+var errors = require('restify-errors');\n+var EWMA = require('ewma');\n+\n+/**\n+ * cpuUsageThrottle\n+ *\n+ * cpuUsageThrottle is a middleware that rejects a variable number of requests\n+ * (between 0% and 100%) based on a historical view of CPU utilization of a\n+ * Node.js process. Essentially, this plugin allows you to define what\n+ * constitutes a saturated Node.js process via CPU utilization and it will\n+ * handle dropping a % of requests based on that definiton. This is useful when\n+ * you would like to keep CPU bound tasks from piling up causing an increased\n+ * per-request latency.\n+ *\n+ * The algorithm asks you for a maximum CPU utilization rate, which it uses to\n+ * determine at what point it should be rejecting 100% of traffic. For a normal\n+ * Node.js service, this is 1 since Node is single threaded. It uses this,\n+ * paired with a limit that you provide to determine the total % of traffic it\n+ * should be rejecting. For example, if you specify a limit of .5 and a max of\n+ * 1, and the current EWMA (next paragraph) value reads .75, this plugin will\n+ * reject approximately 50% of all requests.\n+ *\n+ * When looking at the process' CPU usage, this algorithm will take a load\n+ * average over a user specified interval. example, if given an interval of\n+ * 250ms, this plugin will attempt to record the average CPU utilization over\n+ * 250ms intervals. Due to contention for resources, the duration of each\n+ * average may be wider or narrower than 250ms. To compensate for this, we use\n+ * an exponentially weighted moving average. The EWMA algorithm is provided by\n+ * the ewma module. The parameter for configuring the EWMA is halfLife. This\n+ * value controls how quickly each load average measurment decays to half it's\n+ * value when being represented in the current average. For example, if you\n+ * have an interval of 250, and a halfLife of 250, you will take the previous\n+ * ewma value multiplied by 0.5 and add it to the new CPU utilization average\n+ * measurement multiplied by 0.5. The previous value and the new measurement\n+ * would each represent 50% of the new value. A good way of thinking about the\n+ * halfLife is in terms of how responsive this plugin will be to spikes in CPU\n+ * utilization. The higher the halfLife, the longer CPU utilization will have\n+ * to remain above your defined limit before this plugin begins rejecting\n+ * requests and, converserly, the longer it will have to drop below your limit\n+ * before the plugin begins accepting requests again. This is a knob you will\n+ * want to with play when trying to determine the ideal value for your use\n+ * case.\n+ *\n+ * For a better understanding of the EWMA algorithn, refer to the documentation\n+ * for the ewma module.\n+ *\n+ * @param {Object} opts Configure this plugin.\n+ * @param {Number} [opts.limit] The point at which restify will begin rejecting\n+ * a % of all requests at the front door. This value is a percentage.\n+ * For example 0.8 === 80% average CPU utilization. Defaults to 0.75.\n+ * @param {Number} [opts.max] The point at which restify will reject 100% of all\n+ * requests at the front door. This is used in conjunction with limit to\n+ * determine what % of traffic restify needs to reject when attempting to\n+ * bring the average load back to the user requested values. Since Node.js is\n+ * single threaded, the default for this is 1. In some rare cases, a Node.js\n+ * process can exceed 100% CPU usage and you will want to update this value.\n+ * @param {Number} [opts.interval] How frequently we calculate the average CPU\n+ * utilization. When we calculate an average CPU utilization, we calculate it\n+ * over this interval, and this drives whether or not we should be shedding\n+ * load. This can be thought of as a \"resolution\" where the lower this value,\n+ * the higher the resolution our load average will be and the more frequently\n+ * we will recalculate the % of traffic we should be shedding. This check\n+ * is rather lightweight, while the default is 250ms, you should be able to\n+ * decrease this value without seeing a significant impact to performance.\n+ * @param {Number} [opts.halfLife] When we sample the CPU usage on an interval,\n+ * we create a series of data points. We take these points and calculate a\n+ * moving average. The halfLife indicates how quickly a point \"decays\" to\n+ * half it's value in the moving average. The lower the halfLife, the more\n+ * impact newer data points have on the average. If you want to be extremely\n+ * responsive to spikes in CPU usage, set this to a lower value. If you want\n+ * your process to put more emphasis on recent historical CPU usage when\n+ * determininng whether it should shed load, set this to a higher value. The\n+ * unit is in ms. Defaults to 250.\n+ * @returns {Function} middleware to be registered on server.pre\n+ */\n+function cpuUsageThrottle (opts) {\n+\n+ // Scrub input and populate our configuration\n+ assert.object(opts, 'opts');\n+ assert.optionalNumber(opts.limit, 'opts.limit');\n+ assert.optionalNumber(opts.max, 'opts.max');\n+ assert.optionalNumber(opts.interval, 'opts.interval');\n+ assert.optionalNumber(opts.halfLife, 'opts.halfLife');\n+\n+ var self = {};\n+ self._limit = (typeof opts.limit === 'number') ?\n+ opts.limit : 0.75;\n+ self._max = opts.max || 1;\n+ self._interval = opts.interval || 250;\n+ self._halfLife = (typeof opts.halfLife === 'number') ? opts.halfLife : 250;\n+ assert.ok(self._max > self._limit, 'limit must be less than max');\n+\n+ self._ewma = new EWMA(self._halfLife);\n+\n+ // self._reject represents the % of traffic that we should reject at the\n+ // current point in time based on how much over our limit we are. This is\n+ // updated on an interval by updateReject().\n+ self._reject = 0;\n+\n+ // self._timeout keeps track of the current handle for the setTimeout we\n+ // use to gather CPU load averages, this allows us to cancel the timeout\n+ // when shutting down restify.\n+ self._timeout = null;\n+ // self._timeoutDelta represents the amount of time between when we _should_\n+ // have run updateReject and the actual time it was invoked. This allows\n+ // us to monitor lag caused by both the event loop and pidusage.stat\n+ self._timeoutDelta = 0;\n+ self._timeoutStart = Date.now();\n+\n+ // updateReject should be called on an interval, it checks the average CPU\n+ // usage between two invocations of updateReject.\n+ function updateReject() {\n+ pidusage.stat(process.pid, function (e, stat) {\n+ // If we were unable to get cpu usage, don't make any new decisions.\n+ if (!stat ||\n+ typeof stat.cpu !== 'number' ||\n+ Number.isNaN(stat.cpu)) {\n+ return;\n+ }\n+\n+ // Divide by 100 to match Linux's `top` format\n+ self._ewma.insert(stat.cpu / 100);\n+ self._cpu = self._ewma.value();\n+\n+ // Update reject with the % of traffic we should be rejecting. This\n+ // is safe since max > limit so the denominator can never be 0. If\n+ // the current cpu usage is less that the limit, _reject will be\n+ // negative and we will never shed load\n+ self._reject =\n+ (self._cpu - self._limit) / (self._max - self._limit);\n+ self._timeout = setTimeout(updateReject, self._interval);\n+ var now = Date.now();\n+ self._timeoutDelta = now - self._timeoutStart;\n+ self._timeoutStart = now;\n+ });\n+ }\n+\n+ // Kick off updating our _reject value\n+ updateReject();\n+\n+ function onRequest (req, res, next) {\n+ // Check to see if this request gets rejected. Since, in updateReject,\n+ // we calculate a percentage of traffic we are planning to reject, we\n+ // can use Math.random() (which picks from a uniform distribution in\n+ // [0,1)) to give us a `self._reject`% chance of dropping any given\n+ // request. This is a stateless was to drop approximatly `self._reject`%\n+ // of traffic.\n+ var probabilityDraw = Math.random();\n+\n+ if (probabilityDraw >= self._reject) {\n+ return next(); // Don't reject this request\n+ }\n+\n+ var err = new errors.ServiceUnavailableError({\n+ context: {\n+ plugin: 'cpuUsageThrottle',\n+ cpuUsage: self._cpu,\n+ limit: self._limit,\n+ max: self._max,\n+ reject: self._reject,\n+ halfLife: self._halfLife,\n+ interval: self._interval,\n+ probabilityDraw: probabilityDraw,\n+ lag: self._timeoutDelta\n+ }\n+ });\n+\n+ return next(err);\n+ }\n+\n+ // Allow the app to clear the timeout for this plugin if necessary, without\n+ // this we would never be able to clear the event loop when letting Node\n+ // shut down gracefully\n+ function close () {\n+ clearTimeout(self._timeout);\n+ }\n+ onRequest.close = close;\n+\n+ // Expose internal plugin state for introspection\n+ Object.defineProperty(onRequest, 'state', {\n+ get: function () {\n+ // We intentionally do not expose ewma since we don't want the user\n+ // to be able to update it's configuration, the current state of\n+ // ewma is represented in self._cpu\n+ return {\n+ limit: self._limit,\n+ max: self._max,\n+ interval: self._interval,\n+ halfLife: self._halfLife,\n+ cpuUsage: self._cpu,\n+ reject: self._reject,\n+ lag: self._timeoutDelta\n+ };\n+ }\n+ });\n+\n+ /**\n+ * cpuUsageThrottle.update\n+ *\n+ * Allow the plugin's configuration to be updated during runtime.\n+ *\n+ * @param {Object} newOpts The opts object for reconfiguring this plugin,\n+ * it follows the same format as the constructor for this plugin.\n+ * @returns {undefined}\n+ */\n+ onRequest.update = function update(newOpts) {\n+ assert.object(newOpts, 'newOpts');\n+ assert.optionalNumber(newOpts.limit, 'newOpts.limit');\n+ assert.optionalNumber(newOpts.max, 'newOpts.max');\n+ assert.optionalNumber(newOpts.interval, 'newOpts.interval');\n+ assert.optionalNumber(newOpts.halfLife, 'newOpts.halfLife');\n+\n+ if (newOpts.limit !== undefined) {\n+ self._limit = newOpts.limit;\n+ }\n+\n+ if (newOpts.max !== undefined) {\n+ self._max = newOpts.max;\n+ }\n+\n+ if (newOpts.interval !== undefined) {\n+ self._interval = newOpts.interval;\n+ }\n+\n+ if (newOpts.halfLife !== undefined) {\n+ self._halfLife = newOpts.halfLife;\n+ // update our ewma with the new halfLife, we use the previous known\n+ // state as the initial state for our new halfLife in lieu of\n+ // having access to true historical data.\n+ self._ewma = new EWMA(self._halfLife, self._cpu);\n+ }\n+\n+ // Ensure new values are still valid\n+ assert.ok(self._max > self._limit, 'limit must be less than max');\n+\n+ // Update _reject with the new settings\n+ self._reject =\n+ (self._cpu - self._limit) / (self._max - self._limit);\n+ };\n+\n+ return onRequest;\n+}\n+\n+module.exports = cpuUsageThrottle;\n", "new_path": "lib/plugins/cpuUsageThrottle.js", "old_path": null }, { "change_type": "MODIFY", "diff": "@@ -11,6 +11,7 @@ module.exports = {\nbodyParser: require('./bodyParser'),\nbodyReader: require('./bodyReader'),\nconditionalRequest: require('./conditionalRequest'),\n+ cpuUsageThrottle: require('./cpuUsageThrottle.js'),\ndateParser: require('./date'),\nfullResponse: require('./fullResponse'),\ngzipResponse: require('./gzip'),\n", "new_path": "lib/plugins/index.js", "old_path": "lib/plugins/index.js" }, { "change_type": "MODIFY", "diff": "\"clone-regexp\": \"^1.0.0\",\n\"csv\": \"^1.1.0\",\n\"escape-regexp-component\": \"^1.0.2\",\n+ \"ewma\": \"^2.0.1\",\n\"formidable\": \"^1.0.17\",\n\"http-signature\": \"^1.0.0\",\n\"lodash\": \"^4.17.4\",\n\"mime\": \"^1.4.0\",\n\"negotiator\": \"^0.6.1\",\n\"once\": \"^1.3.0\",\n+ \"pidusage\": \"^1.1.6\",\n\"qs\": \"^6.2.1\",\n\"restify-errors\": \"^5.0.0\",\n\"semver\": \"^5.0.1\",\n\"mocha\": \"^3.2.0\",\n\"nodeunit\": \"^0.11.0\",\n\"nsp\": \"^2.2.0\",\n+ \"proxyquire\": \"^1.8.0\",\n\"restify-clients\": \"^1.2.1\",\n\"rimraf\": \"^2.4.3\",\n\"validator\": \"^7.0.0\",\n", "new_path": "package.json", "old_path": "package.json" }, { "change_type": "ADD", "diff": "+'use strict';\n+\n+var assert = require('chai').assert;\n+var proxyquire = require('proxyquire');\n+var restify = require('../../lib/index.js');\n+var restifyClients = require('restify-clients');\n+\n+// Allow tests to set the CPU usage returned by pidUsage\n+var CPU = 50;\n+\n+var cpuUsageThrottle = proxyquire('../../lib/plugins/cpuUsageThrottle.js', {\n+ pidusage: {\n+ stat: function (pid, cb) {\n+ return cb(null, { cpu: CPU });\n+ }\n+ }\n+});\n+\n+var MR = Math.random;\n+describe('cpuUsageThrottle', function () {\n+\n+ before('Setup: stub math.random', function (done) {\n+ Math.random = function () {\n+ return 0;\n+ };\n+ done();\n+ });\n+\n+ it('Unit: Should shed load', function (done) {\n+ var opts = { limit: 0, interval: 500 };\n+ var plugin = cpuUsageThrottle(opts);\n+ function next (cont) {\n+ clearTimeout(plugin._timeout);\n+ assert(cont instanceof Error, 'Should call next with error');\n+ assert.equal(cont.statusCode, 503, 'Defaults to 503 status');\n+ done();\n+ }\n+ plugin({}, {}, next);\n+ });\n+\n+ it('Unit: Should let request through when not under load', function (done) {\n+ var opts = { interval: 500, limit: 0.9 };\n+ var plugin = cpuUsageThrottle(opts);\n+ function next (cont) {\n+ assert.isUndefined(cont, 'Should call next');\n+ clearTimeout(plugin._timeout);\n+ done();\n+ }\n+ plugin({}, {}, next);\n+ });\n+\n+ it('Unit: Update should update state', function (done) {\n+ var opts = {\n+ max: 1,\n+ limit: 0.9,\n+ halfLife: 50,\n+ interval: 50\n+ };\n+ var plugin = cpuUsageThrottle(opts);\n+ opts = {\n+ max: 0.5,\n+ limit: 0.1,\n+ halfLife: 1000,\n+ interval: 1000\n+ };\n+ plugin.update(opts);\n+ assert.equal(plugin.state.limit, opts.limit, 'opts.limit');\n+ assert.equal(plugin.state.max, opts.max, 'opts.max');\n+ assert.equal(plugin.state.halfLife, opts.halfLife, 'opts.halfLife');\n+ assert.equal(plugin.state.interval, opts.interval, 'opts.interval');\n+ plugin.close();\n+ done();\n+ });\n+\n+\n+ it('Integration: Should shed load', function (done) {\n+ var server = restify.createServer();\n+ var client = {\n+ close: function () {}\n+ };\n+ var opts = { interval: 500, limit: 0 };\n+ var plugin = cpuUsageThrottle(opts);\n+ server.pre(plugin);\n+ server.get('/foo', function (req, res, next) {\n+ res.send(200);\n+ next();\n+ });\n+ server.listen(0, '127.0.0.1', function () {\n+ client = restifyClients.createJsonClient({\n+ url: 'http://127.0.0.1:' + server.address().port,\n+ retry: false\n+ });\n+ client.get({ path: '/foo' }, function (e, _, res) {\n+ assert(e, 'Second request is shed');\n+ assert.equal(res.statusCode, 503,\n+ 'Default shed status code returned');\n+ clearTimeout(plugin._timeout);\n+ done();\n+ });\n+ });\n+ });\n+\n+ after('Teardown: Reset Math.random', function (done) {\n+ Math.random = MR;\n+ done();\n+ });\n+});\n", "new_path": "test/plugins/cpuUsageThrottle.test.js", "old_path": null } ]
JavaScript
MIT License
restify/node-restify
feat: cpuUsageThrottle (#1460)
1
feat
null
573,227
10.09.2017 08:38:23
-7,200
33b0e901557f8f4796e0eb33e13042e6a40f28b9
chore(makefile): do not use shrinkwrap file to run nap check
[ { "change_type": "MODIFY", "diff": "@@ -31,9 +31,8 @@ NPM := npm\n#\nDOC_FILES = index.restdown\nJS_FILES = '.'\n-SHRINKWRAP = npm-shrinkwrap.json\n-CLEAN_FILES += node_modules $(SHRINKWRAP) cscope.files\n+CLEAN_FILES += node_modules cscope.files\ninclude ./tools/mk/Makefile.defs\n@@ -65,9 +64,7 @@ test: $(NODEUNIT)\n.PHONY: nsp\nnsp: node_modules $(NSP)\n- @$(NPM) shrinkwrap --dev\n@($(NSP) check) | $(NSP_BADGE)\n- @rm $(SHRINKWRAP)\ninclude ./tools/mk/Makefile.deps\ninclude ./tools/mk/Makefile.targ\n", "new_path": "Makefile", "old_path": "Makefile" } ]
JavaScript
MIT License
restify/node-restify
chore(makefile): do not use shrinkwrap file to run nap check (#1482)
1
chore
null
573,190
11.09.2017 09:52:18
25,200
e4ffe430b47a2b51fe5fbef00dfa8bd3a1fb66c1
fix(cpuUsageThrottle): Always queue a new timeout
[ { "change_type": "MODIFY", "diff": "@@ -105,6 +105,7 @@ function cpuUsageThrottle (opts) {\n// use to gather CPU load averages, this allows us to cancel the timeout\n// when shutting down restify.\nself._timeout = null;\n+\n// self._timeoutDelta represents the amount of time between when we _should_\n// have run updateReject and the actual time it was invoked. This allows\n// us to monitor lag caused by both the event loop and pidusage.stat\n@@ -115,6 +116,10 @@ function cpuUsageThrottle (opts) {\n// usage between two invocations of updateReject.\nfunction updateReject() {\npidusage.stat(process.pid, function (e, stat) {\n+ // Requeue an updateReject irrespective of whether or not pidusage\n+ // encountered an error\n+ self._timeout = setTimeout(updateReject, self._interval);\n+\n// If we were unable to get cpu usage, don't make any new decisions.\nif (!stat ||\ntypeof stat.cpu !== 'number' ||\n@@ -132,7 +137,10 @@ function cpuUsageThrottle (opts) {\n// negative and we will never shed load\nself._reject =\n(self._cpu - self._limit) / (self._max - self._limit);\n- self._timeout = setTimeout(updateReject, self._interval);\n+\n+ // Calculate how long it took between when our interval should have\n+ // updated the _reject value and how long it actually took. This\n+ // metric accounts for the misbehaviour of pidusage.stat\nvar now = Date.now();\nself._timeoutDelta = now - self._timeoutStart;\nself._timeoutStart = now;\n", "new_path": "lib/plugins/cpuUsageThrottle.js", "old_path": "lib/plugins/cpuUsageThrottle.js" } ]
JavaScript
MIT License
restify/node-restify
fix(cpuUsageThrottle): Always queue a new timeout (#1484)
1
fix
null
448,039
12.09.2017 13:55:19
-7,200
40312fea2c74097441fcb2e800a9351cdb9715f7
chore: cut release for v1.1.0
[ { "change_type": "MODIFY", "diff": "All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.\n+<a name=\"1.1.0\"></a>\n+# [1.1.0](https://github.com/dherges/ng-packagr/compare/v1.0.1...v1.1.0) (2017-09-12)\n+\n+\n+### Features\n+\n+* add stylus preprocessor support ([#120](https://github.com/dherges/ng-packagr/issues/120)) ([19933cd](https://github.com/dherges/ng-packagr/commit/19933cd))\n+\n+\n+\n<a name=\"1.0.1\"></a>\n## [1.0.1](https://github.com/dherges/ng-packagr/compare/v1.0.0...v1.0.1) (2017-08-31)\n", "new_path": "CHANGELOG.md", "old_path": "CHANGELOG.md" }, { "change_type": "MODIFY", "diff": "{\n\"name\": \"ng-packagr\",\n- \"version\": \"1.0.1\",\n+ \"version\": \"1.1.0\",\n\"description\": \"Compile and package a TypeScript library to Angular Package Format\",\n\"keywords\": [\n\"angular\",\n", "new_path": "package.json", "old_path": "package.json" } ]
TypeScript
MIT License
ng-packagr/ng-packagr
chore: cut release for v1.1.0
1
chore
null
573,227
12.09.2017 17:49:08
-7,200
866d516159df2c8aaa063e688e6787ad84cba851
chore(examples): remove deprecated CORS
[ { "change_type": "DELETE", "diff": "-var restify = require('./lib');\n-\n-var srv = restify.createServer();\n-srv.use(restify.CORS());\n-\n-function foo(req, res, next) {\n- res.send(204);\n- next();\n-}\n-\n-srv.put('/foo', foo);\n-srv.get('/foo', foo);\n-srv.del('/foo', foo);\n-srv.post('/foo', foo);\n-\n-srv.listen(8080);\n", "new_path": null, "old_path": "examples/CORS/cors.js" } ]
JavaScript
MIT License
restify/node-restify
chore(examples): remove deprecated CORS (#1485)
1
chore
null
573,227
12.09.2017 17:59:24
-7,200
9a1040aa5166232dd3a5c5acd46e6f7fe11ab0f0
chore(examples): fix sockio example
[ { "change_type": "ADD", "diff": "+{\n+ \"name\": \"restify-example\",\n+ \"version\": \"0.0.0\",\n+ \"description\": \"Socket.io example\",\n+ \"main\": \"sockio.js\",\n+ \"dependencies\": {\n+ \"socket.io\": \"2.0.3\"\n+ },\n+ \"scripts\": {\n+ \"start\": \"node sockio.js\"\n+ }\n+}\n", "new_path": "examples/sockio/package.json", "old_path": null }, { "change_type": "MODIFY", "diff": "// Copyright 2012 Mark Cavage, Inc. All rights reserved.\n-var os = require('os');\nvar socketio = require('socket.io');\n-var restify = require('../lib');\n+var restify = require('../../lib');\n///--- Globals\n-var IP = (function () {\n- var nics = os.networkInterfaces();\n- var keys = Object.keys(nics).filter(function (k) {\n- return (nics[k].some(function (n) {\n- return (!n.internal);\n- }));\n- });\n- return (nics[keys.pop()].pop().address);\n-})();\n-\nvar HTML = '<script src=\"/socket.io/socket.io.js\"></script>\\n' +\n'<script>\\n' +\n- 'var socket = io.connect(\"http://' + IP + ':8080\");\\n' +\n+ 'var socket = io(\"http://localhost:8080\");\\n' +\n'socket.on(\"news\", function (data) {\\n' +\n'console.log(data);\\n' +\n'socket.emit(\"my other event\", { my: \"data\" });\\n' +\n@@ -31,7 +20,7 @@ var HTML = '<script src=\"/socket.io/socket.io.js\"></script>\\n' +\n///--- Mainline\nvar server = restify.createServer();\n-var io = socketio.listen(server);\n+var io = socketio(server.server);\nserver.get('/', function indexHTML(req, res, next) {\nres.setHeader('Content-Type', 'text/html');\n@@ -43,13 +32,13 @@ server.get('/', function indexHTML(req, res, next) {\n});\n-io.sockets.on('connection', function (socket) {\n+io.on('connection', function (socket) {\nsocket.emit('news', { hello: 'world' });\nsocket.on('my other event', function (data) {\nconsole.log(data);\n});\n});\n-server.listen(8080, IP, function () {\n+server.listen(8080, function () {\nconsole.log('socket.io server listening at %s', server.url);\n});\n", "new_path": "examples/sockio/sockio.js", "old_path": "examples/sockio/sockio.js" } ]
JavaScript
MIT License
restify/node-restify
chore(examples): fix sockio example (#1487)
1
chore
null
573,227
12.09.2017 18:06:59
-7,200
925b2cf86facb2d4d93648eb5c6f3ae741d8df26
chore(examples): migrate spdy, dtrace and jsonp examples to the latest restify
[ { "change_type": "MODIFY", "diff": "-var restify = require('../lib');\n+var restify = require('../../lib');\nvar server = restify.createServer({\nname: 'helloworld'\n});\n-server.use(restify.acceptParser(server.acceptable));\n-server.use(restify.authorizationParser());\n-server.use(restify.dateParser());\n-server.use(restify.queryParser());\n-server.use(restify.urlEncodedBodyParser());\n+server.use(restify.plugins.acceptParser(server.acceptable));\n+server.use(restify.plugins.authorizationParser());\n+server.use(restify.plugins.dateParser());\n+server.use(restify.plugins.queryParser());\n+server.use(restify.plugins.urlEncodedBodyParser());\nserver.use(function slowHandler(req, res, next) {\nsetTimeout(function () {\n@@ -29,4 +29,3 @@ server.get({\nserver.listen(8080, function () {\nconsole.log('listening: %s', server.url);\n});\n-\n", "new_path": "examples/dtrace/hello.js", "old_path": "examples/dtrace/hello.js" }, { "change_type": "MODIFY", "diff": "var restify = require('../../lib');\nvar srv = restify.createServer();\n-srv.use(restify.queryParser());\n-srv.use(restify.jsonp());\n+srv.use(restify.plugins.queryParser());\n+srv.use(restify.plugins.jsonp());\nsrv.get('/', function (req, res, next) {\nres.send({hello: 'world'});\nnext();\n", "new_path": "examples/jsonp/jsonp.js", "old_path": "examples/jsonp/jsonp.js" }, { "change_type": "MODIFY", "diff": "+var path = require('path');\nvar fs = require('fs');\nvar bunyan = require('bunyan');\nvar restify = require('../../lib');\nvar srv = restify.createServer({\nspdy: {\n- cert: fs.readFileSync('./keys/spdy-cert.pem'),\n- key: fs.readFileSync('./keys/spdy-key.pem'),\n- ca: fs.readFileSync('keys/spdy-csr.pem')\n+ cert: fs.readFileSync(path.join(__dirname, './keys/spdy-cert.pem')),\n+ key: fs.readFileSync(path.join(__dirname, './keys/spdy-key.pem')),\n+ ca: fs.readFileSync(path.join(__dirname, 'keys/spdy-csr.pem'))\n}\n});\n@@ -16,6 +17,7 @@ srv.get('/', function (req, res, next) {\n});\nsrv.on('after', restify.plugins.auditLogger({\n+ event: 'after',\nbody: true,\nlog: bunyan.createLogger({\nname: 'audit',\n", "new_path": "examples/spdy/spdy.js", "old_path": "examples/spdy/spdy.js" } ]
JavaScript
MIT License
restify/node-restify
chore(examples): migrate spdy, dtrace and jsonp examples to the latest restify (#1488)
1
chore
null
573,223
13.09.2017 10:32:22
-19,080
ee154908d3ec4fd4a4108019140820c172df66b5
Fix: 652 - Incorrect error on route with no versions
[ { "change_type": "MODIFY", "diff": "@@ -468,10 +468,17 @@ Router.prototype.find = function find(req, res, callback) {\n// not the first one. However, if neither the client nor\n// server specified any version, we're done, because neither\n// cared\n- if (routes[i].versions.length === 0 && req.version() === '*') {\n+ if (routes[i].versions.length === 0) {\n+ if (req.version() === '*') {\nr = routes[i];\nbreak;\n}\n+ callback(new InvalidVersionError('%s is not supported by %s %s',\n+ req.version() || '?',\n+ req.method,\n+ req.path()));\n+ return;\n+ }\nif (routes[i].versions.length > 0) {\ncandidates.push({\n", "new_path": "lib/router.js", "old_path": "lib/router.js" }, { "change_type": "MODIFY", "diff": "@@ -1204,6 +1204,47 @@ test('versioned route matching should not throw TypeError' , function (t) {\n});\n+test('GH-652 throw InvalidVersion on version mismatch', function (t) {\n+ function response (req, res, next) {\n+ return res.send(req.route.version);\n+ }\n+ SERVER.get({ path: '/ping', version: '1.0.1' }, response);\n+ SERVER.listen(0, '127.0.0.1', function () {\n+ var opts = {\n+ path: '/ping',\n+ headers: {\n+ 'accept-version': '1.0.2'\n+ }\n+ };\n+ CLIENT.get(opts, function (err, req, res, data) {\n+ t.equal(res.statusCode, 400);\n+ t.equal(data.code, 'InvalidVersion');\n+ t.done();\n+ });\n+ });\n+});\n+\n+test('GH-652 throw InvalidVersion on non-versioned route', function (t) {\n+ function response (req, res, next) {\n+ return res.send(req.route.version);\n+ }\n+ SERVER.get({ path: '/ping' }, response);\n+ SERVER.listen(0, '127.0.0.1', function () {\n+ var opts = {\n+ path: '/ping',\n+ headers: {\n+ 'accept-version': '1.0.1'\n+ }\n+ };\n+ CLIENT.get(opts, function (err, req, res, data) {\n+ t.equal(res.statusCode, 400);\n+ t.equal(data.code, 'InvalidVersion');\n+ t.done();\n+ });\n+ });\n+});\n+\n+\ntest('GH-959 matchedVersion() should return on cached routes', function (t) {\nSERVER.get({\n", "new_path": "test/server.test.js", "old_path": "test/server.test.js" } ]
JavaScript
MIT License
restify/node-restify
Fix: 652 - Incorrect error on route with no versions (#1465)
1
fix
null
573,195
14.09.2017 14:06:11
25,200
dc9d4eb490fe926d71af17f84e9ad6e1e598b735
Docs: clarity on error handling
[ { "change_type": "MODIFY", "diff": "@@ -491,6 +491,15 @@ restify.createServer({\n});\n```\n+Restify ships with the following default formatters, which can be overridden\n+when passing a formatters options to `createServer()`:\n+\n+* application/javascript\n+* application/json\n+* text/plain\n+* application/octet-stream\n+\n+\nThe restify response object retains has all the \"raw\" methods of a node\n[ServerResponse](http://nodejs.org/docs/latest/api/http.html#http.ServerResponse)\non it as well.\n", "new_path": "docs/guides/server.md", "old_path": "docs/guides/server.md" }, { "change_type": "MODIFY", "diff": "@@ -525,14 +525,9 @@ statement. This gives you a way to handle all errors of the same class\nidentically across the server. You can also use a generic `restifyError` event\nwhich will catch errors of all types.\n+An example of sending a 404:\n```js\n-server.get('/hello/:name', function(req, res, next) {\n- // some internal unrecoverable error\n- var err = new restify.errors.InternalServerError('oh noes!');\n- return next(err);\n-});\n-\nserver.get('/hello/:foo', function(req, res, next) {\n// resource not found error\nvar err = new restify.errors.NotFoundError('oh noes!');\n@@ -543,15 +538,41 @@ server.on('NotFound', function (req, res, err, cb) {\n// do not call res.send! you are now in an error context and are outside\n// of the normal next chain. you can log or do metrics here, and invoke\n// the callback when you're done. restify will automtically render the\n- // NotFoundError as a JSON response.\n+ // NotFoundError depending on the content-type header you have set in your\n+ // response.\nreturn cb();\n});\n+```\n+\n+For customizing the error being sent back to the client:\n+\n+```js\n+server.get('/hello/:name', function(req, res, next) {\n+ // some internal unrecoverable error\n+ var err = new restify.errors.InternalServerError('oh noes!');\n+ return next(err);\n+});\nserver.on('InternalServer', function (req, res, err, cb) {\n- // if you don't want restify to automatically render the Error object\n- // as a JSON response, you can customize the response by setting the\n- // `body` property of the error\n- err.body = '<html><body>some custom error content!</body></html>';\n+ // by default, restify will usually render the Error object as plaintext or\n+ // JSON depending on content negotiation. the default text formatter and JSON\n+ // formatter are pretty simple, they just call toString() and toJSON() on the\n+ // object being passed to res.send, which in this case, is the error object.\n+ // so to customize what it sent back to the client when this error occurs,\n+ // you would implement as follows:\n+\n+ // for any response that is text/plain\n+ err.toString = function toString() {\n+ return 'an internal server error occurred!';\n+ };\n+ // for any response that is application/json\n+ err.toJSON = function toJSON() {\n+ return {\n+ message: 'an internal server error occurred!',\n+ code: 'boom!'\n+ }\n+ };\n+\nreturn cb();\n});\n@@ -563,6 +584,29 @@ server.on('restifyError', function (req, res, err, cb) {\n});\n```\n+Here is another example of `InternalServerError`, but this time with a custom\n+formatter:\n+\n+```js\n+const errs = require('restify-errors');\n+\n+const server = restify.createServer({\n+ formatters: {\n+ 'text/html': function(req, res, body) {\n+ if (body instanceof Error) {\n+ // body here is an instance of InternalServerError\n+ return '<html><body>' + body.message + '</body></html>';\n+ }\n+ }\n+ }\n+});\n+\n+server.get('/', function(req, res, next) {\n+ res.header('content-type', 'text/html');\n+ return next(new errs.InternalServerError('oh noes!'));\n+});\n+```\n+\n### restify-errors\n", "new_path": "docs/index.md", "old_path": "docs/index.md" } ]
JavaScript
MIT License
restify/node-restify
Docs: clarity on error handling (#1491)
1
docs
null
744,030
18.09.2017 01:48:02
-7,200
ac8088bf70bd27aa10268afb0d63bcf3a4a8016f
fix: implications fails only displayed once
[ { "change_type": "MODIFY", "diff": "@@ -249,6 +249,7 @@ module.exports = function validation (yargs, usage, y18n) {\n;(implied[key] || []).forEach((value) => {\nlet num\nlet key = origKey\n+ const origValue = value\n// convert string '1' to number 1\nnum = Number(key)\n@@ -278,7 +279,7 @@ module.exports = function validation (yargs, usage, y18n) {\nvalue = argv[value]\n}\nif (key && !value) {\n- implyFail.push(origKey)\n+ implyFail.push(` ${origKey} -> ${origValue}`)\n}\n})\n})\n@@ -286,12 +287,8 @@ module.exports = function validation (yargs, usage, y18n) {\nif (implyFail.length) {\nlet msg = `${__('Implications failed:')}\\n`\n- implyFail.forEach((key) => {\n- if (implied[key]) {\n- implied[key].forEach((value) => {\n- msg += (` ${key} -> ${value}`)\n- })\n- }\n+ implyFail.forEach((value) => {\n+ msg += (value)\n})\nusage.fail(msg)\n", "new_path": "lib/validation.js", "old_path": "lib/validation.js" }, { "change_type": "MODIFY", "diff": "@@ -38,15 +38,17 @@ describe('validation tests', () => {\n.argv\n})\n- it('fails if either implied argument is not set', (done) => {\n+ it('fails if either implied argument is not set and displays only failed', (done) => {\nyargs(['-f', '-b'])\n.implies('f', ['b', 'c'])\n.fail((msg1) => {\nyargs(['-f', '-c'])\n.implies('f', ['b', 'c'])\n.fail((msg2) => {\n- msg1.should.match(/f -> b f -> c/)\n- msg2.should.match(/f -> b f -> c/)\n+ msg1.should.match(/f -> c/)\n+ msg1.should.not.match(/f -> b/)\n+ msg2.should.match(/f -> b/)\n+ msg2.should.not.match(/f -> c/)\nreturn done()\n})\n.argv\n", "new_path": "test/validation.js", "old_path": "test/validation.js" } ]
JavaScript
MIT License
yargs/yargs
fix: implications fails only displayed once (#954)
1
fix
null
573,190
19.09.2017 09:34:55
25,200
78b0900b0ffcefa86e541c850d27779c5f656f00
fix(cpuUsageThrottle): Correctly named handler for debugInfo
[ { "change_type": "MODIFY", "diff": "@@ -77,7 +77,7 @@ var EWMA = require('ewma');\n* unit is in ms. Defaults to 250.\n* @returns {Function} middleware to be registered on server.pre\n*/\n-function cpuUsageThrottle (opts) {\n+function cpuUsageThrottlePlugin (opts) {\n// Scrub input and populate our configuration\nassert.object(opts, 'opts');\n@@ -150,7 +150,7 @@ function cpuUsageThrottle (opts) {\n// Kick off updating our _reject value\nupdateReject();\n- function onRequest (req, res, next) {\n+ function cpuUsageThrottle (req, res, next) {\n// Check to see if this request gets rejected. Since, in updateReject,\n// we calculate a percentage of traffic we are planning to reject, we\n// can use Math.random() (which picks from a uniform distribution in\n@@ -186,10 +186,10 @@ function cpuUsageThrottle (opts) {\nfunction close () {\nclearTimeout(self._timeout);\n}\n- onRequest.close = close;\n+ cpuUsageThrottle.close = close;\n// Expose internal plugin state for introspection\n- Object.defineProperty(onRequest, 'state', {\n+ Object.defineProperty(cpuUsageThrottle, 'state', {\nget: function () {\n// We intentionally do not expose ewma since we don't want the user\n// to be able to update it's configuration, the current state of\n@@ -215,7 +215,7 @@ function cpuUsageThrottle (opts) {\n* it follows the same format as the constructor for this plugin.\n* @returns {undefined}\n*/\n- onRequest.update = function update(newOpts) {\n+ cpuUsageThrottle.update = function update(newOpts) {\nassert.object(newOpts, 'newOpts');\nassert.optionalNumber(newOpts.limit, 'newOpts.limit');\nassert.optionalNumber(newOpts.max, 'newOpts.max');\n@@ -250,7 +250,7 @@ function cpuUsageThrottle (opts) {\n(self._cpu - self._limit) / (self._max - self._limit);\n};\n- return onRequest;\n+ return cpuUsageThrottle;\n}\n-module.exports = cpuUsageThrottle;\n+module.exports = cpuUsageThrottlePlugin;\n", "new_path": "lib/plugins/cpuUsageThrottle.js", "old_path": "lib/plugins/cpuUsageThrottle.js" }, { "change_type": "MODIFY", "diff": "@@ -72,6 +72,18 @@ describe('cpuUsageThrottle', function () {\ndone();\n});\n+ it('Unit: Should have proper name', function (done) {\n+ var opts = {\n+ max: 1,\n+ limit: 0.9,\n+ halfLife: 50,\n+ interval: 50\n+ };\n+ var plugin = cpuUsageThrottle(opts);\n+ assert.equal(plugin.name, 'cpuUsageThrottle');\n+ done();\n+ });\n+\nit('Integration: Should shed load', function (done) {\nvar server = restify.createServer();\n", "new_path": "test/plugins/cpuUsageThrottle.test.js", "old_path": "test/plugins/cpuUsageThrottle.test.js" } ]
JavaScript
MIT License
restify/node-restify
fix(cpuUsageThrottle): Correctly named handler for debugInfo (#1499)
1
fix
null
573,190
19.09.2017 09:58:41
25,200
c2e6deae5dab78187a8b09ce5256fb09db390bc9
fix(server): error in pre handler triggers after event
[ { "change_type": "MODIFY", "diff": "@@ -753,17 +753,14 @@ Server.prototype._handle = function _handle(req, res) {\n// run pre() handlers first before routing and running\nif (self.before.length > 0) {\nself._run(req, res, null, self.before, function (err) {\n- // check for return false here - like with the regular handlers,\n- // if false is returned we already sent a response and should stop\n- // processing.\n- if (err === false) {\n- self._finishReqResCycle(req, res);\n+ // Like with regular handlers, if we are provided an error, we\n+ // should abort the middleware chain and fire after events.\n+ if (err === false || err instanceof Error) {\n+ self._finishReqResCycle(req, res, null, err);\nreturn;\n}\n- if (!err) {\nrouteAndRun();\n- }\n});\n} else {\nrouteAndRun();\n", "new_path": "lib/server.js", "old_path": "lib/server.js" }, { "change_type": "MODIFY", "diff": "@@ -630,7 +630,6 @@ test('GH-64 prerouting chain with error', function (t) {\n});\n});\n-\ntest('GH-67 extend access-control headers', function (t) {\nSERVER.get('/hello/:name', function tester(req, res, next) {\nres.header('Access-Control-Allow-Headers',\n@@ -2337,6 +2336,24 @@ test('calling next(false) should early exit from pre handlers', function (t) {\n});\n+test('calling next(err) from pre should still emit after event', function (t) {\n+ setTimeout(function () {\n+ t.fail('Timed out');\n+ t.end();\n+ }, 2000);\n+ var error = new Error();\n+ SERVER.pre(function (req, res, next) {\n+ next(error);\n+ });\n+ SERVER.get('/', function (req, res, next) {\n+ t.fail('should have aborted stack before routing');\n+ });\n+ SERVER.on('after', function (req, res, route, err) {\n+ t.equal(err, error);\n+ t.end();\n+ });\n+ CLIENT.get('/', function () {});\n+});\ntest('GH-1078: server name should default to restify', function (t) {\n", "new_path": "test/server.test.js", "old_path": "test/server.test.js" } ]
JavaScript
MIT License
restify/node-restify
fix(server): error in pre handler triggers after event (#1500)
1
fix
null
448,077
20.09.2017 08:53:21
-3,600
3f87f5e9d64a8248fa726801c2843e73079ca004
feat: add rollup commonjs plugin to support all library types
[ { "change_type": "MODIFY", "diff": "\"read-file\": \"^0.2.0\",\n\"rimraf\": \"^2.6.1\",\n\"rollup\": \"^0.50.0\",\n+ \"rollup-plugin-commonjs\": \"^8.2.1\",\n\"rollup-plugin-node-resolve\": \"^3.0.0\",\n\"sorcery\": \"^0.10.0\",\n\"stylus\": \"^0.54.5\",\n", "new_path": "package.json", "old_path": "package.json" }, { "change_type": "MODIFY", "diff": "const __rollup = require('rollup');\nconst nodeResolve = require('rollup-plugin-node-resolve');\n+const commonJs = require('rollup-plugin-commonjs');\nimport { debug } from '../util/log';\nimport { ROLLUP_GLOBALS } from '../conf/rollup.globals';\n@@ -31,6 +32,7 @@ export const rollup = (opts: RollupOptions) => {\ninput: opts.entry,\nplugins: [\nnodeResolve({ jsnext: true, module: true }),\n+ commonJs(),\n],\nonwarn: (warning) => {\nif (warning.code === 'THIS_IS_UNDEFINED') {\n", "new_path": "src/lib/steps/rollup.ts", "old_path": "src/lib/steps/rollup.ts" }, { "change_type": "MODIFY", "diff": "@@ -71,6 +71,10 @@ abbrev@1:\nversion \"1.1.0\"\nresolved \"https://registry.yarnpkg.com/abbrev/-/abbrev-1.1.0.tgz#d0554c2256636e2f56e7c2e5ad183f859428d81f\"\n+acorn@^5.1.1:\n+ version \"5.1.2\"\n+ resolved \"https://registry.yarnpkg.com/acorn/-/acorn-5.1.2.tgz#911cb53e036807cf0fa778dc5d370fbd864246d7\"\n+\najv@^4.9.1:\nversion \"4.11.8\"\nresolved \"https://registry.yarnpkg.com/ajv/-/ajv-4.11.8.tgz#82ffb02b29e662ae53bdc20af15947706739c536\"\n@@ -949,6 +953,14 @@ esprima@~3.1.0:\nversion \"3.1.3\"\nresolved \"https://registry.yarnpkg.com/esprima/-/esprima-3.1.3.tgz#fdca51cee6133895e3c88d535ce49dbff62a4633\"\n+estree-walker@^0.3.0:\n+ version \"0.3.1\"\n+ resolved \"https://registry.yarnpkg.com/estree-walker/-/estree-walker-0.3.1.tgz#e6b1a51cf7292524e7237c312e5fe6660c1ce1aa\"\n+\n+estree-walker@^0.5.0:\n+ version \"0.5.0\"\n+ resolved \"https://registry.yarnpkg.com/estree-walker/-/estree-walker-0.5.0.tgz#aae3b57c42deb8010e349c892462f0e71c5dd1aa\"\n+\nevent-emitter@^0.3.5:\nversion \"0.3.5\"\nresolved \"https://registry.yarnpkg.com/event-emitter/-/event-emitter-0.3.5.tgz#df8c69eef1647923c7157b9ce83840610b02cc39\"\n@@ -2018,6 +2030,12 @@ ltcdr@^2.2.1:\nversion \"2.2.1\"\nresolved \"https://registry.yarnpkg.com/ltcdr/-/ltcdr-2.2.1.tgz#5ab87ad1d4c1dab8e8c08bbf037ee0c1902287cf\"\n+magic-string@^0.22.4:\n+ version \"0.22.4\"\n+ resolved \"https://registry.yarnpkg.com/magic-string/-/magic-string-0.22.4.tgz#31039b4e40366395618c1d6cf8193c53917475ff\"\n+ dependencies:\n+ vlq \"^0.2.1\"\n+\nmake-error@^1.1.1:\nversion \"1.3.0\"\nresolved \"https://registry.yarnpkg.com/make-error/-/make-error-1.3.0.tgz#52ad3a339ccf10ce62b4040b708fe707244b8b96\"\n@@ -2066,7 +2084,7 @@ merge-stream@^1.0.0:\ndependencies:\nreadable-stream \"^2.0.1\"\n-micromatch@^2.1.5, micromatch@^2.3.7:\n+micromatch@^2.1.5, micromatch@^2.3.11, micromatch@^2.3.7:\nversion \"2.3.11\"\nresolved \"https://registry.yarnpkg.com/micromatch/-/micromatch-2.3.11.tgz#86677c97d1720b363431d04d0d15293bd38c1565\"\ndependencies:\n@@ -2721,7 +2739,7 @@ resolve@1.1.7:\nversion \"1.1.7\"\nresolved \"https://registry.yarnpkg.com/resolve/-/resolve-1.1.7.tgz#203114d82ad2c5ed9e8e0411b3932875e889e97b\"\n-resolve@^1.1.6, resolve@^1.1.7, resolve@~1.4.0:\n+resolve@^1.1.6, resolve@^1.1.7, resolve@^1.4.0, resolve@~1.4.0:\nversion \"1.4.0\"\nresolved \"https://registry.yarnpkg.com/resolve/-/resolve-1.4.0.tgz#a75be01c53da25d934a98ebd0e4c4a7312f92a86\"\ndependencies:\n@@ -2745,6 +2763,16 @@ rimraf@2, rimraf@^2.5.1, rimraf@^2.5.2, rimraf@^2.6.1:\ndependencies:\nglob \"^7.0.5\"\n+rollup-plugin-commonjs@^8.2.1:\n+ version \"8.2.1\"\n+ resolved \"https://registry.yarnpkg.com/rollup-plugin-commonjs/-/rollup-plugin-commonjs-8.2.1.tgz#5e40c78375eb163c14c76bce69da1750e5905a2e\"\n+ dependencies:\n+ acorn \"^5.1.1\"\n+ estree-walker \"^0.5.0\"\n+ magic-string \"^0.22.4\"\n+ resolve \"^1.4.0\"\n+ rollup-pluginutils \"^2.0.1\"\n+\nrollup-plugin-node-resolve@^3.0.0:\nversion \"3.0.0\"\nresolved \"https://registry.yarnpkg.com/rollup-plugin-node-resolve/-/rollup-plugin-node-resolve-3.0.0.tgz#8b897c4c3030d5001277b0514b25d2ca09683ee0\"\n@@ -2754,6 +2782,13 @@ rollup-plugin-node-resolve@^3.0.0:\nis-module \"^1.0.0\"\nresolve \"^1.1.6\"\n+rollup-pluginutils@^2.0.1:\n+ version \"2.0.1\"\n+ resolved \"https://registry.yarnpkg.com/rollup-pluginutils/-/rollup-pluginutils-2.0.1.tgz#7ec95b3573f6543a46a6461bd9a7c544525d0fc0\"\n+ dependencies:\n+ estree-walker \"^0.3.0\"\n+ micromatch \"^2.3.11\"\n+\nrollup@^0.49.0:\nversion \"0.49.3\"\nresolved \"https://registry.yarnpkg.com/rollup/-/rollup-0.49.3.tgz#4cce32643dd8cf2154c69ff0e43470067db0adbf\"\n", "new_path": "yarn.lock", "old_path": "yarn.lock" } ]
TypeScript
MIT License
ng-packagr/ng-packagr
feat: add rollup commonjs plugin to support all library types (#121)
1
feat
null
448,039
20.09.2017 09:55:58
-7,200
e56d8f8628d4a3fcff415ee8aaf8026e89af50a4
chore: cut release for v1.2.0
[ { "change_type": "MODIFY", "diff": "All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.\n+<a name=\"1.2.0\"></a>\n+# [1.2.0](https://github.com/dherges/ng-packagr/compare/v1.1.0...v1.2.0) (2017-09-20)\n+\n+\n+### Features\n+\n+* add rollup commonjs plugin to support all library types ([#121](https://github.com/dherges/ng-packagr/issues/121)) ([3f87f5e](https://github.com/dherges/ng-packagr/commit/3f87f5e))\n+* update rollup to version 0.50.0 ([#124](https://github.com/dherges/ng-packagr/issues/124)) ([fb9f529](https://github.com/dherges/ng-packagr/commit/fb9f529))\n+\n+\n+\n<a name=\"1.1.0\"></a>\n# [1.1.0](https://github.com/dherges/ng-packagr/compare/v1.0.1...v1.1.0) (2017-09-12)\n", "new_path": "CHANGELOG.md", "old_path": "CHANGELOG.md" }, { "change_type": "MODIFY", "diff": "{\n\"name\": \"ng-packagr\",\n- \"version\": \"1.1.0\",\n+ \"version\": \"1.2.0\",\n\"description\": \"Compile and package a TypeScript library to Angular Package Format\",\n\"keywords\": [\n\"angular\",\n", "new_path": "package.json", "old_path": "package.json" } ]
TypeScript
MIT License
ng-packagr/ng-packagr
chore: cut release for v1.2.0
1
chore
null
End of preview. Expand in Data Studio

CCSBENCH: A Fine-Grained Benchmark for Conventional Commits

1. Dataset Summary

CCSBENCH is a large-scale benchmark dataset specifically constructed for fine-grained Conventional Commits (CCS) classification research. Based on the CCS specification, it provides high-quality commit data with verified types and scopes across multiple programming languages.

The dataset contains 93,807 CCS-compliant commits extracted from 119 high-quality repositories. It spans a wide temporal range (April 2017 to February 2023) and includes 142 distinct commit types and 6,633 unique scopes.

2. Dataset Structure

Data Splits

We employ a strict temporal split to simulate real-world scenarios, ensuring that repositories are tracked continuously over time.

File Count Usage
train.json 74,581 Model training
valid.json 9,939 Hyperparameter tuning
test.json 9,287 Final performance evaluation

Language Distribution (by Repository)

The benchmark covers 9 key programming languages:

Language Repositories Language Repositories
TypeScript 61 Rust 2
JavaScript 34 Java 2
Go 11 C++ 1
Python 4 Kotlin 1
C# 3

3. Data Schema

Each record in the dataset is a JSON object representing a single commit. Below is a description of the key fields:

Field Type Description
hash string Unique identifier for the commit.
message string The full original commit message.
commit_type string The extracted CCS type (e.g., feat, fix, chore).
commit_scope string The extracted CCS scope (can be null if not provided).
is_CCS integer Binary indicator (1) for CCS compliance.
language string Programming language of the repository.
repo string Full name of the source repository (Owner/Repo).
mods array List of modified files, including diff, new_path, and old_path.
date string Timestamp of the commit.
license string Original license of the source repository.

4. Construction Principles

The construction of CCSBENCH prioritizes Scale, Quality, and Repository Continuity:

  1. Keyword Detection: Identifying repositories explicitly adopting CCS ("conventionalcommits.org").
  2. Format Validation: Using a robust parser to validate <type>[optional scope]: <description>.
  3. Temporal Alignment: Discarding all commits preceding the repository’s formal adoption of CCS to ensure data purity.

5. Licensing

  • Dataset License: Apache-2.0 (compatible with the licenses of the original repositories in CommitChronicle).
  • Code License: MIT (for processing scripts).
Downloads last month
14