author
int64
658
755k
date
stringdate
2012-06-12 08:34:29
2024-07-22 14:51:21
timezone
int64
-46,800
43.2k
hash
stringlengths
40
40
message
stringlengths
5
490
mods
listlengths
1
16
language
stringclasses
20 values
license
stringclasses
3 values
repo
stringlengths
5
68
original_message
stringlengths
12
491
699
07.09.2020 15:37:07
18,000
085c0664566965e798c09d7d91b17dd468d14861
Removes JSTL. Fixes
[ { "change_type": "MODIFY", "old_path": "package.json", "new_path": "package.json", "diff": "\"gray-matter\": \"^4.0.2\",\n\"hamljs\": \"^0.6.2\",\n\"handlebars\": \"^4.7.6\",\n- \"javascript-stringify\": \"^2.0.1\",\n\"liquidjs\": \"^9.15.0\",\n\"lodash\": \"^4.17.20\",\n\"luxon\": \"^1.25.0\",\n" ...
JavaScript
MIT License
11ty/eleventy
Removes JSTL. Fixes #1084
699
18.09.2020 22:49:15
18,000
a179b71fb620ed9fb1502659eed47c92de634f5e
Adds a `changedFiles` argument to the `beforeWatch` event to facilitate some incremental behavior.
[ { "change_type": "MODIFY", "old_path": "src/Eleventy.js", "new_path": "src/Eleventy.js", "diff": "@@ -459,10 +459,10 @@ Arguments:\nreturn;\n}\n- this.config.events.emit(\"beforeWatch\");\n-\nthis.watchManager.setBuildRunning();\n+ this.config.events.emit(\"beforeWatch\", this.watchManager.getActive...
JavaScript
MIT License
11ty/eleventy
Adds a `changedFiles` argument to the `beforeWatch` event to facilitate some incremental behavior.
699
18.09.2020 22:53:04
18,000
5d763c5aa8b510f3835df9111f5a05a9a31b1f5e
Test to make sure custom file extensions only init once.
[ { "change_type": "MODIFY", "old_path": "src/TemplateData.js", "new_path": "src/TemplateData.js", "diff": "@@ -154,12 +154,12 @@ class TemplateData {\nlet paths = [\n`${dir}/**/*.json`, // covers .11tydata.json too\n`${dir}/**/*${this.config.jsDataFileSuffix}.cjs`,\n- `${dir}/**/*${this.config.jsData...
JavaScript
MIT License
11ty/eleventy
Test to make sure custom file extensions only init once.
691
07.10.2020 21:41:49
21,600
8e3eb2cc12e6074cf4e1d3e852c85abec48fac19
Add data overwride warning for data files
[ { "change_type": "MODIFY", "old_path": "src/TemplateData.js", "new_path": "src/TemplateData.js", "diff": "@@ -154,12 +154,12 @@ class TemplateData {\nlet paths = [\n`${dir}/**/*.json`, // covers .11tydata.json too\n`${dir}/**/*${this.config.jsDataFileSuffix}.cjs`,\n- `${dir}/**/*${this.config.jsData...
JavaScript
MIT License
11ty/eleventy
Add data overwride warning for data files
699
22.10.2020 11:39:34
18,000
e9181d3a00995f95e2f9eb0f30e8448f90921fe4
Adds afterBuild/beforeBuild events, adds argument to beforeWatch event to pass in the files that changed.
[ { "change_type": "MODIFY", "old_path": "package.json", "new_path": "package.json", "diff": "},\n\"dependencies\": {\n\"@11ty/dependency-tree\": \"^1.0.0\",\n- \"browser-sync\": \"^2.26.7\",\n+ \"browser-sync\": \"^2.26.13\",\n\"chalk\": \"^3.0.0\",\n\"chokidar\": \"^3.4.0\",\n\"debug\": \"^4.1.1\",\...
JavaScript
MIT License
11ty/eleventy
Adds afterBuild/beforeBuild events, adds argument to beforeWatch event to pass in the files that changed.
699
25.10.2020 21:14:47
18,000
5480a04ea5698d24798373b292c8cd38141417b0
Nunjucks aggressively cached include content, which is a problem when it might change
[ { "change_type": "MODIFY", "old_path": "src/Engines/Nunjucks.js", "new_path": "src/Engines/Nunjucks.js", "diff": "@@ -19,10 +19,12 @@ class Nunjucks extends TemplateEngine {\nthis.njkEnv =\nenv ||\nnew NunjucksLib.Environment(\n- new NunjucksLib.FileSystemLoader([\n- super.getIncludesDir(),\n- Templ...
JavaScript
MIT License
11ty/eleventy
Nunjucks aggressively cached include content, which is a problem when it might change
699
25.10.2020 22:10:19
18,000
92bf9ba112637eb50e03c9196bd7c85ead470260
Remove generated scripts from stubs
[ { "change_type": "MODIFY", "old_path": ".gitignore", "new_path": ".gitignore", "diff": "@@ -16,3 +16,5 @@ api-docs/\n_site/\npackage-lock.json\n+\n+test/stubs-layout-cache/_includes/*.js\n\\ No newline at end of file\n" }, { "change_type": "DELETE", "old_path": "test/stubs-layout-cache/_...
JavaScript
MIT License
11ty/eleventy
Remove generated scripts from stubs
699
25.10.2020 22:10:47
18,000
e5cecac6d26205b73f8464d27daf0f32abeebde8
Update dependencies, fixes again
[ { "change_type": "MODIFY", "old_path": "package.json", "new_path": "package.json", "diff": "]\n},\n\"devDependencies\": {\n- \"@11ty/eleventy-plugin-syntaxhighlight\": \"^3.0.1\",\n- \"ava\": \"^3.12.1\",\n- \"husky\": \"^4.2.5\",\n+ \"@11ty/eleventy-plugin-syntaxhighlight\": \"^3.0.4\",\n+ \"ava\":...
JavaScript
MIT License
11ty/eleventy
Update dependencies, fixes #669 again
699
30.10.2020 14:08:36
18,000
71f5943f1fa826a2b6d589cc1f49676d23b88afe
Finally remove old `filters` (was renamed to transforms in Eleventy 0.3.3). Adds an error message if the `filters` key still exists in the configuration return object. Use the addTransform method instead. Helps with Fixes
[ { "change_type": "MODIFY", "old_path": "src/Template.js", "new_path": "src/Template.js", "diff": "const fs = require(\"fs-extra\");\n+const chalk = require(\"chalk\");\nconst parsePath = require(\"parse-filepath\");\nconst normalize = require(\"normalize-path\");\nconst lodashIsObject = require(\"lo...
JavaScript
MIT License
11ty/eleventy
Finally remove old `filters` (was renamed to transforms in Eleventy 0.3.3). Adds an error message if the `filters` key still exists in the configuration return object. Use the addTransform method instead. Helps with #1479. Fixes #789.
699
30.10.2020 20:10:07
18,000
082b461d0df216664cb7ad611580b55781cbf79e
Attempt to fix Windows path separator test breakage
[ { "change_type": "MODIFY", "old_path": "src/EleventyServe.js", "new_path": "src/EleventyServe.js", "diff": "@@ -23,7 +23,8 @@ class EleventyServe {\nlet cfgPrefix = this.config.pathPrefix;\nif (cfgPrefix) {\n// add leading / (for browsersync), see #1454\n- return path.join(\"/\", cfgPrefix);\n+ // p...
JavaScript
MIT License
11ty/eleventy
Attempt to fix Windows path separator test breakage
699
30.10.2020 20:31:13
18,000
045f666fa6ff9f22a60b3dd6a972d757b0481400
Migrating away from Travis. GitHub actions seem to be working better/faster/more reliably here.
[ { "change_type": "DELETE", "old_path": ".travis.yml", "new_path": null, "diff": "-language: node_js\n-node_js:\n- - 10\n- - 12\n- - 14\n-before_script:\n- - npm install\n-script: npm run test\n-branches:\n- except:\n- - gh-pages\n-sudo: false\n-os:\n- - linux\n- - osx\n- - windows\n-env:\n- - YARN_G...
JavaScript
MIT License
11ty/eleventy
Migrating away from Travis. GitHub actions seem to be working better/faster/more reliably here.
699
30.10.2020 20:32:21
18,000
b85c60bf983ea926e40485464d459f1b2f33c0b1
Remove travis reference on readme
[ { "change_type": "MODIFY", "old_path": "README.md", "new_path": "README.md", "diff": "@@ -14,7 +14,6 @@ Works with HTML, Markdown, Liquid, Nunjucks, Handlebars, Mustache, EJS, Haml, Pu\n- [11ty on npm](https://www.npmjs.com/org/11ty)\n- [11ty on GitHub](https://github.com/11ty)\n- Continuous Integra...
JavaScript
MIT License
11ty/eleventy
Remove travis reference on readme
699
15.11.2020 10:06:37
21,600
babea4443688ee786d9a207f2acb300cf5c4c2b5
Refactor to use safer `listeners` method instead of this._events (confirmed node 10+)
[ { "change_type": "MODIFY", "old_path": "src/Util/AsyncEventEmitter.js", "new_path": "src/Util/AsyncEventEmitter.js", "diff": "@@ -4,18 +4,12 @@ const lodashIsEmpty = require(\"lodash/isEmpty\");\nclass AsyncEventEmitter extends EventEmitter {\nasync emit(type, ...args) {\n- const handler = lodashGet...
JavaScript
MIT License
11ty/eleventy
Refactor to use safer `listeners` method instead of this._events (confirmed node 10+)
699
15.11.2020 14:21:11
21,600
1f827301d0f3fc59da78e2bcadf53de403fcd948
Readable file extension output
[ { "change_type": "MODIFY", "old_path": "src/EleventyExtensionMap.js", "new_path": "src/EleventyExtensionMap.js", "diff": "@@ -170,6 +170,10 @@ class EleventyExtensionMap {\nreturn this._extensionToKeyMap;\n}\n+\n+ getReadableFileExtensions() {\n+ return Object.keys(this.extensionToKeyMap).join(\" \"...
JavaScript
MIT License
11ty/eleventy
Readable file extension output
676
24.11.2020 13:35:56
28,800
3a005de2124677722643729fb8ea96a44368b5cc
Cleanup variables and scopes per review comments.
[ { "change_type": "MODIFY", "old_path": "src/Engines/Nunjucks.js", "new_path": "src/Engines/Nunjucks.js", "diff": "@@ -5,25 +5,17 @@ const EleventyErrorUtil = require(\"../EleventyErrorUtil\");\nconst EleventyBaseError = require(\"../EleventyBaseError\");\n/*\n- * HACKITYHACKHACKHACKHACK\n+ * This IF...
JavaScript
MIT License
11ty/eleventy
Cleanup variables and scopes per review comments.
676
26.11.2020 11:03:44
28,800
e15ae7914c342a87e0b014c7ac32e4183666aa23
Less aggressive cache invalidation for a small speedup.
[ { "change_type": "MODIFY", "old_path": "src/Engines/Nunjucks.js", "new_path": "src/Engines/Nunjucks.js", "diff": "@@ -12,17 +12,6 @@ const EleventyBaseError = require(\"../EleventyBaseError\");\n(function () {\nlet templateCache = new Map();\n- let clearAndWrap = (name, obj = NunjucksLib.Environment...
JavaScript
MIT License
11ty/eleventy
Less aggressive cache invalidation for a small speedup.
676
03.12.2020 10:35:40
28,800
cce873d6cfde4da12392615705c4bde175dd0dc6
Optmises the hottest loop inside Nunjucks for another 10-20%.
[ { "change_type": "MODIFY", "old_path": "src/Engines/Nunjucks.js", "new_path": "src/Engines/Nunjucks.js", "diff": "@@ -6,8 +6,7 @@ const EleventyBaseError = require(\"../EleventyBaseError\");\n/*\n* This IFFE applies a monkey-patch to Nunjucks internals to cache\n- * compiled templates and re-use the...
JavaScript
MIT License
11ty/eleventy
Optmises the hottest loop inside Nunjucks for another 10-20%.
676
04.12.2020 15:09:03
28,800
8a47a0752fc91c2d76a7dd451e0da8d7b6e3b9de
Re-enables NJK's internal caching by invalidating caches on change.
[ { "change_type": "MODIFY", "old_path": "src/Eleventy.js", "new_path": "src/Eleventy.js", "diff": "@@ -18,6 +18,7 @@ const deleteRequireCache = require(\"./Util/DeleteRequireCache\");\nconst config = require(\"./Config\");\nconst bench = require(\"./BenchmarkManager\");\nconst debug = require(\"debug...
JavaScript
MIT License
11ty/eleventy
Re-enables NJK's internal caching by invalidating caches on change.
699
05.02.2021 21:54:09
21,600
81f88151f9ccbda771f1c986133c74acedc20ebb
Adds --to=json command line option. Allows you to do more complex compilaton stuff programmatically without requiring any writes to the file system.
[ { "change_type": "MODIFY", "old_path": "cmd.js", "new_path": "cmd.js", "diff": "@@ -19,7 +19,15 @@ const EleventyErrorHandler = require(\"./src/EleventyErrorHandler\");\ntry {\nconst EleventyCommandCheckError = require(\"./src/EleventyCommandCheckError\");\nconst argv = require(\"minimist\")(process...
JavaScript
MIT License
11ty/eleventy
Adds --to=json command line option. Allows you to do more complex compilaton stuff programmatically without requiring any writes to the file system.
699
05.02.2021 21:58:43
21,600
8eb901c2abef4a93dbba97e25a7b01305807c125
A little cleanup for --to
[ { "change_type": "MODIFY", "old_path": "cmd.js", "new_path": "cmd.js", "diff": "@@ -94,18 +94,16 @@ try {\n} else if (argv.watch) {\nelev.watch();\n} else {\n- if (argv.to !== \"fs\" && argv.to !== \"json\") {\n- throw new EleventyCommandCheckError(\n- `Invalid --to value: ${argv.to}. Supported valu...
JavaScript
MIT License
11ty/eleventy
A little cleanup for --to
699
06.02.2021 15:13:33
21,600
103c117eba41a835c7d298c075f4f8ad9ec82c0b
Adds `ndjson` output. Makes sure that logged output is JSON compatible so that you can parse it from stdin
[ { "change_type": "MODIFY", "old_path": "cmd.js", "new_path": "cmd.js", "diff": "@@ -96,13 +96,15 @@ try {\n} else {\nif (argv.to === \"json\") {\nelev.toJSON().then((result) => {\n- console.log(result);\n+ console.log(JSON.stringify(result));\n});\n+ } else if (argv.to === \"ndjson\") {\n+ elev.toND...
JavaScript
MIT License
11ty/eleventy
Adds `ndjson` output. Makes sure that logged output is JSON compatible so that you can parse it from stdin
699
07.02.2021 14:29:21
21,600
cf4342acabed4de9069e314add0328ccae16feb3
Try to make the benchmarking test a bit more resilient on GitHub actions
[ { "change_type": "MODIFY", "old_path": "test/BenchmarkTest.js", "new_path": "test/BenchmarkTest.js", "diff": "@@ -11,9 +11,9 @@ test.cb(\"Standard Benchmark\", (t) => {\nb.before();\nsetTimeout(function () {\nb.after();\n- t.truthy(b.getTotal() >= 10);\n+ t.truthy(b.getTotal() >= 0);\nt.end();\n- },...
JavaScript
MIT License
11ty/eleventy
Try to make the benchmarking test a bit more resilient on GitHub actions
699
08.02.2021 19:55:59
21,600
fd37bcae002969d6ba40a342a35c722efb0e5661
Use new ConsoleLogger and EleventyErrorHandler classes (not gross static things) to handle output.
[ { "change_type": "MODIFY", "old_path": "cmd.js", "new_path": "cmd.js", "diff": "@@ -71,6 +71,11 @@ try {\nquietMode: argv.quiet,\n});\n+ if (argv.to === \"json\" || argv.to === \"ndjson\") {\n+ // override logging output\n+ elev.setIsVerbose(false);\n+ }\n+\nelev.setConfigPathOverride(argv.config);\...
JavaScript
MIT License
11ty/eleventy
Use new ConsoleLogger and EleventyErrorHandler classes (not gross static things) to handle output.
699
08.02.2021 19:56:26
21,600
a1e6a7551a7bb52556f6ee14935b5ce25e12ba03
Removes addExtension warning from console output.
[ { "change_type": "MODIFY", "old_path": "src/UserConfig.js", "new_path": "src/UserConfig.js", "diff": "@@ -645,12 +645,6 @@ class UserConfig {\nreturn;\n}\n- console.log(\n- chalk.yellow(\n- \"Warning: Configuration API `addExtension` is an experimental Eleventy feature with an unstable API. Be caref...
JavaScript
MIT License
11ty/eleventy
Removes addExtension warning from console output.
699
08.02.2021 19:58:49
21,600
fbe31abead7641ebde466978337bd6ea941c01a7
More resilient benchmark tests for GitHub actions failures
[ { "change_type": "MODIFY", "old_path": "test/BenchmarkTest.js", "new_path": "test/BenchmarkTest.js", "diff": "@@ -30,7 +30,7 @@ test.cb(\nb.after();\nt.truthy(b.getTotal() >= 10);\nt.end();\n- }, 10);\n+ }, 100);\n}\n);\n@@ -49,5 +49,5 @@ test.cb(\"Reset Benchmark\", (t) => {\nb.after();\n});\nt.end...
JavaScript
MIT License
11ty/eleventy
More resilient benchmark tests for GitHub actions failures
699
08.02.2021 20:13:46
21,600
a349edd49f3c512d673458089dfdb8005e2b03fa
Share the same logger instance, if possible.
[ { "change_type": "MODIFY", "old_path": "src/Eleventy.js", "new_path": "src/Eleventy.js", "diff": "@@ -305,7 +305,7 @@ class Eleventy {\nthis.templateData,\nthis.isPassthroughAll\n);\n-\n+ this.writer.logger = this.logger;\nthis.writer.extensionMap = this.extensionMap;\nthis.writer.setEleventyFiles(t...
JavaScript
MIT License
11ty/eleventy
Share the same logger instance, if possible.
699
08.02.2021 20:16:37
21,600
9c0079d2354d3fcbf5ecdd9c7b3ed653706d53c6
Cleaner output for --to=json
[ { "change_type": "MODIFY", "old_path": "cmd.js", "new_path": "cmd.js", "diff": "@@ -101,7 +101,7 @@ try {\n} else {\nif (argv.to === \"json\") {\nelev.toJSON().then((result) => {\n- console.log(JSON.stringify(result));\n+ console.log(JSON.stringify(result, null, 2));\n});\n} else if (argv.to === \"n...
JavaScript
MIT License
11ty/eleventy
Cleaner output for --to=json
699
09.02.2021 22:50:40
21,600
d840f0ebb9a02ca00e89dea92ec657294f8f12af
Returns a readable stream when using .toNDJSON in Eleventy class programmatic API.
[ { "change_type": "MODIFY", "old_path": "cmd.js", "new_path": "cmd.js", "diff": "@@ -76,6 +76,7 @@ try {\nelev.setIsVerbose(false);\n}\n+ elev.setViaCommandLine(true);\nelev.setConfigPathOverride(argv.config);\nelev.setPathPrefix(argv.pathprefix);\nelev.setDryRun(argv.dryrun);\n" }, { "change...
JavaScript
MIT License
11ty/eleventy
Returns a readable stream when using .toNDJSON in Eleventy class programmatic API.
699
09.02.2021 23:41:42
21,600
c2e89a0da369da29bdbfa5cf6dac34012e316ba0
Use EleventyErrorHandler instance, code cleanup to use streams in both CLI and programmatic API
[ { "change_type": "MODIFY", "old_path": "cmd.js", "new_path": "cmd.js", "diff": "@@ -50,17 +50,16 @@ try {\ndebug(\"command: eleventy \", argv.toString());\nconst Eleventy = require(\"./src/Eleventy\");\n+ let errorHandler = new EleventyErrorHandler();\n+\nprocess.on(\"unhandledRejection\", (error, p...
JavaScript
MIT License
11ty/eleventy
Use EleventyErrorHandler instance, code cleanup to use streams in both CLI and programmatic API
699
09.02.2021 23:51:29
21,600
cc5bf0c7cedc0a059fade92a474029f340f7e972
No more raw stdout in the Eleventy object (irrelevant tests)
[ { "change_type": "MODIFY", "old_path": "test/EleventyTest.js", "new_path": "test/EleventyTest.js", "diff": "@@ -167,64 +167,7 @@ test(\"Eleventy to json\", async (t) => {\n);\n});\n-test(\"Eleventy to ndjson (via command line-ish, to stdout)\", async (t) => {\n- let elev = new Eleventy(\"./test/stub...
JavaScript
MIT License
11ty/eleventy
No more raw stdout in the Eleventy object (irrelevant tests)
699
10.02.2021 12:20:37
21,600
8f5f9fa93632418dcf3378036457406163aaf5b2
.on("data") with node streams uses some kind of compatibility mode per Recommend to use pipe
[ { "change_type": "MODIFY", "old_path": "src/Eleventy.js", "new_path": "src/Eleventy.js", "diff": "@@ -819,6 +819,7 @@ Arguments:\nif (to === \"ndjson\") {\n// return a stream\n+ // TODO this might return only after all the templates have been added to the stream\nret = this.logger.closeStream(to);\n...
JavaScript
MIT License
11ty/eleventy
.on("data") with node streams uses some kind of compatibility mode per https://github.com/substack/stream-handbook#classic-readable-streams Recommend to use pipe
699
10.02.2021 12:20:59
21,600
1894b390d64101a209b5c576de6a095fca04e65e
Fix error with missing error handler on fatal errors
[ { "change_type": "MODIFY", "old_path": "cmd.js", "new_path": "cmd.js", "diff": "@@ -17,6 +17,7 @@ if (process.env.DEBUG) {\nconst EleventyErrorHandler = require(\"./src/EleventyErrorHandler\");\ntry {\n+ let errorHandler = new EleventyErrorHandler();\nconst EleventyCommandCheckError = require(\"./sr...
JavaScript
MIT License
11ty/eleventy
Fix error with missing error handler on fatal errors
699
10.02.2021 12:21:11
21,600
cc9cd890d0705dc2f62c7b77da0a8cd394e50c39
Canary release docs
[ { "change_type": "MODIFY", "old_path": "docs/meta-release.md", "new_path": "docs/meta-release.md", "diff": "+# Canary Release Procedure\n+\n+1. npmclean aka `rm -rf node_modules && rm -f package-lock.json && npm install`\n+1. Make sure `npx ava` runs okay\n+1. Update version in `package.json`, inclu...
JavaScript
MIT License
11ty/eleventy
Canary release docs
699
17.02.2021 10:58:29
21,600
3dbaab0a3e09988210c03607d9bf46e5748d8f89
Adds setter for inputDir when you use a file input and want a different input directory root. Think --input=./src/subdir/index.njk but you want the input directory to be ./src/
[ { "change_type": "MODIFY", "old_path": "src/Eleventy.js", "new_path": "src/Eleventy.js", "diff": "@@ -113,9 +113,21 @@ class Eleventy {\n/** @type {String} */\nget inputDir() {\n+ if (this._inputDir) {\n+ // set manually via setter\n+ return this._inputDir;\n+ }\n+\nreturn TemplatePath.getDir(this.i...
JavaScript
MIT License
11ty/eleventy
Adds setter for inputDir when you use a file input and want a different input directory root. Think --input=./src/subdir/index.njk but you want the input directory to be ./src/
699
17.02.2021 14:46:50
21,600
2dee4ed120cb56a66708bef0109977d6ce31a1e2
Cherry pick from master
[ { "change_type": "MODIFY", "old_path": "package.json", "new_path": "package.json", "diff": "{\n\"name\": \"@11ty/eleventy\",\n- \"version\": \"1.0.0-canary.2\",\n+ \"version\": \"1.0.0-canary.4\",\n\"description\": \"Transform a directory of templates into HTML.\",\n\"publishConfig\": {\n\"access\":...
JavaScript
MIT License
11ty/eleventy
Cherry pick from master
699
17.02.2021 17:51:37
21,600
a0ed8a6b517fac190b6ab7f83feb0ea66bb8d323
Steps to separate input from input dir.
[ { "change_type": "MODIFY", "old_path": "src/Eleventy.js", "new_path": "src/Eleventy.js", "diff": "@@ -295,11 +295,13 @@ class Eleventy {\nthis.extensionMap = new EleventyExtensionMap(formats);\nthis.eleventyFiles = new EleventyFiles(\n- this.input,\n+ this.inputDir,\nthis.outputDir,\nformats,\nthis....
JavaScript
MIT License
11ty/eleventy
Steps to separate input from input dir.
699
17.02.2021 23:32:32
21,600
4bddb147217b1f3cb66f7b1744bb2bc634ae779c
Simplifes the config setup a little bit as a step toward decentralized config object cleanup. Removes EleventyConfig, moves UserConfig into TemplateConfig. Next step is to move another up the chain to Config.js
[ { "change_type": "DELETE", "old_path": "src/EleventyConfig.js", "new_path": null, "diff": "-const UserConfig = require(\"./UserConfig\");\n-\n-module.exports = new UserConfig();\n" }, { "change_type": "MODIFY", "old_path": "src/TemplateConfig.js", "new_path": "src/TemplateConfig.js",...
JavaScript
MIT License
11ty/eleventy
Simplifes the config setup a little bit as a step toward decentralized config object cleanup. Removes EleventyConfig, moves UserConfig into TemplateConfig. Next step is to move another up the chain to Config.js
699
18.02.2021 18:02:00
21,600
3326e5e3f613091e1c4de5896d03b05ca54310da
These tests are working
[ { "change_type": "MODIFY", "old_path": "src/Eleventy.js", "new_path": "src/Eleventy.js", "diff": "@@ -11,12 +11,12 @@ const EleventyWatch = require(\"./EleventyWatch\");\nconst EleventyWatchTargets = require(\"./EleventyWatchTargets\");\nconst EleventyFiles = require(\"./EleventyFiles\");\nconst Con...
JavaScript
MIT License
11ty/eleventy
These tests are working
699
19.02.2021 20:33:18
21,600
2df5f88a1de657b0302ca484b419f2358d6f801b
The last one?
[ { "change_type": "MODIFY", "old_path": "src/EleventyFiles.js", "new_path": "src/EleventyFiles.js", "diff": "@@ -139,7 +139,7 @@ class EleventyFiles {\n}\ninitPassthroughManager() {\n- let mgr = new TemplatePassthroughManager();\n+ let mgr = new TemplatePassthroughManager(this.eleventyConfig);\nmgr.s...
JavaScript
MIT License
11ty/eleventy
The last one?
699
19.02.2021 21:30:00
21,600
7dc72109a81e42b49013a3cbba7bfd9a4e3409c2
Finishes config refactor.
[ { "change_type": "DELETE", "old_path": "src/Config.js", "new_path": null, "diff": "-const TemplateConfig = require(\"./TemplateConfig\");\n-const debug = require(\"debug\")(\"Eleventy:Config\");\n-\n-/**\n- * @module 11ty/eleventy/Config\n- */\n-\n-debug(\"Setting up global TemplateConfig.\");\n-/**...
JavaScript
MIT License
11ty/eleventy
Finishes config refactor.
699
20.02.2021 14:52:13
21,600
40bc8c0ba60ff7da805fe56f85c6e2ee05213dbf
Adds useTemplateCache option to remove all remaining globals.
[ { "change_type": "MODIFY", "old_path": "src/TemplateContent.js", "new_path": "src/TemplateContent.js", "diff": "@@ -146,11 +146,17 @@ class TemplateContent {\nlet templateBenchmark = bench.get(\"Template Read\");\ntemplateBenchmark.before();\n- let content = TemplateContent.getCached(this.inputPath)...
JavaScript
MIT License
11ty/eleventy
Adds useTemplateCache option to remove all remaining globals.
699
21.02.2021 14:32:07
21,600
2bc2da2b6a1b8be93bc30f2df1ed5cadc16851a1
More tests for addGlobalData
[ { "change_type": "MODIFY", "old_path": "src/TemplateData.js", "new_path": "src/TemplateData.js", "diff": "@@ -280,13 +280,14 @@ class TemplateData {\nlet globalData = {};\nif (this.config.globalData) {\nlet keys = Object.keys(this.config.globalData);\n- for (let j = 0; j < keys.length; j++) {\n- let...
JavaScript
MIT License
11ty/eleventy
More tests for addGlobalData
699
21.02.2021 14:33:13
21,600
eb0699308f3420b264a23c6eef151c806c382235
Match to the docs example
[ { "change_type": "MODIFY", "old_path": "test/TemplateDataTest.js", "new_path": "test/TemplateDataTest.js", "diff": "@@ -452,9 +452,11 @@ test(\"Parent directory for data (Issue #337)\", async (t) => {\ntest(\"addGlobalData values\", async (t) => {\nlet eleventyConfig = new TemplateConfig();\nelevent...
JavaScript
MIT License
11ty/eleventy
Match to the docs example
699
22.02.2021 16:11:46
21,600
1c55ddbd7577cffd9a85ea893fa5ec4c3d3d8ce0
Adds `config` option to Eleventy constructor. Pass `addGlobalData` results to global data functions. More useTemplateCache forks
[ { "change_type": "MODIFY", "old_path": "package.json", "new_path": "package.json", "diff": "{\n\"name\": \"@11ty/eleventy\",\n- \"version\": \"1.0.0-canary.9\",\n+ \"version\": \"1.0.0-canary.10\",\n\"description\": \"Transform a directory of templates into HTML.\",\n\"publishConfig\": {\n\"access\"...
JavaScript
MIT License
11ty/eleventy
Adds `config` option to Eleventy constructor. Pass `addGlobalData` results to global data functions. More useTemplateCache forks
699
23.02.2021 22:58:25
21,600
f39b93a2c372473f6d8dc4952d3e761b94a65423
Delete entries from template cache when there are errors!
[ { "change_type": "MODIFY", "old_path": "src/TemplateCache.js", "new_path": "src/TemplateCache.js", "diff": "@@ -29,6 +29,12 @@ class TemplateCache {\nreturn this.cache[key];\n}\n+\n+ remove(key) {\n+ if (this.cache[key]) {\n+ delete this.cache[key];\n+ }\n+ }\n}\n// singleton\n" }, { "change...
JavaScript
MIT License
11ty/eleventy
Delete entries from template cache when there are errors!
699
05.03.2021 21:55:15
21,600
db902d9b75004ddfc5214b9a2361ef78dfa6b70d
Additional tests for relative dirs paths
[ { "change_type": "MODIFY", "old_path": "test/EleventyFilesTest.js", "new_path": "test/EleventyFilesTest.js", "diff": "@@ -5,6 +5,42 @@ const TemplatePath = require(\"../src/TemplatePath\");\nconst TemplateConfig = require(\"../src/TemplateConfig\");\nconst TemplatePassthroughManager = require(\"../s...
JavaScript
MIT License
11ty/eleventy
Additional tests for relative dirs paths
699
17.03.2021 21:52:26
18,000
f4cb6e7d55eaa492fcbebee1fa0ecc6263eb04b6
Updates a few deps.
[ { "change_type": "MODIFY", "old_path": "package.json", "new_path": "package.json", "diff": "\"access\": \"public\"\n},\n\"main\": \"src/Eleventy.js\",\n+ \"bin\": {\n+ \"eleventy\": \"./cmd.js\"\n+ },\n\"license\": \"MIT\",\n\"engines\": {\n\"node\": \">=10\"\n\"ejs\",\n\"haml\"\n],\n- \"bin\": {\n-...
JavaScript
MIT License
11ty/eleventy
Updates a few deps.
699
19.03.2021 12:55:43
18,000
d6536ba13fb00e4fc2abc9fc32db38f061bff2b6
Easy deps to upgrade. Includes Pug 2 -> 3
[ { "change_type": "MODIFY", "old_path": "package.json", "new_path": "package.json", "diff": "{\n\"name\": \"@11ty/eleventy\",\n- \"version\": \"0.11.1\",\n+ \"version\": \"0.12.0\",\n\"description\": \"Transform a directory of templates into HTML.\",\n\"publishConfig\": {\n\"access\": \"public\"\n]\n...
JavaScript
MIT License
11ty/eleventy
Easy deps to upgrade. Includes Pug 2 -> 3
699
19.03.2021 13:13:56
18,000
2fd65a067d659221604b725d8317a72d9016fcab
Upgrades Husky.
[ { "change_type": "ADD", "old_path": null, "new_path": ".husky/pre-commit", "diff": "+npm run lint-staged\n\\ No newline at end of file\n" }, { "change_type": "ADD", "old_path": null, "new_path": ".husky/pre-push", "diff": "+npm run test\n\\ No newline at end of file\n" }, { ...
JavaScript
MIT License
11ty/eleventy
Upgrades Husky.
699
19.03.2021 13:16:42
18,000
32e347ab8594eb5d13fb0d38972915bf95d68627
Husky tasks.
[ { "change_type": "MODIFY", "old_path": ".husky/pre-commit", "new_path": ".husky/pre-commit", "diff": "+#!/bin/sh\n+. \"$(dirname \"$0\")/_/husky.sh\"\n+\nnpm run lint-staged\n\\ No newline at end of file\n" }, { "change_type": "MODIFY", "old_path": ".husky/pre-push", "new_path": ".hu...
JavaScript
MIT License
11ty/eleventy
Husky tasks.
699
19.03.2021 13:32:31
18,000
56f5bd4e1c58e355745867c14163ee296c4a7444
Upgrade some of the other deps (not all)
[ { "change_type": "MODIFY", "old_path": "package.json", "new_path": "package.json", "diff": "\"ava\": \"^3.15.0\",\n\"husky\": \"^5.1.3\",\n\"ink-docstrap\": \"1.3.2\",\n- \"js-yaml\": \"^3.13.1\",\n+ \"js-yaml\": \"^4.0.0\",\n\"jsdoc\": \"3.6.6\",\n\"lint-staged\": \"^10.5.4\",\n- \"markdown-it-emoj...
JavaScript
MIT License
11ty/eleventy
Upgrade some of the other deps (not all)
699
19.03.2021 14:21:05
18,000
785344c535a3c9d88b2aa37f63c31dceb58d8e9e
Code coverage stats.
[ { "change_type": "MODIFY", "old_path": "docs-src/_data/coverage.json", "new_path": "docs-src/_data/coverage.json", "diff": "-{\"total\": {\"lines\":{\"total\":3463,\"covered\":3064,\"skipped\":0,\"pct\":88.48},\"statements\":{\"total\":3485,\"covered\":3085,\"skipped\":0,\"pct\":88.52},\"functions\"...
JavaScript
MIT License
11ty/eleventy
Code coverage stats.
699
19.03.2021 21:21:52
18,000
e6c2f2c82b511e8f451ff34f0c7f98c396bb01ef
Add Node 15 to GitHub Actions (to be prepared)
[ { "change_type": "MODIFY", "old_path": ".github/workflows/ci.yml", "new_path": ".github/workflows/ci.yml", "diff": "@@ -8,7 +8,7 @@ jobs:\nstrategy:\nmatrix:\nos: [\"ubuntu-latest\", \"macos-latest\", \"windows-latest\"]\n- node: [\"12\", \"14\"]\n+ node: [\"12\", \"14\", \"15\"]\nname: Node.js ${{ ...
JavaScript
MIT License
11ty/eleventy
Add Node 15 to GitHub Actions (to be prepared)
705
22.03.2021 11:01:30
-39,600
d7db5026a341c97dea82d4307393b48c8e41fcd1
Pagination: add pageOnEmptyData option
[ { "change_type": "MODIFY", "old_path": "src/Plugins/Pagination.js", "new_path": "src/Plugins/Pagination.js", "diff": "@@ -183,7 +183,11 @@ class Pagination {\nlet hrefs = [];\nlet overrides = [];\n- for (let pageNumber = 0, k = items.length; pageNumber < k; pageNumber++) {\n+ const totalPages =\n+ i...
JavaScript
MIT License
11ty/eleventy
Pagination: add pageOnEmptyData option
699
22.03.2021 09:04:26
18,000
77f7e88476fffd6671f5c644ce9da506695ed3c4
Test config getting passed around.
[ { "change_type": "MODIFY", "old_path": "src/EleventyExtensionMap.js", "new_path": "src/EleventyExtensionMap.js", "diff": "@@ -10,6 +10,9 @@ class EleventyExtensionMap {\nif (!config) {\nthrow new EleventyExtensionMapConfigError(\"Missing `config` argument.\");\n}\n+ if (config instanceof TemplateCon...
JavaScript
MIT License
11ty/eleventy
Test config getting passed around.
699
22.03.2021 09:04:49
18,000
6ecbd639c839944b161c4afe205730922b427945
Node 10 note.
[ { "change_type": "MODIFY", "old_path": "docs/meta-release.md", "new_path": "docs/meta-release.md", "diff": "1. update minor dependencies in package.json? `npm outdated` `npm update --save`\n1. npmclean aka `rm -rf node_modules && rm -f package-lock.json && npm install`\n1. If the minimum Node versio...
JavaScript
MIT License
11ty/eleventy
Node 10 note.
699
22.03.2021 09:05:11
18,000
7b62af88610b49290e5b92aeea0d4976a8ede686
Make the tests a bit more resilient when creating files.
[ { "change_type": "MODIFY", "old_path": "test/TemplateWriterTest.js", "new_path": "test/TemplateWriterTest.js", "diff": "@@ -425,6 +425,8 @@ test(\"Glob Watcher Files with Passthroughs\", (t) => {\n});\ntest(\"Pagination and TemplateContent\", async (t) => {\n+ rimraf.sync(\"./test/stubs/pagination-t...
JavaScript
MIT License
11ty/eleventy
Make the tests a bit more resilient when creating files.
699
22.03.2021 17:28:24
18,000
4249f48e6b20748f172a7f12b7c00ca0a565fece
Moves incremental checks around to allow `isIncrementalMatch` checks to be passed in to custom template engines.
[ { "change_type": "MODIFY", "old_path": "src/Eleventy.js", "new_path": "src/Eleventy.js", "diff": "@@ -521,25 +521,8 @@ Arguments:\nlet incrementalFile = this.watchManager.getIncrementalFile();\nif (incrementalFile) {\n- // TODO remove these and delegate to the template dependency graph\n- let isIncl...
JavaScript
MIT License
11ty/eleventy
Moves incremental checks around to allow `isIncrementalMatch` checks to be passed in to custom template engines.
699
22.03.2021 21:46:01
18,000
a56eae493450d6e0594a9eb6e109345a2c8e3c0d
Refactor away from forEach (eww)
[ { "change_type": "MODIFY", "old_path": "src/EleventyExtensionMap.js", "new_path": "src/EleventyExtensionMap.js", "diff": "@@ -98,17 +98,15 @@ class EleventyExtensionMap {\n_getGlobs(formatKeys, inputDir) {\nlet dir = TemplatePath.convertToRecursiveGlobSync(inputDir);\nlet globs = [];\n- formatKeys.f...
JavaScript
MIT License
11ty/eleventy
Refactor away from forEach (eww)
699
22.03.2021 21:47:08
18,000
7f86629bf18baf73bcbac947fc762b482e627c5c
Move to use fastglob ignore option instead of negated strings (for speeeed)
[ { "change_type": "MODIFY", "old_path": "src/EleventyFiles.js", "new_path": "src/EleventyFiles.js", "diff": "@@ -65,7 +65,7 @@ class EleventyFiles {\ninit() {\nthis.alreadyInit = true;\n- // Input was a directory\n+ // Input is a directory\nif (this.input === this.inputDir) {\nthis.templateGlobs = th...
JavaScript
MIT License
11ty/eleventy
Move to use fastglob ignore option instead of negated strings (for speeeed)
699
03.04.2021 15:20:49
18,000
c9ca422a049f34551048579bfdd30f8768ba44c3
Fix issue where passing an absolute path into TemplatePath.absolutePath would concat two absolute paths together. Exhibited itself with missing global data on Eleventy Cloud when you use an absolute path to an input directory.
[ { "change_type": "MODIFY", "old_path": "src/TemplatePath.js", "new_path": "src/TemplatePath.js", "diff": "@@ -133,6 +133,19 @@ TemplatePath.normalizeUrlPath = function (...urlPaths) {\n* @returns {String} the absolute path described by the given path segments.\n*/\nTemplatePath.absolutePath = functi...
JavaScript
MIT License
11ty/eleventy
Fix issue where passing an absolute path into TemplatePath.absolutePath would concat two absolute paths together. Exhibited itself with missing global data on Eleventy Cloud when you use an absolute path to an input directory.
699
04.04.2021 14:42:02
18,000
659633c05f6aff016ea02e66213509c24e44d589
Test to solidify
[ { "change_type": "MODIFY", "old_path": "test/TemplateFileSlugTest.js", "new_path": "test/TemplateFileSlugTest.js", "diff": "@@ -52,6 +52,12 @@ test(\"Easy slug with date, index\", (t) => {\nt.is(fs.getFullPathWithoutExtension(), \"/index\");\n});\n+test(\"Easy slug with only a date and no suffix\", ...
JavaScript
MIT License
11ty/eleventy
Test to solidify https://github.com/11ty/11ty-website/pull/499
699
06.04.2021 22:26:32
18,000
afb017a7d0371adb059baa2d87c53e5f2b2910ba
Start to support objects in `permalink` for more complex aliasing.
[ { "change_type": "MODIFY", "old_path": "src/Template.js", "new_path": "src/Template.js", "diff": "const fs = require(\"fs-extra\");\nconst parsePath = require(\"parse-filepath\");\nconst normalize = require(\"normalize-path\");\n-const lodashIsObject = require(\"lodash/isObject\");\n+const isPlainOb...
JavaScript
MIT License
11ty/eleventy
Start to support objects in `permalink` for more complex aliasing.
699
07.04.2021 17:48:54
18,000
bbc461688f0babf1cbfafd5fac56ab68f569cef7
Adds Needs Compilation checks to Liquid too (was already in Nunjucks)
[ { "change_type": "MODIFY", "old_path": "src/Engines/Liquid.js", "new_path": "src/Engines/Liquid.js", "diff": "@@ -50,6 +50,8 @@ class Liquid extends TemplateEngine {\nextname: \".liquid\",\ndynamicPartials: false,\nstrictFilters: true,\n+ // TODO?\n+ // cache: true,\n};\nlet options = Object.assign(...
JavaScript
MIT License
11ty/eleventy
Adds Needs Compilation checks to Liquid too (was already in Nunjucks)
699
07.04.2021 17:49:36
18,000
b078b2df28afaa2ec60de182b535b099639519f3
More clarify on template language console output
[ { "change_type": "MODIFY", "old_path": "src/Template.js", "new_path": "src/Template.js", "diff": "@@ -686,7 +686,7 @@ class Template extends TemplateContent {\nlet engineList = this.templateRender.getReadableEnginesListDifferingFromFileExtension();\nthis.logger.log(\n`${lang.start} ${outputPath} fro...
JavaScript
MIT License
11ty/eleventy
More clarify on template language console output
699
09.04.2021 14:57:03
18,000
5fe9968eecf2f86e2117209cec8201c12b888b33
Rename `permalink.external` to `permalink.cloud`
[ { "change_type": "MODIFY", "old_path": "src/Template.js", "new_path": "src/Template.js", "diff": "@@ -171,9 +171,9 @@ class Template extends TemplateContent {\nkeys.push(\"build\");\npromises.push(super.render(permalink.build, data, true));\n}\n- if(permalink.external) {\n- keys.push(\"external\");\...
JavaScript
MIT License
11ty/eleventy
Rename `permalink.external` to `permalink.cloud`
699
10.04.2021 09:57:21
18,000
749e5c1683e0c49aeb581b0d5781f955472aa536
Add option to use absolute path for config file path.
[ { "change_type": "MODIFY", "old_path": "src/TemplateConfig.js", "new_path": "src/TemplateConfig.js", "diff": "@@ -34,10 +34,10 @@ class EleventyConfigError extends EleventyBaseError {}\n* Config for a template.\n*\n* @param {{}} customRootConfig - tbd.\n- * @param {String} localProjectConfigPath - P...
JavaScript
MIT License
11ty/eleventy
Add option to use absolute path for config file path.
699
11.04.2021 21:09:30
18,000
47a8f42cd025099d0147eb68e714a2c408328196
Updates to dependency tree v2, adds `globalDataFiles` event
[ { "change_type": "MODIFY", "old_path": "package.json", "new_path": "package.json", "diff": "\"vue-server-renderer\": \"^2.6.12\"\n},\n\"dependencies\": {\n- \"@11ty/dependency-tree\": \"^1.0.0\",\n+ \"@11ty/dependency-tree\": \"^2.0.0\",\n\"browser-sync\": \"^2.26.14\",\n\"chalk\": \"^4.1.0\",\n\"ch...
JavaScript
MIT License
11ty/eleventy
Updates to dependency tree v2, adds `globalDataFiles` event
699
15.04.2021 17:50:07
18,000
2be4ac0956bdc9ede96123fdedf9c2cc4effd5d5
Option to use inject precompiled collections via a config option.
[ { "change_type": "MODIFY", "old_path": "src/TemplateMap.js", "new_path": "src/TemplateMap.js", "diff": "@@ -252,13 +252,7 @@ class TemplateMap {\nreturn graph.overallOrder();\n}\n- // TODO(slightlyoff): major bottleneck\n- async initDependencyMap(dependencyMap) {\n- let tagPrefix = this.tagPrefix;\n...
JavaScript
MIT License
11ty/eleventy
Option to use inject precompiled collections via a config option.
699
20.04.2021 11:52:20
18,000
f60b5b7430195b9f38328f3d0241af9ca2053383
Switch SASS from node-sass to sass package for Node 16 compat
[ { "change_type": "MODIFY", "old_path": "package.json", "new_path": "package.json", "diff": "\"jsdoc\": \"3.6.6\",\n\"lint-staged\": \"^10.5.4\",\n\"markdown-it-emoji\": \"^2.0.0\",\n- \"node-sass\": \"^5.0.0\",\n\"nyc\": \"^15.1.0\",\n\"prettier\": \"^2.2.1\",\n\"rimraf\": \"^3.0.2\",\n+ \"sass\": \...
JavaScript
MIT License
11ty/eleventy
Switch SASS from node-sass to sass package for Node 16 compat
699
20.04.2021 11:52:44
18,000
046fbf6320047c61317ddc3c4c1c54ca5ad9824a
Move from Node 15 to Node 16 for GitHub Actions tests
[ { "change_type": "MODIFY", "old_path": ".github/workflows/ci.yml", "new_path": ".github/workflows/ci.yml", "diff": "@@ -8,7 +8,7 @@ jobs:\nstrategy:\nmatrix:\nos: [\"ubuntu-latest\", \"macos-latest\", \"windows-latest\"]\n- node: [\"12\", \"14\", \"15\"]\n+ node: [\"12\", \"14\", \"16\"]\nname: Node...
JavaScript
MIT License
11ty/eleventy
Move from Node 15 to Node 16 for GitHub Actions tests
699
25.04.2021 14:52:48
18,000
f72751f0e812fef7887c1a8bad033129eac26d28
Allow complex keys in `addGlobalData`, minor tweak to data cascade (addGlobalData will override global data files). Also changed to do a deep merge between the two.
[ { "change_type": "MODIFY", "old_path": "src/TemplateData.js", "new_path": "src/TemplateData.js", "diff": "@@ -289,7 +289,7 @@ class TemplateData {\nreturnValue = await returnValue();\n}\n- globalData[key] = returnValue;\n+ lodashset(globalData, key, returnValue);\n}\n}\nreturn globalData;\n@@ -302,1...
JavaScript
MIT License
11ty/eleventy
Allow complex keys in `addGlobalData`, minor tweak to data cascade (addGlobalData will override global data files). Also changed to do a deep merge between the two.
699
27.04.2021 10:08:31
18,000
35c3c2effa98ec45677071eeaf8ca03f3eefb246
Shortcut for single page renders on pagination in cloud render.
[ { "change_type": "MODIFY", "old_path": "src/TemplateMap.js", "new_path": "src/TemplateMap.js", "diff": "@@ -121,7 +121,10 @@ class TemplateMap {\ngraph.addNode(entry.inputPath);\n}\n- if (!entry.data.eleventyExcludeFromCollections) {\n+ if (\n+ !entry.data.eleventyExcludeFromCollections &&\n+ entry....
JavaScript
MIT License
11ty/eleventy
Shortcut for single page renders on pagination in cloud render.
725
27.04.2021 17:16:40
-3,600
9cf519725e92af7024dff2fad0cf5e2ede09175a
Add failing test for nunjucks nested async paired shortcodes
[ { "change_type": "MODIFY", "old_path": "test/TemplateRenderNunjucksTest.js", "new_path": "test/TemplateRenderNunjucksTest.js", "diff": "@@ -545,6 +545,40 @@ test(\"Nunjucks Async Paired Shortcode\", async (t) => {\n);\n});\n+test(\"Nunjucks Nested Async Paired Shortcode\", async (t) => {\n+ t.plan(3...
JavaScript
MIT License
11ty/eleventy
Add failing test for nunjucks nested async paired shortcodes
725
27.04.2021 17:19:48
-3,600
5b5a45554403808ff5e4626933dc745bd72ff56d
Fix for nunjucks nested async paired shortcodes
[ { "change_type": "MODIFY", "old_path": "src/Engines/Nunjucks.js", "new_path": "src/Engines/Nunjucks.js", "diff": "@@ -287,25 +287,30 @@ class Nunjucks extends TemplateEngine {\nvar body = parser.parseUntilBlocks(\"end\" + shortcodeName);\nparser.advanceAfterBlockEnd();\n- if (isAsync) {\nreturn new ...
JavaScript
MIT License
11ty/eleventy
Fix for nunjucks nested async paired shortcodes
697
30.04.2021 22:58:24
-32,400
cf08d2dbce3e1b22216e3fc9f3932bc9ae742011
Fix no use local timezone when parse date from filename
[ { "change_type": "MODIFY", "old_path": "src/Template.js", "new_path": "src/Template.js", "diff": "@@ -881,7 +881,7 @@ class Template extends TemplateContent {\n} else {\nlet filenameRegex = this.inputPath.match(/(\\d{4}-\\d{2}-\\d{2})/);\nif (filenameRegex !== null) {\n- let dateObj = DateTime.fromI...
JavaScript
MIT License
11ty/eleventy
Fix no use local timezone when parse date from filename
699
30.04.2021 11:52:08
18,000
b469b3eeecda067ed7f911770a43971689e3a85b
Changed Data Deep merge default to true for 1.0
[ { "change_type": "MODIFY", "old_path": "src/UserConfig.js", "new_path": "src/UserConfig.js", "diff": "@@ -53,7 +53,7 @@ class UserConfig {\nthis.DateTime = DateTime;\nthis.dynamicPermalinks = true;\nthis.useGitIgnore = true;\n- this.dataDeepMerge = false;\n+ this.dataDeepMerge = true;\nthis.extensio...
JavaScript
MIT License
11ty/eleventy
Changed Data Deep merge default to true for 1.0
699
02.05.2021 15:17:05
18,000
4ee394b76880e95e214d1ca9ea377d63b6d0ff55
Renaming `cloud` to `serverless` for clarity after feedback from a few folks
[ { "change_type": "MODIFY", "old_path": "src/Template.js", "new_path": "src/Template.js", "diff": "@@ -172,9 +172,9 @@ class Template extends TemplateContent {\nkeys.push(\"build\");\npromises.push(super.render(permalink.build, data, true));\n}\n- if (permalink.cloud) {\n- keys.push(\"cloud\");\n- pr...
JavaScript
MIT License
11ty/eleventy
Renaming `cloud` to `serverless` for clarity after feedback from a few folks
699
03.05.2021 17:11:52
18,000
4c8e2125383edcbeeebfbf485a813a1c8e507db5
Set a few default environment variables useful in serverless mode.
[ { "change_type": "MODIFY", "old_path": "src/TemplateData.js", "new_path": "src/TemplateData.js", "diff": "@@ -74,6 +74,14 @@ class TemplateData {\nthis._extensionMap = map;\n}\n+ get environmentVariables() {\n+ return this._env;\n+ }\n+\n+ set environmentVariables(env) {\n+ this._env = env;\n+ }\n+\...
JavaScript
MIT License
11ty/eleventy
Set a few default environment variables useful in serverless mode.
699
04.05.2021 10:23:04
18,000
ae1f6a85c2699adc3b0fd00550d199776b529abd
Adds `eleventy.env` event, prefixes a few other eleventy event names.
[ { "change_type": "MODIFY", "old_path": "src/Eleventy.js", "new_path": "src/Eleventy.js", "diff": "@@ -298,6 +298,10 @@ class Eleventy {\n* @returns {} - tbd.\n*/\nasync init() {\n+ if (this.env) {\n+ await this.config.events.emit(\"eleventy.env\", this.env);\n+ }\n+\nthis.config.inputDir = this.inpu...
JavaScript
MIT License
11ty/eleventy
Adds `eleventy.env` event, prefixes a few other eleventy event names.
699
14.05.2021 14:21:04
18,000
8c1f61c710bab43542ea8781a127f9dc837dfa9b
Require `pagination.serverless` key to truncate data in serverless pagination
[ { "change_type": "MODIFY", "old_path": "src/Plugins/Pagination.js", "new_path": "src/Plugins/Pagination.js", "diff": "@@ -327,13 +327,13 @@ class Pagination {\n}\ngetTruncatedServerlessData(data) {\n- let serverlessKey = data.pagination.serverless;\n- if (!serverlessKey) {\n+ if (!(\"serverless\" in...
JavaScript
MIT License
11ty/eleventy
Require `pagination.serverless` key to truncate data in serverless pagination
699
16.05.2021 20:31:00
18,000
be865cff0907dd2a0ada3383554be24ddf475837
Adds source to ENV variables. Prefixes existing event names with `eleventy.` (make dupes for backwards compat). Adds some code to prepare for browsersync middleware
[ { "change_type": "MODIFY", "old_path": "cmd.js", "new_path": "cmd.js", "diff": "@@ -71,6 +71,7 @@ try {\n// --quiet and --quiet=true both resolve to true\nquietMode: argv.quiet,\nconfigPath: argv.config,\n+ source: \"cli\",\n});\n// reuse ErrorHandler instance in Eleventy\n" }, { "change_typ...
JavaScript
MIT License
11ty/eleventy
Adds source to ENV variables. Prefixes existing event names with `eleventy.` (make dupes for backwards compat). Adds some code to prepare for browsersync middleware
699
17.05.2021 14:36:12
18,000
1c4baf22a0dcb8f4a430795a820255dbacfa7b24
All options moved into constuctor
[ { "change_type": "MODIFY", "old_path": "src/Serverless.js", "new_path": "src/Serverless.js", "diff": "@@ -23,6 +23,7 @@ class Serverless {\nreturn pattern.match(path);\n},\nquery: {},\n+ precompiledCollections: {},\n},\noptions\n);\n@@ -87,7 +88,7 @@ class Serverless {\nreturn {};\n}\n- async render...
JavaScript
MIT License
11ty/eleventy
All options moved into constuctor
699
20.05.2021 16:38:49
18,000
84ce976fddbe94eee78d77e23192339b9f741a6f
Expose more requires to esbuild to make Eleventy more bundleable.
[ { "change_type": "MODIFY", "old_path": ".npmignore", "new_path": ".npmignore", "diff": "docs\ndocs-src\ntest\n+coverage\n.*\n" } ]
JavaScript
MIT License
11ty/eleventy
Expose more requires to esbuild to make Eleventy more bundleable.
699
26.05.2021 09:44:37
18,000
741d914f7744b8c74c0622882a97c2752a871218
Multiple setBrowserSyncConfig calls will deep merge the options together (for plugin friendliness)
[ { "change_type": "MODIFY", "old_path": "src/UserConfig.js", "new_path": "src/UserConfig.js", "diff": "@@ -3,6 +3,7 @@ const semver = require(\"semver\");\nconst { DateTime } = require(\"luxon\");\nconst EventEmitter = require(\"./Util/AsyncEventEmitter\");\nconst EleventyBaseError = require(\"./Elev...
JavaScript
MIT License
11ty/eleventy
Multiple setBrowserSyncConfig calls will deep merge the options together (for plugin friendliness)
699
26.05.2021 09:45:23
18,000
9850a2cba7a39581f84a3f3c45d28b5e60c8d106
BrowserSync will fake-run the serverless functions locally!
[ { "change_type": "MODIFY", "old_path": "src/Eleventy.js", "new_path": "src/Eleventy.js", "diff": "@@ -940,5 +940,5 @@ Arguments:\n}\nmodule.exports = Eleventy;\n-module.exports.Serverless = require(\"./Serverless\");\n-module.exports.ServerlessBundlerPlugin = require(\"./Plugins/ServerlessBundlerPlu...
JavaScript
MIT License
11ty/eleventy
BrowserSync will fake-run the serverless functions locally!
699
02.06.2021 10:58:30
18,000
5ffb3b14229138c9de133108c2b0e8f61f5f5649
Test for eleventyExcludeFromCollections: true and permalink:false
[ { "change_type": "MODIFY", "old_path": "src/TemplatePermalink.js", "new_path": "src/TemplatePermalink.js", "diff": "@@ -43,6 +43,7 @@ class TemplatePermalink {\n}\n// default if permalink is an Object but does not have a `build` prop\n+ // note that `read` will opt-out this template from collections...
JavaScript
MIT License
11ty/eleventy
Test for eleventyExcludeFromCollections: true and permalink:false https://github.com/11ty/eleventy/issues/1754#issuecomment-852865233
699
07.06.2021 09:07:51
18,000
e9b385fefde18fabfcae167a527a3c55095ffbcc
Fix for error messaging when two serverless permalinks match exactly
[ { "change_type": "MODIFY", "old_path": "src/Plugins/ServerlessBundlerPlugin.js", "new_path": "src/Plugins/ServerlessBundlerPlugin.js", "diff": "@@ -145,7 +145,7 @@ class BundlerHelper {\n}\n}\n-module.exports = function (eleventyConfig, options = {}) {\n+function EleventyPlugin(eleventyConfig, optio...
JavaScript
MIT License
11ty/eleventy
Fix for error messaging when two serverless permalinks match exactly
699
07.06.2021 20:45:26
18,000
d3cd329d83ec31414dfecc23b30b22c876e9d238
Reset the copy count during watch
[ { "change_type": "MODIFY", "old_path": "src/Plugins/ServerlessBundlerPlugin.js", "new_path": "src/Plugins/ServerlessBundlerPlugin.js", "diff": "@@ -52,6 +52,10 @@ class BundlerHelper {\nthis.copyCount = 0;\n}\n+ reset() {\n+ this.copyCount = 0;\n+ }\n+\ngetOutputPath(filepath) {\nreturn TemplatePath...
JavaScript
MIT License
11ty/eleventy
Reset the copy count during watch
699
08.06.2021 11:01:39
18,000
7748576dcbcb30cbf817188c980d33bde7f75d89
Original serverless templates are now included in collections (but only one entry for now)
[ { "change_type": "MODIFY", "old_path": "src/Template.js", "new_path": "src/Template.js", "diff": "@@ -587,21 +587,20 @@ class Template extends TemplateContent {\n}\nasync getTemplates(data) {\n- // no pagination on permalink.serverless for local builds\n+ // no pagination with permalink.serverless\n...
JavaScript
MIT License
11ty/eleventy
Original serverless templates are now included in collections (but only one entry for now)
699
08.06.2021 13:02:01
18,000
217b4e3030404406637fd5cb550231ec4d107e0c
More straightforward pagination template code for serverless.
[ { "change_type": "MODIFY", "old_path": "src/Plugins/ServerlessBundlerPlugin.js", "new_path": "src/Plugins/ServerlessBundlerPlugin.js", "diff": "@@ -263,6 +263,10 @@ function EleventyPlugin(eleventyConfig, options = {}) {\nfor (let entry of templateMap) {\nfor (let key in entry.serverless) {\nif (key...
JavaScript
MIT License
11ty/eleventy
More straightforward pagination template code for serverless.
699
09.06.2021 07:12:37
18,000
51917a4b832c2a0b685660a14e7a08fcc5e27042
Support array of eliglble URL paths in a single template: permalink: serverless: - "/creators/:name/" - "/authors/:name/"
[ { "change_type": "MODIFY", "old_path": "src/Plugins/ServerlessBundlerPlugin.js", "new_path": "src/Plugins/ServerlessBundlerPlugin.js", "diff": "@@ -262,20 +262,26 @@ function EleventyPlugin(eleventyConfig, options = {}) {\nfor (let entry of templateMap) {\nfor (let key in entry.serverless) {\n- if (...
JavaScript
MIT License
11ty/eleventy
Support array of eliglble URL paths in a single template: permalink: serverless: - "/creators/:name/" - "/authors/:name/"
699
09.06.2021 07:44:53
18,000
86be192faeafe5fe96681c431a449a78c9b9887c
Casing on file name
[ { "change_type": "MODIFY", "old_path": "src/Plugins/ServerlessBundlerPlugin.js", "new_path": "src/Plugins/ServerlessBundlerPlugin.js", "diff": "@@ -116,7 +116,7 @@ class BundlerHelper {\nwriteDependencyGlobalDataFile(globalDataFileList) {\nlet modules = getNodeModulesList(globalDataFileList);\nthis....
JavaScript
MIT License
11ty/eleventy
Casing on file name
699
09.06.2021 07:54:52
18,000
6c9e32ff2765c9dfe3e2df056d5e2ac85eea5b2d
Removes bad chdir
[ { "change_type": "MODIFY", "old_path": "src/Serverless.js", "new_path": "src/Serverless.js", "diff": "@@ -106,11 +106,6 @@ class Serverless {\n}\nasync render() {\n- // TODO is this necessary?\n- if (this.dir.startsWith(\"/var/task/\")) {\n- process.chdir(this.dir);\n- }\n-\nlet inputDir = path.join...
JavaScript
MIT License
11ty/eleventy
Removes bad chdir
699
09.06.2021 08:02:55
18,000
b7f895c929fd7a9817f79fcecfc344526c36ff29
Work with chdir
[ { "change_type": "MODIFY", "old_path": "src/Serverless.js", "new_path": "src/Serverless.js", "diff": "@@ -42,6 +42,7 @@ class Serverless {\nlet paths = [\npath.join(TemplatePath.getWorkingDir(), dir), // netlify dev\npath.join(\"/var/task/src/\", dir), // AWS Lambda absolute path\n+ path.join(Templa...
JavaScript
MIT License
11ty/eleventy
Work with chdir
699
10.06.2021 08:28:15
18,000
9264b181227282df1d2a2b566b4de7543d3732b0
Fix for URLs with query parameters on localhost
[ { "change_type": "MODIFY", "old_path": "src/Plugins/ServerlessBundlerPlugin.js", "new_path": "src/Plugins/ServerlessBundlerPlugin.js", "diff": "@@ -4,6 +4,7 @@ const TOML = require(\"@iarna/toml\");\nconst copy = require(\"recursive-copy\");\nconst dependencyTree = require(\"@11ty/dependency-tree\")...
JavaScript
MIT License
11ty/eleventy
Fix for URLs with query parameters on localhost
699
10.06.2021 08:47:15
18,000
3482dac153505b624187015f86ba92912b24f6d1
Cache fs.stat calls for dates
[ { "change_type": "MODIFY", "old_path": "src/Template.js", "new_path": "src/Template.js", "diff": "@@ -832,6 +832,24 @@ class Template extends TemplateContent {\nreturn this.skippedCount;\n}\n+ async getInputFileStat() {\n+ if (this._stats) {\n+ return this._stats;\n+ }\n+\n+ this._stats = new Promis...
JavaScript
MIT License
11ty/eleventy
Cache fs.stat calls for dates
699
10.06.2021 20:21:30
18,000
d16a556b32282f50bba25bfdadf7106d17474ebb
Add global copyOptions to serverless bundler plugin options and an `options` prop in the copy object `{ from: "", to: "", options: {} }`
[ { "change_type": "MODIFY", "old_path": "src/Plugins/ServerlessBundlerPlugin.js", "new_path": "src/Plugins/ServerlessBundlerPlugin.js", "diff": "@@ -82,14 +82,22 @@ class BundlerHelper {\nthis.copyCount++;\n}\n- recursiveCopy(src, dest) {\n+ recursiveCopy(src, dest, options = {}) {\nlet finalDest = t...
JavaScript
MIT License
11ty/eleventy
Add global copyOptions to serverless bundler plugin options and an `options` prop in the copy object `{ from: "", to: "", options: {} }`
699
11.06.2021 13:22:40
18,000
6f9732368a67ed4a9be1a396c9137dcb0fa76a52
Pass `pathname` in with global data.
[ { "change_type": "MODIFY", "old_path": "src/Serverless.js", "new_path": "src/Serverless.js", "diff": "@@ -145,6 +145,7 @@ class Serverless {\n// Add the params to Global Data\neleventyConfig.addGlobalData(\"eleventy.serverless\", {\n+ pathname: this.path,\nquery: this.options.query,\npath: pathParam...
JavaScript
MIT License
11ty/eleventy
Pass `pathname` in with global data.
699
11.06.2021 22:02:16
18,000
d19257350887c9f670f8652039555d9460f69f79
Fix for missing serverless URLs in serverlessUrlMap event on pagination templates with empty data (and no pages)
[ { "change_type": "MODIFY", "old_path": "src/Template.js", "new_path": "src/Template.js", "diff": "@@ -151,6 +151,17 @@ class Template extends TemplateContent {\nreturn this.serverlessUrls;\n}\n+ initServerlessUrlsForEmptyPaginationTemplates(permalinkValue) {\n+ if (isPlainObject(permalinkValue)) {\n...
JavaScript
MIT License
11ty/eleventy
Fix for missing serverless URLs in serverlessUrlMap event on pagination templates with empty data (and no pages)