Skip to content

Commit

Permalink
refactor(utilities): Move utility libraries to directory for easier p…
Browse files Browse the repository at this point in the history
…artial overrides
  • Loading branch information
alerque committed Dec 12, 2023
1 parent fc7e7fb commit 06d9ea4
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
File renamed without changes.
11 changes: 8 additions & 3 deletions core/utilities.lua → core/utilities/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -556,28 +556,33 @@ utilities.breadcrumbs = function ()
return breadcrumbs
end

utilities.formatNumber = require("core.utilities-numbers")
utilities.formatNumber = require("core.utilities.numbers")

utilities.collatedSort = require("core.utilities-sorting")
utilities.collatedSort = require("core.utilities.sorting")

utilities.ast = require("core.utilities.ast")

utilities.ast = require("core.utilities-ast")
utilities.subContent = function (content)
SU.deprecated("SU.subContent", "SU.ast.subContent", "0.15.0", "0.17.0", [[
Note that the new implementation no longer introduces an id="stuff" key.]])
return utilities.ast.subContent(content)
end

utilities.hasContent = function(content)
SU.deprecated("SU.hasContent", "SU.ast.hasContent", "0.15.0", "0.17.0")
return SU.ast.hasContent(content)
end

utilities.contentToString = function (content)
SU.deprecated("SU.contentToString", "SU.ast.contentToString", "0.15.0", "0.17.0")
return SU.ast.contentToString(content)
end

utilities.walkContent = function (content, action)
SU.deprecated("SU.walkContent", "SU.ast.walkContent", "0.15.0", "0.17.0")
SU.ast.walkContent(content, action)
end

utilities.stripContentPos = function (content)
SU.deprecated("SU.stripContentPos", "SU.ast.stripContentPos", "0.15.0", "0.17.0")
return SU.ast.stripContentPos(content)
Expand Down
File renamed without changes.
File renamed without changes.

0 comments on commit 06d9ea4

Please sign in to comment.