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
11.05.2022 10:15:52
18,000
eed47c33c1c7b94a5504dc1ce05b3b56771f4984
Trim those extensions
[ { "change_type": "MODIFY", "old_path": "src/UserConfig.js", "new_path": "src/UserConfig.js", "diff": "@@ -768,7 +768,8 @@ class UserConfig {\nparser = options.parser;\n}\n- for (let extension of extensionList.split(\",\")) {\n+ let extensions = extensionList.split(\",\").map((s) => s.trim());\n+ for...
JavaScript
MIT License
11ty/eleventy
Trim those extensions #2378
699
11.05.2022 17:12:42
18,000
ff6bd8d611541c3f789b7d8e0ec7e9db3b407c6d
Updates to defer to approach from
[ { "change_type": "MODIFY", "old_path": "test/PaginationTest.js", "new_path": "test/PaginationTest.js", "diff": "@@ -64,7 +64,7 @@ test(\"Empty paged data\", async (t) => {\nt.is((await paging.getPageTemplates()).length, 0);\n});\n-test(\"Empty paged data with pageOnEmptyData enabled\", async (t) => ...
JavaScript
MIT License
11ty/eleventy
Updates #1698 to defer to approach from #2208
699
12.05.2022 07:51:03
18,000
b185c53121825897acf63c3d04bc480adeafc5ed
Another dep update
[ { "change_type": "MODIFY", "old_path": "docs/release-instructions.md", "new_path": "docs/release-instructions.md", "diff": "-# List of dependencies that went ESM\n+# Dependency notes\n+\n+- `@iarna/toml` has a 3.0 that we have never been on but it was released the same day as the last 2.x https://gi...
JavaScript
MIT License
11ty/eleventy
Another dep update
699
12.05.2022 08:18:22
18,000
e88624b778acf485d7766004a2dc72dc9fffe0e1
Moved a test function into the test code
[ { "change_type": "MODIFY", "old_path": "src/Template.js", "new_path": "src/Template.js", "diff": "@@ -711,19 +711,6 @@ class Template extends TemplateContent {\n}\n}\n- // TODO move this into tests (this is only used by tests)\n- async getRenderedTemplates(data) {\n- let pages = await this.getTempla...
JavaScript
MIT License
11ty/eleventy
Moved a test function into the test code
699
12.05.2022 16:28:42
18,000
fbf2037cf25a0ff44b4fd0df98f90a5438e9d2cb
Fixes Use a dependency graph to manage config dependencies so we know when to reload the config.
[ { "change_type": "MODIFY", "old_path": "src/Eleventy.js", "new_path": "src/Eleventy.js", "diff": "@@ -649,6 +649,28 @@ Arguments:\nthis.watchManager.addToPendingQueue(changedFilePath);\n}\n+ _shouldResetConfig() {\n+ let configFilePath = this.eleventyConfig.getLocalProjectConfigFile();\n+ let config...
JavaScript
MIT License
11ty/eleventy
Fixes #1052. Use a dependency graph to manage config dependencies so we know when to reload the config.
699
13.05.2022 10:25:19
18,000
457884601363fe235977ec1af4c09a3408a08be9
Refactor addGlobalData fetching into a separate class so we can reuse it on Edge
[ { "change_type": "MODIFY", "old_path": "src/TemplateData.js", "new_path": "src/TemplateData.js", "diff": "-const pkg = require(\"../package.json\");\nconst fs = require(\"fs\");\nconst fastglob = require(\"fast-glob\");\nconst path = require(\"path\");\nconst lodashset = require(\"lodash/set\");\nco...
JavaScript
MIT License
11ty/eleventy
Refactor addGlobalData fetching into a separate class so we can reuse it on Edge
699
18.05.2022 15:47:03
18,000
1db6a10a98f35b6f6bcac94222cdd8597e6f7928
Serverless middleware no longer runs res.end() (and does run `next`) to let downstream middlewares consume or modify the output. More context at
[ { "change_type": "MODIFY", "old_path": "src/Plugins/ServerlessBundlerPlugin.js", "new_path": "src/Plugins/ServerlessBundlerPlugin.js", "diff": "@@ -167,11 +167,19 @@ class BundlerHelper {\nres.writeHead(result.statusCode, result.headers || {});\nres.write(result.body);\n- res.end();\nthis.eleventyCo...
JavaScript
MIT License
11ty/eleventy
Serverless middleware no longer runs res.end() (and does run `next`) to let downstream middlewares consume or modify the output. More context at https://github.com/11ty/eleventy-dev-server/issues/29
699
16.06.2022 08:49:08
18,000
83c90bfc0340a5983a8b9a8b5bc2f4a4fe7f190f
Saw some error stack traces on the tracker where e.message was not a string
[ { "change_type": "MODIFY", "old_path": "src/EleventyErrorUtil.js", "new_path": "src/EleventyErrorUtil.js", "diff": "@@ -72,7 +72,7 @@ class EleventyErrorUtil {\ne.originalError.name === \"UndefinedVariableError\") &&\ne.originalError.originalError instanceof\nTemplateContentPrematureUseError) || // ...
JavaScript
MIT License
11ty/eleventy
Saw some error stack traces on the tracker where e.message was not a string
699
16.06.2022 11:59:13
18,000
1bdbd2441cc240af29d6ae633247d7a407411d53
Fixes Adds new `amendLibrary` configuration API method to alter both default or custom library instances (set via setLibrary)
[ { "change_type": "MODIFY", "old_path": "src/Engines/Markdown.js", "new_path": "src/Engines/Markdown.js", "diff": "@@ -24,6 +24,9 @@ class Markdown extends TemplateEngine {\n});\n}\n+ // Disable indented code blocks by default (Issue #2438)\n+ this.mdLib.disable(\"code\");\n+\nthis.setEngineLib(this....
JavaScript
MIT License
11ty/eleventy
Fixes #2438. Adds new `amendLibrary` configuration API method to alter both default or custom library instances (set via setLibrary)
699
16.06.2022 12:18:30
18,000
e65e9d2a465078d4b8ea755435508a6daf9150ac
Two more tests for
[ { "change_type": "MODIFY", "old_path": "test/TemplateRenderMarkdownTest.js", "new_path": "test/TemplateRenderMarkdownTest.js", "diff": "@@ -379,6 +379,22 @@ test(\"Markdown Render: use amendLibrary to re-enable indented code blocks. Issue\nlet tr = getNewTemplateRender(\"md\", null, eleventyConfig);...
JavaScript
MIT License
11ty/eleventy
Two more tests for #2438
699
17.06.2022 10:19:51
18,000
5a00a5946b868ee82f6a09590fb7d4c8625117ac
Update Eleventy Edge to version 2, read more:
[ { "change_type": "MODIFY", "old_path": "src/Plugins/EdgePlugin.js", "new_path": "src/Plugins/EdgePlugin.js", "diff": "@@ -193,7 +193,7 @@ function EleventyEdgePlugin(eleventyConfig, opts = {}) {\nfunctionsDir: \"./netlify/edge-functions/\",\n// for the default Deno import\n- eleventyEdgeVersion: \"1...
JavaScript
MIT License
11ty/eleventy
Update Eleventy Edge to version 2, read more: https://github.com/11ty/eleventy/issues/2422#issuecomment-1158913315
699
22.06.2022 14:14:04
18,000
d628e33a628cc13f354bb68e126c260613cc6d0e
Filed remaining work from as a separate issue [skip ci]
[ { "change_type": "MODIFY", "old_path": "src/TemplatePassthroughManager.js", "new_path": "src/TemplatePassthroughManager.js", "diff": "@@ -123,7 +123,7 @@ class TemplatePassthroughManager {\npass.setDryRun(this.isDryRun);\n- // TODO https://github.com/11ty/eleventy/issues/2174#issuecomment-1162420197...
JavaScript
MIT License
11ty/eleventy
Filed remaining work from #2174 as a separate issue [skip ci]
699
23.06.2022 16:58:33
18,000
2dc27703fdb12839968bec0080f35aa517dbea0d
Adds eleventyConfig.setServerPassthroughCopyBehavior("copy"); configuration API method to revert to previous passthrough copy file copy behavior for
[ { "change_type": "MODIFY", "old_path": "src/Eleventy.js", "new_path": "src/Eleventy.js", "diff": "@@ -977,6 +977,7 @@ Arguments:\nawait watchRun(path);\n});\n+ if (this.config.serverPassthroughCopyBehavior === \"passthrough\") {\n// Separate watcher for passthrough copy, we only want to trigger a se...
JavaScript
MIT License
11ty/eleventy
Adds eleventyConfig.setServerPassthroughCopyBehavior("copy"); configuration API method to revert to previous passthrough copy file copy behavior for #2456
699
24.06.2022 16:16:33
18,000
b8076f3c877e5e31fedf027050f866fb29e773c3
Better fix for Fixes
[ { "change_type": "MODIFY", "old_path": "src/TemplatePassthrough.js", "new_path": "src/TemplatePassthrough.js", "diff": "@@ -67,10 +67,14 @@ class TemplatePassthrough {\nTemplatePath.join(outputDir, outputPath)\n);\n- if (this.isIncremental && TemplatePath.isDirectorySync(fullOutputPath)) {\n+ if (\n...
JavaScript
MIT License
11ty/eleventy
Better fix for #2278. Fixes #1038
699
24.06.2022 17:03:18
18,000
631c881f8356a3e6665b6f5f91283ae5fb28f9f5
A few more style tweaks for
[ { "change_type": "MODIFY", "old_path": "src/TemplatePassthrough.js", "new_path": "src/TemplatePassthrough.js", "diff": "@@ -44,7 +44,7 @@ class TemplatePassthrough {\n}\ngetOutputPath(inputFileFromGlob) {\n- const { inputDir, outputDir, outputPath, inputPath } = this;\n+ let { inputDir, outputDir, o...
JavaScript
MIT License
11ty/eleventy
A few more style tweaks for #1686
699
29.06.2022 14:56:14
18,000
fc6fc96707ad9ca062622ea11e0c092b666372a9
Fixes addings `.git/**` to the default list of ignores.
[ { "change_type": "MODIFY", "old_path": "src/UserConfig.js", "new_path": "src/UserConfig.js", "diff": "@@ -68,6 +68,7 @@ class UserConfig {\nthis.useGitIgnore = true;\nthis.ignores = new Set();\nthis.ignores.add(\"node_modules/**\");\n+ this.ignores.add(\".git/**\");\nthis.dataDeepMerge = true;\nthis...
JavaScript
MIT License
11ty/eleventy
Fixes #2394 addings `.git/**` to the default list of ignores.
684
30.06.2022 19:48:33
-7,200
5f721af395fd8c8af4aed86c6a674eb3498eb182
Rename data to messages
[ { "change_type": "MODIFY", "old_path": "src/defaultConfig.js", "new_path": "src/defaultConfig.js", "diff": "@@ -14,8 +14,8 @@ module.exports = function (config) {\nlet pathPrefix = pathPrefixOverride || templateConfig.getPathPrefix();\nreturn urlFilter.call(this, url, pathPrefix);\n});\n- config.add...
JavaScript
MIT License
11ty/eleventy
Rename data to messages
699
30.06.2022 15:44:11
18,000
36383ba28228a7b5fb96198ed65c5d0c9e5b8862
Tweak to for ci
[ { "change_type": "MODIFY", "old_path": "test/EleventyFilesGitIgnoreEleventyIgnoreTest.js", "new_path": "test/EleventyFilesGitIgnoreEleventyIgnoreTest.js", "diff": "@@ -326,7 +326,7 @@ test(\"De-duplicated ignores\", (t) => {\nt.deepEqual(evf.getIgnores(), [\n\"./test/stubs/ignore-dedupe/node_modules...
JavaScript
MIT License
11ty/eleventy
Tweak to #2472 for ci
699
01.07.2022 11:03:09
18,000
6873099e537f04aa903a950ea903f046f8827697
Cleanup the static methods littered throughout
[ { "change_type": "MODIFY", "old_path": "test/TemplatePermalinkTest.js", "new_path": "test/TemplatePermalinkTest.js", "diff": "const test = require(\"ava\");\nconst TemplatePermalink = require(\"../src/TemplatePermalink\");\n+const { generate } = TemplatePermalink;\ntest(\"Simple straight permalink\"...
JavaScript
MIT License
11ty/eleventy
Cleanup the static methods littered throughout
699
01.07.2022 11:58:05
18,000
93f690c1a4bb3238b03dfde0b2c67c2211959803
Duplicates should be tied to output paths not urls
[ { "change_type": "MODIFY", "old_path": "src/TemplateMap.js", "new_path": "src/TemplateMap.js", "diff": "@@ -632,8 +632,8 @@ class TemplateMap {\nfor (let page of entry._pages) {\nif (page.outputPath === false || page.url === false) {\n// do nothing (also serverless)\n- } else if (!permalinks[page.ur...
JavaScript
MIT License
11ty/eleventy
Duplicates should be tied to output paths not urls
699
01.07.2022 16:49:34
18,000
22e8a02744a6e874802fc02b0336a2b2dcc4910f
Fix with great analysis and assist from
[ { "change_type": "MODIFY", "old_path": "src/Engines/Nunjucks.js", "new_path": "src/Engines/Nunjucks.js", "diff": "@@ -190,7 +190,10 @@ class Nunjucks extends TemplateEngine {\nshortcodeFn\n.call(Nunjucks._normalizeShortcodeContext(context), ...argArray)\n.then(function (returnValue) {\n- resolve(nul...
JavaScript
MIT License
11ty/eleventy
Fix #856 with great analysis and assist from @KyleMit!
699
01.07.2022 17:46:03
18,000
dc7993958779850b720c42bc1ae424974177fabf
Add url transforms feature for
[ { "change_type": "MODIFY", "old_path": "src/Template.js", "new_path": "src/Template.js", "diff": "@@ -171,6 +171,8 @@ class Template extends TemplateContent {\npermalinkValue,\nthis.extraOutputSubdirectory\n);\n+ perm.setUrlTransforms(this.config.urlTransforms);\n+\nif (this.templateData) {\nperm.se...
JavaScript
MIT License
11ty/eleventy
Add url transforms feature for https://github.com/11ty/eleventy/issues/761
681
03.07.2022 00:52:15
-19,080
d6b5af189cd10148ce01ddef4cb6bf6004c7e251
ci: use node matrix
[ { "change_type": "MODIFY", "old_path": ".github/workflows/ci.yml", "new_path": ".github/workflows/ci.yml", "diff": "@@ -15,7 +15,7 @@ jobs:\n- name: Setup node\nuses: actions/setup-node@v3\nwith:\n- node-version: '16.x'\n+ node-version: ${{ matrix.node }}\n# cache: npm\n- run: npm install\n- run: np...
JavaScript
MIT License
11ty/eleventy
ci: use node matrix
699
08.07.2022 17:19:54
18,000
333279db9ca8376b1614119b5c40affedd136be4
Initial commit of the i18n plugin (utils for i18n permalinks and urls)
[ { "change_type": "MODIFY", "old_path": "src/Eleventy.js", "new_path": "src/Eleventy.js", "diff": "@@ -1162,3 +1162,4 @@ module.exports.EleventyServerless = require(\"./Serverless\");\nmodule.exports.EleventyServerlessBundlerPlugin = require(\"./Plugins/ServerlessBundlerPlugin\");\nmodule.exports.Ele...
JavaScript
MIT License
11ty/eleventy
Initial commit of the i18n plugin (utils for i18n permalinks and urls)
699
11.07.2022 12:13:23
18,000
39a19c385d7244bf0c2ddd16c82846348005a843
Use `url` and `urlStem` for url transforms, not output path.
[ { "change_type": "MODIFY", "old_path": "src/TemplatePermalink.js", "new_path": "src/TemplatePermalink.js", "diff": "@@ -102,6 +102,34 @@ class TemplatePermalink {\n);\n}\n+ // Used in url transforms feature\n+ static getUrlStem(original) {\n+ let subject = original;\n+ if (original.endsWith(\".html\...
JavaScript
MIT License
11ty/eleventy
Use `url` and `urlStem` for url transforms, not output path.
699
11.07.2022 12:13:52
18,000
3ec9fd062efead936e35af9328ca5a5dc9ace269
More tests for i18n plugin
[ { "change_type": "MODIFY", "old_path": "src/Filters/Url.js", "new_path": "src/Filters/Url.js", "diff": "@@ -15,7 +15,7 @@ module.exports = function (url, pathPrefix) {\n// work with undefined\nurl = url || \"\";\n- if (isValidUrl(url) || (url.indexOf(\"//\") === 0 && url !== \"//\")) {\n+ if (isVali...
JavaScript
MIT License
11ty/eleventy
More tests for i18n plugin
699
11.07.2022 15:08:16
18,000
384960320be77d934c35d109c44b11b8dbc2b589
Standardize on BCP47 and ISO 639 language codes
[ { "change_type": "MODIFY", "old_path": "package.json", "new_path": "package.json", "diff": "\"@11ty/eleventy-utils\": \"^1.0.1\",\n\"@iarna/toml\": \"^2.2.5\",\n\"@sindresorhus/slugify\": \"^1.1.2\",\n+ \"bcp-47-normalize\": \"^1.1.1\",\n\"chokidar\": \"^3.5.3\",\n\"cross-spawn\": \"^7.0.3\",\n\"deb...
JavaScript
MIT License
11ty/eleventy
Standardize on BCP47 and ISO 639 language codes
699
11.07.2022 15:09:01
18,000
b251f4685039ad4cd4cb0259dced514bb3804e01
Switch to ava 4, works fine with Node 18 (I had problems on my machine with Node 16)
[ { "change_type": "MODIFY", "old_path": "package.json", "new_path": "package.json", "diff": "\"@11ty/eleventy-plugin-syntaxhighlight\": \"^4.0.0\",\n\"@11ty/eleventy-plugin-vue\": \"1.0.0-canary.8\",\n\"@vue/server-renderer\": \"^3.2.33\",\n- \"ava\": \"^3.15.0\",\n+ \"ava\": \"^4.3.1\",\n\"husky\": ...
JavaScript
MIT License
11ty/eleventy
Switch to ava 4, works fine with Node 18 (I had problems on my machine with Node 16)
723
12.07.2022 13:58:36
-7,200
8d60d170e86bada0366e7149adf878900f91e38a
Ignore nested node modules by default
[ { "change_type": "MODIFY", "old_path": "src/EleventyFiles.js", "new_path": "src/EleventyFiles.js", "diff": "@@ -118,7 +118,7 @@ class EleventyFiles {\n_setConfig(config) {\nif (!config.ignores) {\nconfig.ignores = new Set();\n- config.ignores.add(\"node_modules/**\");\n+ config.ignores.add(\"**/node...
JavaScript
MIT License
11ty/eleventy
Ignore nested node modules by default
699
13.07.2022 12:41:10
18,000
bef78010c37cce6219d940acf4446ddd95ffbe40
Major changes to the i18n plugin. Better validation, no default language (must be specified), more robust code for our two filters.
[ { "change_type": "MODIFY", "old_path": "package.json", "new_path": "package.json", "diff": "\"hamljs\": \"^0.6.2\",\n\"handlebars\": \"^4.7.7\",\n\"is-glob\": \"^4.0.3\",\n+ \"iso-639-1\": \"^2.1.15\",\n\"kleur\": \"^4.1.4 \",\n\"liquidjs\": \"^9.37.0\",\n\"lodash\": \"^4.17.21\",\n" }, { "c...
JavaScript
MIT License
11ty/eleventy
Major changes to the i18n plugin. Better validation, no default language (must be specified), more robust code for our two filters.
699
13.07.2022 15:40:15
18,000
91cd7514c9c73fc1e7f04bb6573d68ea3e677de3
Adds `11ty.i18n.getLocaleRootPage` internal filter to make get*CollectionItem filters work automatically with the i18n plugin.
[ { "change_type": "MODIFY", "old_path": "src/Plugins/I18nPlugin.js", "new_path": "src/Plugins/I18nPlugin.js", "diff": "@@ -11,6 +11,24 @@ const bcp47Normalize = require(\"bcp-47-normalize\");\nconst iso639 = require(\"iso-639-1\");\nclass Comparator {\n+ static swapLanguageCode(str, langCode) {\n+ if...
JavaScript
MIT License
11ty/eleventy
Adds `11ty.i18n.getLocaleRootPage` internal filter to make get*CollectionItem filters work automatically with the i18n plugin.
699
13.07.2022 17:23:42
18,000
186a9e3527605c2fdf7781e8eec3cc814b8c7974
Another i18n plugin refactor. Adds `locale_url` feature to support mismatched urls via permalink customization and support urls where the language code is already added.
[ { "change_type": "MODIFY", "old_path": "src/TemplateMap.js", "new_path": "src/TemplateMap.js", "diff": "@@ -399,10 +399,8 @@ class TemplateMap {\nlet entries = {};\nfor (let entry of orderedMap) {\nfor (let page of entry._pages) {\n- if (!entries[page.url]) {\n- entries[page.url] = [];\n- }\n- entri...
JavaScript
MIT License
11ty/eleventy
Another i18n plugin refactor. Adds `locale_url` feature to support mismatched urls via permalink customization and support urls where the language code is already added.
699
14.07.2022 09:26:46
18,000
6394d1db7ae2c62624d0a145abd5cfe50dc45307
More i18n plugin refactors (status commit)
[ { "change_type": "MODIFY", "old_path": "src/Filters/GetCollectionItem.js", "new_path": "src/Filters/GetCollectionItem.js", "diff": "@@ -4,7 +4,7 @@ module.exports = function getCollectionItem(collection, page, modifier = 0) {\nfor (let item of collection) {\nif (\nitem.inputPath === page.inputPath &...
JavaScript
MIT License
11ty/eleventy
More i18n plugin refactors (status commit)
699
14.07.2022 09:46:40
18,000
3c51e90c8dd97b8a11b29115c1529696239f98e3
i18n plugin: Pass url (not input path) to locale_links allows us to delete a bunch of code
[ { "change_type": "MODIFY", "old_path": "test/stubs-i18n/en-us/index.11ty.js", "new_path": "test/stubs-i18n/en-us/index.11ty.js", "diff": "module.exports = function (data) {\nreturn `${this.locale_url(\"/\")}\n+${this.locale_url(\"/en-us/\")}\n+${this.locale_url(\"/es/\")}\n${this.locale_url(\"/\", \...
JavaScript
MIT License
11ty/eleventy
i18n plugin: Pass url (not input path) to locale_links allows us to delete a bunch of code
699
14.07.2022 16:25:20
18,000
664d2aecf3db0c7a037cc588734a5582c6b0e44f
Eleventy core fix for
[ { "change_type": "MODIFY", "old_path": "src/EleventyServe.js", "new_path": "src/EleventyServe.js", "diff": "@@ -22,6 +22,7 @@ class EleventyServe {\nconstructor() {\nthis.logger = new ConsoleLogger(true);\nthis._initOptionsFetched = false;\n+ this._pendingAliases = {};\n}\nget config() {\n@@ -39,6 +...
JavaScript
MIT License
11ty/eleventy
Eleventy core fix for https://github.com/11ty/eleventy-plugin-vite/issues/8
699
15.07.2022 10:24:33
18,000
d9b5db53c4c4b4868dc0d87f7f317f8792a6a718
Update deps for 2.0.0-canary.13
[ { "change_type": "MODIFY", "old_path": "docs/release-instructions.md", "new_path": "docs/release-instructions.md", "diff": "- `@sindresorhus/slugify` ESM at 2.x\n- `multimatch` is ESM at 6\n+- `bcp-47-normalize` at 1.x\n# Canary Release Procedure\n" }, { "change_type": "MODIFY", "old_pat...
JavaScript
MIT License
11ty/eleventy
Update deps for 2.0.0-canary.13
699
15.07.2022 17:06:56
18,000
91724d180f2c524e5c089d0e249f6347abcceaaf
Superfluous require
[ { "change_type": "MODIFY", "old_path": "src/defaultConfig.js", "new_path": "src/defaultConfig.js", "diff": "@@ -2,7 +2,6 @@ const urlFilter = require(\"./Filters/Url\");\nconst serverlessUrlFilter = require(\"./Filters/ServerlessUrl\");\nconst slugFilter = require(\"./Filters/Slug\");\nconst slugify...
JavaScript
MIT License
11ty/eleventy
Superfluous require
699
27.07.2022 11:08:53
18,000
dc2226d64a47a4d32de1adbe8b67933b0d4eb731
Bad order of operations.
[ { "change_type": "MODIFY", "old_path": "src/Filters/GetLocaleCollectionItem.js", "new_path": "src/Filters/GetLocaleCollectionItem.js", "diff": "@@ -42,7 +42,7 @@ function getLocaleCollectionItem(\nlangCode\n);\n// already localized (or default language)\n- if (!\"__locale_page_resolved\" in modified...
JavaScript
MIT License
11ty/eleventy
Bad order of operations.
699
27.07.2022 14:19:44
18,000
513e253e325db575b1fe7121f4ee8a4e518e5515
Adds `page.lang` when using i18n plugin! Fixes prerequisite of eleventy-base-blog
[ { "change_type": "MODIFY", "old_path": "test/stubs-i18n/en-us/index.11ty.js", "new_path": "test/stubs-i18n/en-us/index.11ty.js", "diff": "@@ -5,5 +5,6 @@ ${this.locale_url(\"/es/\")}\n${this.locale_url(\"/\", \"es\")}\n${this.locale_url(\"/non-lang-file/\")}\n${JSON.stringify(this.locale_links(data....
JavaScript
MIT License
11ty/eleventy
Adds `page.lang` when using i18n plugin! Fixes #2501 prerequisite of #243 eleventy-base-blog
699
27.07.2022 16:21:48
18,000
2bfeed79c98b4f189e9a5ae263cad63adb4a5616
Removes superflouous extra filters, adds support for page.lang in get*CollectionItem filters
[ { "change_type": "MODIFY", "old_path": "src/Filters/GetLocaleCollectionItem.js", "new_path": "src/Filters/GetLocaleCollectionItem.js", "diff": "const getCollectionItem = require(\"./GetCollectionItem\");\n-function getPageInFilter() {\n- return this.page || this.ctx?.page || this.context?.environmen...
JavaScript
MIT License
11ty/eleventy
Removes superflouous extra filters, adds support for page.lang in get*CollectionItem filters https://github.com/11ty/eleventy/issues/2501
699
27.07.2022 16:35:57
18,000
bd3e4a4a7482c3a306654ed83727a782a4180d4c
Test moving from toml package in skipped test to already in-use
[ { "change_type": "MODIFY", "old_path": "package.json", "new_path": "package.json", "diff": "\"prettier\": \"^2.7.1\",\n\"pretty\": \"^2.0.0\",\n\"rimraf\": \"^3.0.2\",\n- \"sass\": \"^1.53.0\",\n- \"toml\": \"^3.0.0\",\n+ \"sass\": \"^1.54.0\",\n\"vue\": \"^3.2.37\"\n},\n\"dependencies\": {\n" }, ...
JavaScript
MIT License
11ty/eleventy
Test moving from toml package in skipped test to already in-use @iarna/toml
699
10.08.2022 17:04:07
18,000
0bbc16dfc03eb773de33488dd1c7b1bb37f701be
Make `pathPrefix` available to plugins as `eleventyConfig.pathPrefix` Fixes
[ { "change_type": "MODIFY", "old_path": "cmd.js", "new_path": "cmd.js", "diff": "@@ -68,10 +68,11 @@ try {\nconsole.log(Eleventy.getHelp());\n} else {\nlet elev = new Eleventy(argv.input, argv.output, {\n+ source: \"cli\",\n// --quiet and --quiet=true both resolve to true\nquietMode: argv.quiet,\ncon...
JavaScript
MIT License
11ty/eleventy
Make `pathPrefix` available to plugins as `eleventyConfig.pathPrefix` Fixes https://github.com/11ty/eleventy/issues/2526
673
12.08.2022 00:30:16
-7,200
88cf1f3eb668c38d9296fef27112d49f13e1464a
Update `possible-bug.yml`
[ { "change_type": "MODIFY", "old_path": ".github/ISSUE_TEMPLATE/possible-bug.yml", "new_path": ".github/ISSUE_TEMPLATE/possible-bug.yml", "diff": "@@ -52,12 +52,12 @@ body:\nid: repro-url\nattributes:\nlabel: Reproduction URL\n- description: If applicable, please provide a URL to a reproduction.\n- p...
JavaScript
MIT License
11ty/eleventy
Update `possible-bug.yml`
684
16.08.2022 17:25:20
-7,200
51a04081a58e0ba8dfac47cdbf7acb9208049673
Remove "custom" labels.
[ { "change_type": "MODIFY", "old_path": "src/TemplateRender.js", "new_path": "src/TemplateRender.js", "diff": "@@ -163,12 +163,8 @@ class TemplateRender {\ngetReadableEnginesListDifferingFromFileExtension() {\nlet keyFromFilename = this.extensionMap.getKey(this.engineNameOrPath);\nif (this.engine ins...
JavaScript
MIT License
11ty/eleventy
Remove "custom" labels.
699
16.08.2022 10:49:59
18,000
19e36261f3ce67f7a8ca8a9c57e0cb648f52f4de
Fix windows test for i18n speed regression fix
[ { "change_type": "MODIFY", "old_path": "src/Plugins/I18nPlugin.js", "new_path": "src/Plugins/I18nPlugin.js", "diff": "@@ -13,9 +13,9 @@ const bcp47Normalize = require(\"bcp-47-normalize\");\nconst iso639 = require(\"iso-639-1\");\nclass LangUtils {\n- static getLanguageCodeFromFilePath(filepath) {\n...
JavaScript
MIT License
11ty/eleventy
Fix windows test for i18n speed regression fix
699
16.08.2022 11:21:47
18,000
ae2b6fa9681dae1e57b58d2d9961d2250d16ac5a
Prefer .js config files over .cjs by default
[ { "change_type": "MODIFY", "old_path": "src/TemplateConfig.js", "new_path": "src/TemplateConfig.js", "diff": "@@ -55,8 +55,8 @@ class TemplateConfig {\n*/\nthis.projectConfigPaths = [\n\".eleventy.js\",\n- \".eleventy.cjs\",\n\"eleventy.config.js\",\n+ \".eleventy.cjs\",\n\"eleventy.config.cjs\",\n]...
JavaScript
MIT License
11ty/eleventy
Prefer .js config files over .cjs by default #2464
699
16.08.2022 11:25:27
18,000
c1ed616d7fdb51338aa8e5805279a987a8b05e1a
Changed my mind about If you want .cjs use `eleventy.config.cjs` instead.
[ { "change_type": "MODIFY", "old_path": "src/TemplateConfig.js", "new_path": "src/TemplateConfig.js", "diff": "@@ -56,7 +56,6 @@ class TemplateConfig {\nthis.projectConfigPaths = [\n\".eleventy.js\",\n\"eleventy.config.js\",\n- \".eleventy.cjs\",\n\"eleventy.config.cjs\",\n];\nif (projectConfigPath !...
JavaScript
MIT License
11ty/eleventy
Changed my mind about #1028. If you want .cjs use `eleventy.config.cjs` instead.
699
16.08.2022 14:36:06
18,000
689abd0fab807bf287785e148ca6d125ed21a125
Adds require util to normalize removal from the require cache before requiring
[ { "change_type": "MODIFY", "old_path": "src/Eleventy.js", "new_path": "src/Eleventy.js", "diff": "@@ -276,7 +276,7 @@ class Eleventy {\n// reload package.json values (if applicable)\n// TODO only reset this if it changed\n- deleteRequireCache(TemplatePath.absolutePath(\"package.json\"));\n+ deleteRe...
JavaScript
MIT License
11ty/eleventy
Adds require util to normalize removal from the require cache before requiring
699
17.08.2022 10:05:57
18,000
821faedd33a9677a2ee1ca37e9408ea67c789a15
If user config returns a falsy pathPrefix, fall back to the default value
[ { "change_type": "MODIFY", "old_path": "src/TemplateConfig.js", "new_path": "src/TemplateConfig.js", "diff": "@@ -196,7 +196,7 @@ class TemplateConfig {\n* @returns {String} - The path prefix string\n*/\ngetPathPrefix() {\n- if (this.overrides.pathPrefix || this.overrides.pathPrefix === \"\") {\n+ i...
JavaScript
MIT License
11ty/eleventy
If user config returns a falsy pathPrefix, fall back to the default value
699
17.08.2022 10:57:26
18,000
9bbdcd72c9d7cb1e5858d83ad6bba86e06ce2c07
Improvements to Async Filters in Nunjucks 1. Adds a new `addAsyncFilter` configuration API method 2. Adds support for `async function` on standard `addFilter` method in Nunjucks 3. Throws an error if you return a promise from a `function` when using `addFilter` with Nunjucks Fixes Fixes Fixes
[ { "change_type": "MODIFY", "old_path": "src/UserConfig.js", "new_path": "src/UserConfig.js", "diff": "@@ -10,6 +10,8 @@ const pkg = require(\"../package.json\");\nclass UserConfigError extends EleventyBaseError {}\n+const ComparisonAsyncFunction = (async () => {}).constructor;\n+\n// API to expose c...
JavaScript
MIT License
11ty/eleventy
Improvements to Async Filters in Nunjucks 1. Adds a new `addAsyncFilter` configuration API method 2. Adds support for `async function` on standard `addFilter` method in Nunjucks 3. Throws an error if you return a promise from a `function` when using `addFilter` with Nunjucks Fixes #1382 Fixes #2536 Fixes #2254
699
17.08.2022 11:35:39
18,000
972e9fbbf27a86ac919f33759190407f9a69732f
Fix for to allow multiple arguments
[ { "change_type": "MODIFY", "old_path": "src/UserConfig.js", "new_path": "src/UserConfig.js", "diff": "@@ -242,13 +242,14 @@ class UserConfig {\n// This method *requires* `async function` and will not work with `function` that returns a promise\nif (callback instanceof ComparisonAsyncFunction) {\n- t...
JavaScript
MIT License
11ty/eleventy
Fix for #2536 to allow multiple arguments
699
18.08.2022 15:39:19
18,000
5e36ca3c71f4c952ac567961493122e6feb8da84
Fix to i18n plugin to handle pagination templates Match only one entry per language per pagination template
[ { "change_type": "MODIFY", "old_path": "src/Plugins/I18nPlugin.js", "new_path": "src/Plugins/I18nPlugin.js", "diff": "@@ -129,6 +129,7 @@ function normalizeInputPath(inputPath, extensionMap) {\n*/\nfunction getLocaleUrlsMap(urlToInputPath, extensionMap) {\nlet filemap = {};\n+ let paginationTemplate...
JavaScript
MIT License
11ty/eleventy
Fix to i18n plugin to handle pagination templates Match only one entry per language per pagination template
699
18.08.2022 15:40:05
18,000
216beab159beff6bda35704ec581698e75a7b06c
Add `this.url` to linters and transforms
[ { "change_type": "MODIFY", "old_path": "src/Template.js", "new_path": "src/Template.js", "diff": "@@ -479,13 +479,15 @@ class Template extends TemplateContent {\nthis.linters.push(callback);\n}\n- async runLinters(str, inputPath, outputPath) {\n+ async runLinters(str, page) {\n+ let { inputPath, out...
JavaScript
MIT License
11ty/eleventy
Add `this.url` to linters and transforms
699
18.08.2022 15:42:58
18,000
8dd2a1012de92c5ee1eab7c37e6bf1b36183927e
New HTML <base> plugin Adds filter to modify URLs directly (or URLs in arbitrary HTML) for arbitrary <base> preprocessing, pathPrefix, or absolute URL conversion for RSS/Atom/JSON feeds. Adds transform to apply pathPrefix automatically to any .html output (if pathPrefix is used)
[ { "change_type": "MODIFY", "old_path": "package.json", "new_path": "package.json", "diff": "\"nunjucks\": \"^3.2.3\",\n\"path-to-regexp\": \"^6.2.1\",\n\"please-upgrade-node\": \"^3.2.0\",\n+ \"posthtml\": \"^0.16.6\",\n+ \"posthtml-urls\": \"^1.0.0\",\n\"pug\": \"^3.0.2\",\n\"recursive-copy\": \"^2...
JavaScript
MIT License
11ty/eleventy
New HTML <base> plugin Adds filter to modify URLs directly (or URLs in arbitrary HTML) for arbitrary <base> preprocessing, pathPrefix, or absolute URL conversion for RSS/Atom/JSON feeds. Adds transform to apply pathPrefix automatically to any .html output (if pathPrefix is used)
699
18.08.2022 16:32:17
18,000
a9e7cb7587f960b38e8d65dc7d180b0c7f9c5765
Minor option rename for base html plugin
[ { "change_type": "MODIFY", "old_path": "src/Plugins/HtmlBasePlugin.js", "new_path": "src/Plugins/HtmlBasePlugin.js", "diff": "@@ -71,7 +71,7 @@ module.exports = function (eleventyConfig, defaultOptions = {}) {\n// eleventyConfig.pathPrefix is new in Eleventy 2.0.0-canary.15\n// `base` can be a direc...
JavaScript
MIT License
11ty/eleventy
Minor option rename for base html plugin
699
19.08.2022 10:43:05
18,000
dc8417d6eb558c6b20e830a7274b39fbd585a1f0
Base plugin tweaks, allow opt-out of transform using falsy extensions
[ { "change_type": "MODIFY", "old_path": "src/Plugins/HtmlBasePlugin.js", "new_path": "src/Plugins/HtmlBasePlugin.js", "diff": "@@ -75,11 +75,11 @@ module.exports = function (eleventyConfig, defaultOptions = {}) {\nextensions: \"html\",\n- name: \"eleventy-htmlBaseWithPathPrefix\",\n+ name: \"htmlBase...
JavaScript
MIT License
11ty/eleventy
Base plugin tweaks, allow opt-out of transform using falsy extensions
699
22.08.2022 11:47:44
18,000
a315cb538b94753cce6a3ec971c55ac06db9f781
Testing async filters on nunjucks
[ { "change_type": "MODIFY", "old_path": "test/TemplateRenderNunjucksTest.js", "new_path": "test/TemplateRenderNunjucksTest.js", "diff": "@@ -1108,3 +1108,40 @@ test(\"addAsyncFilter for Nunjucks\", async (t) => {\nlet fn = await tr.getCompiledTemplate(\"<p>{{ 10 | fortytwo(2) }}</p>\");\nt.is(await f...
JavaScript
MIT License
11ty/eleventy
Testing #1913 async filters on nunjucks
699
22.09.2022 11:37:28
18,000
9bc7cf091001b7d833e2cd0be775aa086629db8a
Pin liquidjs for
[ { "change_type": "MODIFY", "old_path": "package.json", "new_path": "package.json", "diff": "\"is-glob\": \"^4.0.3\",\n\"iso-639-1\": \"^2.1.15\",\n\"kleur\": \"^4.1.5\",\n- \"liquidjs\": \"^9.40.0\",\n+ \"liquidjs\": \"9.41.0\",\n\"lodash\": \"^4.17.21\",\n\"luxon\": \"^3.0.1\",\n\"markdown-it\": \"...
JavaScript
MIT License
11ty/eleventy
Pin liquidjs for #2571
699
22.09.2022 11:37:56
18,000
ea7414069ca0afd44271c48d9e6b0487dbf7ff52
Changing to more specific default cache key for custom templates.
[ { "change_type": "MODIFY", "old_path": "src/Engines/TemplateEngine.js", "new_path": "src/Engines/TemplateEngine.js", "diff": "@@ -191,7 +191,9 @@ class TemplateEngine {\n}\ngetCompileCacheKey(str, inputPath) {\n- return str;\n+ // Changing to use inputPath and contents, this created weird bugs when ...
JavaScript
MIT License
11ty/eleventy
Changing to more specific default cache key for custom templates.
699
22.09.2022 11:53:07
18,000
70320958ca255467b458e3f4fb2bb911ec2a3cd3
Adds `eleventy.layouts` event. Also swaps a few events to use new `emitLazy` method.
[ { "change_type": "MODIFY", "old_path": "src/TemplateMap.js", "new_path": "src/TemplateMap.js", "diff": "@@ -360,9 +360,11 @@ class TemplateMap {\n}.bind(this)\n);\n- await this.config.events.emit(\"eleventy.contentMap\", {\n+ await this.config.events.emitLazy(\"eleventy.contentMap\", () => {\n+ retu...
JavaScript
MIT License
11ty/eleventy
Adds `eleventy.layouts` event. Also swaps a few events to use new `emitLazy` method.
699
22.09.2022 15:12:34
18,000
830573c790d220232b75950f9df8c6f13be88a1a
Swap `eleventy.layouts` event to return a layouts map of layouts in use
[ { "change_type": "MODIFY", "old_path": "src/TemplateMap.js", "new_path": "src/TemplateMap.js", "diff": "@@ -375,7 +375,7 @@ class TemplateMap {\nthis.checkForDuplicatePermalinks();\nawait this.config.events.emitLazy(\"eleventy.layouts\", () =>\n- this.getListOfLayoutFiles()\n+ this.generateLayoutsMa...
JavaScript
MIT License
11ty/eleventy
Swap `eleventy.layouts` event to return a layouts map of layouts in use
699
16.11.2022 16:13:33
21,600
6710aaa00b83c09d09cdf714634cac1ec6b1a3fd
Render plugin was missing classes for error messaging
[ { "change_type": "MODIFY", "old_path": "src/Plugins/RenderPlugin.js", "new_path": "src/Plugins/RenderPlugin.js", "diff": "@@ -9,8 +9,12 @@ const { ProxyWrap } = require(\"../Util/ProxyWrap\");\nconst TemplateDataInitialGlobalData = require(\"../TemplateDataInitialGlobalData\");\nconst TemplateRender...
JavaScript
MIT License
11ty/eleventy
Render plugin was missing classes for error messaging
699
17.11.2022 14:24:42
21,600
eb856deff357490c52508001f0148af1bb390ecd
Update dependencies for 2.0.0-canary.17
[ { "change_type": "MODIFY", "old_path": "package.json", "new_path": "package.json", "diff": "]\n},\n\"devDependencies\": {\n- \"@11ty/eleventy-plugin-syntaxhighlight\": \"^4.1.0\",\n+ \"@11ty/eleventy-plugin-syntaxhighlight\": \"^4.2.0\",\n\"@11ty/eleventy-plugin-vue\": \"1.0.0-canary.8\",\n- \"@vue/...
JavaScript
MIT License
11ty/eleventy
Update dependencies for 2.0.0-canary.17
699
17.11.2022 14:29:45
21,600
15a11a424ac78fe57080d40766d515b07ef6820d
Keep liquidjs pinned for
[ { "change_type": "MODIFY", "old_path": "package.json", "new_path": "package.json", "diff": "\"is-glob\": \"^4.0.3\",\n\"iso-639-1\": \"^2.1.15\",\n\"kleur\": \"^4.1.5\",\n- \"liquidjs\": \"9.42.1\",\n+ \"liquidjs\": \"9.41.0\",\n\"lodash\": \"^4.17.21\",\n\"luxon\": \"^3.1.0\",\n\"markdown-it\": \"^...
JavaScript
MIT License
11ty/eleventy
Keep liquidjs pinned for #2571
699
17.11.2022 16:37:10
21,600
a689fa9e4d0abe50734e54973db07202966fbf8a
Docs pinned priority
[ { "change_type": "MODIFY", "old_path": "docs/release-instructions.md", "new_path": "docs/release-instructions.md", "diff": "## List of dependencies that went ESM\n+- `liquidjs` is pinned to 9.41.0 because of https://github.com/11ty/eleventy/issues/2571\n- `@sindresorhus/slugify` ESM at 2.x\n- `multi...
JavaScript
MIT License
11ty/eleventy
Docs pinned priority
699
18.11.2022 17:16:15
21,600
0c27a80617d8c5be1498c67175767721a116167c
Decouple processing ignores from watchIgnores. Fixes Whether we want to ignore a file during watch or ignore a file for processing are two separate concerns.
[ { "change_type": "MODIFY", "old_path": "src/EleventyFiles.js", "new_path": "src/EleventyFiles.js", "diff": "@@ -3,6 +3,7 @@ const fastglob = require(\"fast-glob\");\nconst { TemplatePath } = require(\"@11ty/eleventy-utils\");\nconst EleventyExtensionMap = require(\"./EleventyExtensionMap\");\n+const...
JavaScript
MIT License
11ty/eleventy
Decouple processing ignores from watchIgnores. Fixes #893 Whether we want to ignore a file during watch or ignore a file for processing are two separate concerns.
699
05.12.2022 17:10:10
21,600
3cae34999f9e1d9cf2c77e3ea591829372602440
Extra from
[ { "change_type": "MODIFY", "old_path": "src/Plugins/RenderPlugin.js", "new_path": "src/Plugins/RenderPlugin.js", "diff": "@@ -14,8 +14,6 @@ const EleventyBaseError = require(\"../EleventyBaseError\");\nconst EleventyErrorUtil = require(\"../EleventyErrorUtil\");\nconst Liquid = require(\"../Engines/...
JavaScript
MIT License
11ty/eleventy
Extra from #2577
699
05.12.2022 17:10:48
21,600
350ccccccca4572288a4a99e855967a55dc5e139
One more extra from
[ { "change_type": "MODIFY", "old_path": "src/Plugins/RenderPlugin.js", "new_path": "src/Plugins/RenderPlugin.js", "diff": "@@ -10,7 +10,6 @@ const TemplateDataInitialGlobalData = require(\"../TemplateDataInitialGlobalData\"\nconst EleventyShortcodeError = require(\"../EleventyShortcodeError\");\ncons...
JavaScript
MIT License
11ty/eleventy
One more extra from #2577
699
06.12.2022 09:20:35
21,600
7c935a4bf611a476c1fcb68f16ca8c672621cce4
Adds getCollectionItemIndex universal filter.
[ { "change_type": "ADD", "old_path": null, "new_path": "src/Filters/GetCollectionItemIndex.js", "diff": "+module.exports = function getCollectionItemIndex(collection, page) {\n+ if (!page) {\n+ page = this.page || this.ctx?.page || this.context?.environments?.page;\n+ }\n+\n+ let j = 0;\n+ for (let i...
JavaScript
MIT License
11ty/eleventy
Adds getCollectionItemIndex universal filter.
699
06.12.2022 14:34:10
21,600
c1e49b577e7ac63d02b65820d7907f7ed794fde4
Add benchmarks for transforms and linters so they show up in Benchmarking output
[ { "change_type": "MODIFY", "old_path": "src/UserConfig.js", "new_path": "src/UserConfig.js", "diff": "@@ -344,13 +344,19 @@ class UserConfig {\naddTransform(name, callback) {\nname = this.getNamespacedName(name);\n- this.transforms[name] = callback;\n+ this.transforms[name] = this.benchmarks.config....
JavaScript
MIT License
11ty/eleventy
Add benchmarks for transforms and linters so they show up in Benchmarking output
699
06.12.2022 16:10:09
21,600
078b675fa55965d1a5cf4123bb7e34a8d9089005
Normalize to generators
[ { "change_type": "MODIFY", "old_path": "src/Engines/Liquid.js", "new_path": "src/Engines/Liquid.js", "diff": "@@ -93,7 +93,7 @@ class Liquid extends TemplateEngine {\n}\n}\n- static async parseArguments(lexer, str, scope, engine) {\n+ static parseArguments(lexer, str) {\nlet argArray = [];\nif (!lex...
JavaScript
MIT License
11ty/eleventy
Normalize to generators
699
06.12.2022 16:55:06
21,600
a40c631327e9e67ae8572650e655438bda500049
Fix regressions for liquidjs@10 upgrade Mostly the second arg to evalValue.
[ { "change_type": "MODIFY", "old_path": "package.json", "new_path": "package.json", "diff": "\"is-glob\": \"^4.0.3\",\n\"iso-639-1\": \"^2.1.15\",\n\"kleur\": \"^4.1.5\",\n- \"liquidjs\": \"9.41.0\",\n+ \"liquidjs\": \"^10.2.0\",\n\"lodash\": \"^4.17.21\",\n\"luxon\": \"^3.1.0\",\n\"markdown-it\": \"...
JavaScript
MIT License
11ty/eleventy
Fix regressions for liquidjs@10 upgrade https://github.com/harttle/liquidjs/releases/tag/v10.0.0 Mostly the second arg to evalValue.
699
07.12.2022 09:25:53
21,600
ee4a55845979a971ebe099f2511bad55af1ffeab
Error message cleanup for
[ { "change_type": "MODIFY", "old_path": "src/TemplateData.js", "new_path": "src/TemplateData.js", "diff": "@@ -364,10 +364,10 @@ class TemplateData {\n} else {\n// clean up data for template/directory data files only.\nlet cleanedDataForPath = TemplateData.cleanupData(dataForPath);\n- for (const key ...
JavaScript
MIT License
11ty/eleventy
Error message cleanup for #1462
699
07.12.2022 09:46:44
21,600
f59d1752825fcdbb2aefe65a344cf0de4ad4604e
Need to use promises fs API for
[ { "change_type": "MODIFY", "old_path": "src/Engines/TemplateEngine.js", "new_path": "src/Engines/TemplateEngine.js", "diff": "@@ -121,20 +121,23 @@ class TemplateEngine {\nif (this.includesDir) {\nlet bench = this.benchmarks.aggregate.get(\"Searching the file system\");\nbench.before();\n- await Pro...
JavaScript
MIT License
11ty/eleventy
Need to use promises fs API for #1537
699
07.12.2022 10:11:05
21,600
3265c0ab4e9955b12804270fb6ad1f901d05b3d0
A bit more cleanup for
[ { "change_type": "MODIFY", "old_path": "src/Engines/TemplateEngine.js", "new_path": "src/Engines/TemplateEngine.js", "diff": "@@ -105,22 +105,23 @@ class TemplateEngine {\n/**\n* Search for and cache partial files.\n*\n- * This only runs if getPartials() is called, which is only for Mustache/Handleb...
JavaScript
MIT License
11ty/eleventy
A bit more cleanup for #1537
699
07.12.2022 12:50:21
21,600
d0ab03811e87735ac3d79f03bdbff493358f13df
Refactor for `dataFileSuffixes` and `dataFileDirBaseNameOverride` config options
[ { "change_type": "MODIFY", "old_path": "src/TemplateConfig.js", "new_path": "src/TemplateConfig.js", "diff": "@@ -192,7 +192,7 @@ class TemplateConfig {\n* @param {String} pathPrefix - The new path prefix.\n*/\nsetPathPrefix(pathPrefix) {\n- if(pathPrefix && pathPrefix !== '/'){\n+ if (pathPrefix &&...
JavaScript
MIT License
11ty/eleventy
Refactor for `dataFileSuffixes` and `dataFileDirBaseNameOverride` config options #1699
699
07.12.2022 14:45:20
21,600
c7fa19ebe1baab867eccf76f47977515dfac2914
Consistency for
[ { "change_type": "MODIFY", "old_path": "src/TemplateData.js", "new_path": "src/TemplateData.js", "diff": "@@ -496,7 +496,9 @@ class TemplateData {\nif (readFile) {\nreturn parser(rawInput, path);\n} else {\n- return parser(path);\n+ // path as a first argument is when `read: false`\n+ // path as a s...
JavaScript
MIT License
11ty/eleventy
Consistency for #2188
699
07.12.2022 15:13:58
21,600
7c03471742d650d79e60343bea07c9dfb8ecff1f
No longer throws an error with empty .json data files.
[ { "change_type": "MODIFY", "old_path": ".editorconfig", "new_path": ".editorconfig", "diff": "@@ -13,3 +13,4 @@ insert_final_newline = true\n[/test/stubs*/**]\ninsert_final_newline = unset\n+trim_trailing_whitespace = false\n\\ No newline at end of file\n" }, { "change_type": "MODIFY", "...
JavaScript
MIT License
11ty/eleventy
No longer throws an error with empty .json data files.
699
07.12.2022 15:35:07
21,600
db13fb907e198e31ee8166756a1842a879e2f865
Adds Array argument support to `addExtension` For example: eleventyConfig.addExtension([ "11ty.jsx", "11ty.ts", "11ty.tsx" ], { key: "11ty.js" });
[ { "change_type": "MODIFY", "old_path": "src/UserConfig.js", "new_path": "src/UserConfig.js", "diff": "@@ -817,16 +817,27 @@ class UserConfig {\n}\naddExtension(fileExtension, options = {}) {\n+ let extensions;\n+ // Array support added in 2.0.0-canary.19\n+ if (Array.isArray(fileExtension)) {\n+ ext...
JavaScript
MIT License
11ty/eleventy
Adds Array argument support to `addExtension` #2279 For example: eleventyConfig.addExtension([ "11ty.jsx", "11ty.ts", "11ty.tsx" ], { key: "11ty.js" });
699
07.12.2022 15:37:41
21,600
56b7443ba95c44ea3b91393c391566eb8f711f31
Easier searching
[ { "change_type": "MODIFY", "old_path": "test/TemplateRenderCustomTest.js", "new_path": "test/TemplateRenderCustomTest.js", "diff": "@@ -19,6 +19,7 @@ function getNewTemplateRender(name, inputDir, eleventyConfig) {\ntest(\"Custom plaintext Render\", async (t) => {\nlet eleventyConfig = new TemplateCo...
JavaScript
MIT License
11ty/eleventy
Easier searching
699
07.12.2022 16:37:06
21,600
a9b1c6096aedf5397b6c92a5ed6099d9cb1c8b54
Fix for issue that needed explicit `read: false` for aliases to `11ty.js` (no longer required)
[ { "change_type": "MODIFY", "old_path": "src/EleventyFiles.js", "new_path": "src/EleventyFiles.js", "diff": "@@ -388,21 +388,7 @@ class EleventyFiles {\nlet paths = TemplatePath.addLeadingDotSlashArray(globResults);\nbench.after();\n- // filter individual paths in the new config-specified extension\n...
JavaScript
MIT License
11ty/eleventy
Fix for #2279 issue that needed explicit `read: false` for aliases to `11ty.js` (no longer required)
699
08.12.2022 09:12:05
21,600
f4cc4bc7e93efaab3d787e21c9b4af61b1e82a2a
Fix access to scope in Liquid arguments
[ { "change_type": "MODIFY", "old_path": "src/Engines/Liquid.js", "new_path": "src/Engines/Liquid.js", "diff": "@@ -148,8 +148,9 @@ class Liquid extends TemplateEngine {\nrender: function* (ctx, emitter) {\nlet rawArgs = Liquid.parseArguments(_t.argLexer, this.args);\nlet argArray = [];\n+ let context...
JavaScript
MIT License
11ty/eleventy
Fix access to scope in Liquid arguments #2678
699
08.12.2022 15:37:05
21,600
6a67b99381a5cf4199a03634fce6113225f80041
Adds skipped test case for
[ { "change_type": "MODIFY", "old_path": "test/MergeTest.js", "new_path": "test/MergeTest.js", "diff": "@@ -194,6 +194,34 @@ test(\"Edge case from #2470\", (t) => {\n);\n});\n+test.skip(\"Edge case from #2684 (multiple conflicting override: props)\", (t) => {\n+ t.deepEqual(\n+ Merge(\n+ {\n+ a: {\n+ ...
JavaScript
MIT License
11ty/eleventy
Adds skipped test case for #2684
699
08.12.2022 16:05:35
21,600
3de539631c78a23e27e3b0c9fef743efa9f8bbed
Did a bad merge, fixing
[ { "change_type": "MODIFY", "old_path": "src/EleventyFiles.js", "new_path": "src/EleventyFiles.js", "diff": "@@ -205,7 +205,7 @@ class EleventyFiles {\nfor (let ignore of this.extraIgnores) {\nuniqueIgnores.add(ignore);\n}\n- // Placing the config ignores last here is import to the tests\n+ // Placin...
JavaScript
MIT License
11ty/eleventy
Did a bad merge, fixing #2480
699
09.12.2022 20:39:43
21,600
19620100ecfa3d7fdeaa5f08e2c55d5146bf9e6d
A bunch of code to make better. Adds `addDependencies` API to declare dependencies for both cache key usage and incremental matching.
[ { "change_type": "MODIFY", "old_path": "src/Engines/Custom.js", "new_path": "src/Engines/Custom.js", "diff": "const TemplateEngine = require(\"./TemplateEngine\");\nconst getJavaScriptData = require(\"../Util/GetJavaScriptData\");\n+const GlobalDependencyMap = require(\"../GlobalDependencyMap\");\n+...
JavaScript
MIT License
11ty/eleventy
A bunch of code to make #2258 better. Adds `addDependencies` API to declare dependencies for both cache key usage and incremental matching.
699
12.12.2022 12:17:04
21,600
15b8f32435c7a7919bba3a43a425f91c4c365dc0
Wrong test file content
[ { "change_type": "MODIFY", "old_path": "src/Engines/TemplateEngine.js", "new_path": "src/Engines/TemplateEngine.js", "diff": "@@ -222,7 +222,7 @@ class TemplateEngine {\n// different files had identical content (2.0.0-canary.16)\n// Caches are now segmented based on inputPath so using inputPath here...
JavaScript
MIT License
11ty/eleventy
Wrong test file content
699
12.12.2022 12:18:33
21,600
ba273e655ea2432bbb2c5f36c62be946d32de911
Restore test file at the end
[ { "change_type": "MODIFY", "old_path": "test/EleventyTest.js", "new_path": "test/EleventyTest.js", "diff": "@@ -613,6 +613,7 @@ test(\"Improvements to custom template syntax APIs, #2258\", async (t) => {\nline-height: 0;\n}`;\nlet newContents = `/* New content */`;\n+\nawait fsp.writeFile(includeFil...
JavaScript
MIT License
11ty/eleventy
Restore test file at the end
699
12.12.2022 13:13:57
21,600
f267a2cbba90af433e4f23fcc32259f587006ee8
normalize global dependency map, windows fix
[ { "change_type": "MODIFY", "old_path": "src/GlobalDependencyMap.js", "new_path": "src/GlobalDependencyMap.js", "diff": "const { DepGraph } = require(\"dependency-graph\");\nconst { TemplatePath } = require(\"@11ty/eleventy-utils\");\n+const PathNormalizer = require(\"./Util/PathNormalizer\");\nconst...
JavaScript
MIT License
11ty/eleventy
normalize global dependency map, windows fix #2258
699
12.12.2022 15:38:12
21,600
e46c3663b010a0fd2db7f7186a7e424bd375c0c7
Superfluous code from
[ { "change_type": "MODIFY", "old_path": "src/TemplateContent.js", "new_path": "src/TemplateContent.js", "diff": "@@ -552,23 +552,19 @@ class TemplateContent {\nreturn false;\n} else {\n+ // Not great way of building all templates if this is a layout, include, JS dependency.\n+ // TODO improve this fo...
JavaScript
MIT License
11ty/eleventy
Superfluous code from #2258
699
12.12.2022 16:49:07
21,600
db3c9bf5c9aad7682b369e0217e15f3cb78da18f
Adds for-free layout dependency checking
[ { "change_type": "MODIFY", "old_path": "src/Eleventy.js", "new_path": "src/Eleventy.js", "diff": "@@ -644,6 +644,7 @@ Arguments:\n* @param {String} changedFilePath - File that triggered a re-run (added or modified)\n*/\nasync _addFileToWatchQueue(changedFilePath) {\n+ // Note: this is a sync event!\...
JavaScript
MIT License
11ty/eleventy
Adds for-free layout dependency checking #2258
699
13.12.2022 12:28:35
21,600
8be59ccf8144d0dc59b18a93a72365542d5a1746
Fixes for layout checks, should only apply to incremental, layouts are irrelevant to the compile cache
[ { "change_type": "MODIFY", "old_path": "src/Engines/Custom.js", "new_path": "src/Engines/Custom.js", "diff": "@@ -235,14 +235,14 @@ class CustomEngine extends TemplateEngine {\nreturn true;\n}\n- isFileRelevantTo(inputPath, comparisonFile) {\n- return usesMap.isFileRelevantTo(inputPath, comparisonFi...
JavaScript
MIT License
11ty/eleventy
Fixes for layout checks, should only apply to incremental, layouts are irrelevant to the compile cache #2258
699
14.12.2022 15:55:34
21,600
44a48cb577f3db7174121631842a576849a0b757
Some internal filter simplification from
[ { "change_type": "MODIFY", "old_path": "src/Filters/GetCollectionItemIndex.js", "new_path": "src/Filters/GetCollectionItemIndex.js", "diff": "// TODO locale-friendly, see GetLocaleCollectionItem.js)\nmodule.exports = function getCollectionItemIndex(collection, page) {\nif (!page) {\n- page = this.pa...
JavaScript
MIT License
11ty/eleventy
Some internal filter simplification from #2250
699
14.12.2022 16:08:46
21,600
0b549b000f5ea17e88fd7cd28ccf633ea7831046
A bit more shortcode normalization cleanup for
[ { "change_type": "MODIFY", "old_path": "src/Engines/Liquid.js", "new_path": "src/Engines/Liquid.js", "diff": "@@ -53,6 +53,28 @@ class Liquid extends TemplateEngine {\nreturn options;\n}\n+ static wrapFilter(fn) {\n+ return function (...args) {\n+ if (this.context && \"get\" in this.context) {\n+ th...
JavaScript
MIT License
11ty/eleventy
A bit more shortcode normalization cleanup for #1522
699
14.12.2022 16:16:22
21,600
5ad00b32a3416e21a4f4fc1ffaf465edb58971e2
Make `page` available to transforms and linters,
[ { "change_type": "MODIFY", "old_path": "src/Template.js", "new_path": "src/Template.js", "diff": "@@ -481,6 +481,8 @@ class Template extends TemplateContent {\nasync runLinters(str, page) {\nlet { inputPath, outputPath, url } = page;\n+ let pageData = page.data.page;\n+\nfor (let linter of this.lint...
JavaScript
MIT License
11ty/eleventy
Make `page` available to transforms and linters, #1522
699
14.12.2022 16:21:21
21,600
47729b145adfd14ad7c1c64af764196e3c052964
Re-enable a skipped test for
[ { "change_type": "MODIFY", "old_path": "test/TemplateTest.js", "new_path": "test/TemplateTest.js", "diff": "@@ -1024,7 +1024,7 @@ test(\"Test a transform\", async (t) => {\n});\n// #789: https://github.com/11ty/eleventy/issues/789\n-test.skip(\"Test a transform (does it have inputPath?)\", async (t)...
JavaScript
MIT License
11ty/eleventy
Re-enable a skipped test for #789
699
14.12.2022 17:20:06
21,600
bf016192892d5274cb4a26aed06971900da0513b
Add `content` (alias to `templateContent`) and `page` for collections items, fixes
[ { "change_type": "MODIFY", "old_path": "test/TemplateTest-JavaScript.js", "new_path": "test/TemplateTest-JavaScript.js", "diff": "@@ -16,6 +16,10 @@ test(\"JavaScript template type (function)\", async (t) => {\nlet pages = await getRenderedTmpls(tmpl, data);\nt.is(pages[0].templateContent.trim(), \"...
JavaScript
MIT License
11ty/eleventy
Add `content` (alias to `templateContent`) and `page` for collections items, fixes #1522
699
15.12.2022 13:14:23
21,600
b67ad0c10282e45618b8735abba047415dda9530
Config API for more tests
[ { "change_type": "MODIFY", "old_path": "src/TemplateConfig.js", "new_path": "src/TemplateConfig.js", "diff": "const fs = require(\"fs\");\nconst chalk = require(\"kleur\");\n-const lodashUniq = require(\"lodash/uniq\");\n-const lodashMerge = require(\"lodash/merge\");\nconst { TemplatePath } = requi...
JavaScript
MIT License
11ty/eleventy
Config API for #1699, more tests
699
15.12.2022 13:39:01
21,600
2fc0e5e38b1cdbba301abd2100b41f0aec5ca284
Cleanup some config code after changes for
[ { "change_type": "MODIFY", "old_path": "src/TemplateConfig.js", "new_path": "src/TemplateConfig.js", "diff": "@@ -281,12 +281,11 @@ class TemplateConfig {\n}\n/**\n- * Merges different config files together.\n+ * Fetches and executes the local configuration file\n*\n- * @param {String} projectConfig...
JavaScript
MIT License
11ty/eleventy
Cleanup some config code after changes for #1699
699
15.12.2022 13:50:55
21,600
6fd206a08c592c45b6fe967136cfe20d3a6576af
Replace global lodash with direct function deps savings in npm install: 38.6 MB to 33.5 MB (-5.1 MB)
[ { "change_type": "MODIFY", "old_path": "package.json", "new_path": "package.json", "diff": "\"iso-639-1\": \"^2.1.15\",\n\"kleur\": \"^4.1.5\",\n\"liquidjs\": \"^10.2.0\",\n- \"lodash\": \"^4.17.21\",\n+ \"lodash.chunk\": \"^4.2.0\",\n+ \"lodash.get\": \"^4.4.2\",\n+ \"lodash.set\": \"^4.3.2\",\n\"l...
JavaScript
MIT License
11ty/eleventy
Replace global lodash with direct function deps savings in npm install: 38.6 MB to 33.5 MB (-5.1 MB)
699
16.12.2022 16:11:29
21,600
243539ef80dcf20be3c552fd01544c41e9e71832
Refactor to add eleventyImportCollections, fixes
[ { "change_type": "ADD", "old_path": null, "new_path": "test/_issues/975/975-test.js", "diff": "+const test = require(\"ava\");\n+const TemplateMap = require(\"../../../src/TemplateMap\");\n+const TemplateConfig = require(\"../../../src/TemplateConfig\");\n+\n+const getNewTemplateForTests = require(\...
JavaScript
MIT License
11ty/eleventy
Refactor to add eleventyImportCollections, fixes #975