- Added an
experiments.strictProjectIds
setting to.moon/workspace.yml
. When enabled, will disallow using original IDs for renamed projects (via theid
setting) when building the project graph. - Updated codegen/template
destination
to be relative from the workspace root if prefixed with/
, otherwise the current working directory.
- Fixed an issue where moon would attempt to execute a folder if it has the same name as the current shell.
- Fixed an issue where
[working_dir]
and[workspace_root]
variables were not working in thetemplate.yml
destination
setting.
- Updated dependencies.
- Updated proto to v0.42.0 (from 0.41.3).
- Fixed an issue running
npx
commands (primarily through lockfile deduping).
- Removed the warning around
.env
files not existing in certain environments.
- Fixed an issue where the task option
timeout
would apply to the overall run, and not for each attempt when using theretryCount
option.
- Updated Rust to v1.82.
- Added a new task option
merge
, that defines the same strategy for all applicable fields. Can be overridden withmergeX
task options. - Added a
moon
setting to.moon/toolchain.yml
, which can be used to customize the update check process.
- Fixed
moon query projects
including dependency projects by default. Can be controlled with--upstream
. - Fixed
moon query projects
regex patterns not working when used in conjunction with affected. - Fixed Bash-based hooks being generated with the wrong path separators on Windows.
- Fixed an issue where an inherited task with merge strategy "replace" will accidentally remove task args, deps, and env in inheriting tasks.
- Fixed an issue where token variables and environment variables used within task args together would not be replaced correctly.
- Implemented a new affected project tracker that is more accurate and more powerful.
- Can now control the depth of upstream (dependencies) and downstream (dependents).
- Affected information now logs more information and is included in reports/JSON.
- Added
--upstream
and--downstream
options tomoon query projects
. - Coming soon for affected tasks as well!
- Implemented experimental support for a new configuration language, Pkl!
- Pkl is programmable, allowing for variables, loops, conditionals, and more.
- Added a new task option,
cacheLifetime
, that controls how long a task will be cached for. - Added a new task merge strategy,
preserve
, that preserves the original inherited value. - Added a new setting
vcs.hookFormat
to.moon/workspace.yml
, that can customize the shell/file format for hooks. - Added "sync workspace action" support to toolchain plugins. This is our first step in supporting toolchains via WASM plugins.
- Updated task
outputs
to support token and environment variables. - Updated
moon query projects
to include the project description as a trailing value. - Updated
moon query tasks
to include the task type and platform, and the task description as a trailing value.
- Fixed an issue where a root project in a polyrepo would not default to
**/*
inputs for tasks. - Potential fix for an issue that occurs when multiple toolchains of the same type (2 different Node.js versions for example) would fail in weird ways when installing in parallel.
- Updated identifiers and targets to use compact strings.
- Updated proto to v0.41.3 (from 0.40.4).
- Updated wasmtime to v23 (from v17).
- Fixed an issue where VCS hooks were not being generated in Docker (requires
.git
to exist). - Fixed an issue where projects whose
id
was renamed inmoon.yml
wasn't being reflected when inheriting project dependencies through the toolchain/platform integration. - Fixed
optionalDependencies
not being considered a project relationship for Bun/Node implicitpackage.json
detection.
- Updated cached task outputs to now be prefixed with the task target when printing to the console.
- Updated Bun/Yarn lockfile parsing to temporarily log a warning on parse failure instead of exiting with an error. This change was made as there are currently no actionable or human-readable error messages.
- Fixed an issue where empty lines were being trimmed while streaming task console output.
- Fixed an issue where tasks that errored before the command is executed, would swallow the error
in
moon ci
.- It would also put the task in a non-failed state depending on the order of operations. This should be correct now.
- Added caching around
bun bun.lockb
commands, instead of running them for every task. - Updated and loosened identifier naming restrictions.
- Updated environment variable substitution to support different outputs when a variable is missing,
based on a trailing flag syntax.
$FOO
or${FOO}
- If variable is missing, keeps the original syntax (current default).$FOO?
or${FOO?}
- If variable is missing, replaces with an empty string.$FOO!
or${FOO!}
- Ignores variable substitution and preserves the syntax (without !).
- Fixed an issue where an affected task with files that contain non-standard characters would fail
to run because Bash expansion fails. We now quote file paths that contain
*
,$
,+
, and[]
.
- Updated Rust to v1.81.
- Extensions (WASM plugins) must implement the
register_extension
API. All built-in extensions have been updated.
- Resolved the
actionPipelineV2
experiment and the new pipeline is now always enabled. The old pipeline code has been deleted. If you run into any problems, please report an issue! - Resolved the
strictProjectAliases
experiment and enabled its functionality going forward. - Added a
preset
task setting, that enables a collection of task options.- Will be replacing the
local
setting, which is now deprecated.
- Will be replacing the
- Added an
os
task option, which allows a specific operating system to be targeted for the task. - Added a
@meta
token function that can access project metadata. - Added
$projectName
,$projectChannel
, and$projectOwner
token variables. - Added
codeowners.requiredApprovals
setting to.moon/workspace.yml
, that will apply requirements to all paths. - Added a new experiment
disallowRunInCiMismatch
, that errors when a task that isrunInCI
enabled depends on a task that isrunInCI
disabled. These kinds of relationships cause a handful of issues in the pipeline.- Currently this only applies to
moon ci
and may also apply tomoon run
in the future.
- Currently this only applies to
- Updated the terminal checkpoint (4 squares) colors to better reflect their state.
- Cached tasks continue to be blue, but non-cached but successful tasks are now green.
- Announcements are now yellow.
- Updated
MOON_TOOLCHAIN_FORCE_GLOBALS
to support filtering by tool IDs, instead of applying to everything.
- We've sunset the CI insights feature in moonbase. We will no longer be tracking CI run history. This is a retroactive change that applies to all moon versions.
- Updated proto to v0.40.4 (from v0.39.7).
- Fixed an issue around running dependents when a dependency is affected in CI.
- Fixed a regression where the "primary target" detection would include far too many targets. This would result in passthrough arguments being unintentionally passed deeper.
- Fixed a regression where dependent tasks would always run in CI.
- We now log messages when inheriting values from the root
.prototools
.
- Fixed a panic that occurs in the action graph builder.
- Fixed an issue where the root
.prototools
wasn't always loaded.
- Fixed an issue where codeowners
requiredAppprovals
wouldn't allow1
. - Fixed an issue where a task that depends on another task that has
runInCI: false
, would not run as affected inmoon ci
because the dependency task was skipped.
There have been reports of the moon.exe
binary being flagged as a Trojan on Windows. This looks to
be a common false positive (Wacatac.B!ml
) that targets Rust built binaries (as seen in the
Tauri project as well).
While this isn't a simple fix on our end, we're publishing a new binary to replace the old one. You
may also have to unquarantine moon on your system. And lastly, we also suggest
adding an exclusion for moon.exe
to Windows Defender.
- Updated proto to v0.39.7 (from v0.38.3).
- Updated Rust to v1.80.
- Updated dependencies.
- Fixed an issue where token expansion would clobber variable replacement when multiple variables are used.
- Fixed internal tasks being displayed in
moon query
results.
- Fixed an issue where
moon docker scaffold
would not respect.gitignore
files. - Fixed an issue where task hashing would potentially hash too many files when extracting touched
files from
git status
. - Fixed an issue where the automatic dependency installation wasn't triggering when switching branches.
- Added
project.metadata
tomoon.yml
so that custom fields can be defined. - Improved some task related error messages to include more information.
- Fixed an issue where the new action pipeline wouldn't wait for in-flight moonbase (remote caching) requests to finish. The old pipeline was not affected.
- Fixed
@in
and@out
tokens not being able to reference other token functions.
- Fixed an issue where file groups expanded with task
script
orenv
weren't resolving relative to the project or workspace root (based on options).
- Updated proto to v0.38.3 (from v0.38.2).
- Removed the concurrency limit when running persistent tasks.
- Fixed an issue where task scripts would error with "command not found" (caused by over escaping/quoting).
- Fixed an issue where a persistent task may not run or error with a missing dependency hash, if ran alongside many other persistent tasks.
- Fixed an issue where "build" dependencies were being synced as project references.
- Fixed an issue where the install dependencies action wouldn't run if the vendor directory (node_modules) was missing, but our operation was previously cached.
- Fixed an issue where token variables were not being replaced in task scripts.
- Enabled the
experiments.actionPipelineV2
setting in.moon/workspace.yml
by default.- If you run into any issues running tasks, disable this setting and report an issue.
- Added a new task field
script
, as an alternative tocommand
+args
.- Scripts support multiple commands (
&&
), pipes, and redirects. - Scripts do not support task inheritance argument merging.
- Scripts are always ran in a shell.
- Scripts support multiple commands (
- Added a new command,
moon docker file
, that can be used to generate an initial multi-stageDockerfile
for a project. - Added new
docker
settings to both.moon/workspace.yml
andmoon.yml
, allowing it to be configured at the workspace and project levels. - Added support for murex shells.
- Updated both
unixShell
andwindowsShell
task options.
- Updated both
- Improved the "automatically install dependencies if a manifest/lockfile has changed" flow. This should trigger less than before.
- We now generate JSON schemas for our configuration files to
.moon/cache/schemas
, so that they can be dynamically created based on the current moon version and environment.- Is automatically generated when running a task.
- Added a
moon sync config-schemas
command to manually run this operation.
- When writing JSON and YAML files, we attempt to write back to the file with its original indentation.
- Fixed action operations not being present in the run report when a task fails to run.
- Fixed stdout/stderr not being included in the summary review of failed tasks.
- Node
- Added a
node.syncPackageManagerField
setting, to control thepackageManager
field inpackage.json
.
- Added a
- Yarn
- Will no longer call
yarn set version
and instead rely entirely on proto's toolchain.
- Will no longer call
- Updated proto to v0.38.2 (from v0.37.2).
- Updated
bun.installArgs
andnode.bun.installArgs
to stay in sync.
- Fixed
moon run --affected
not auto-installing dependencies in CI. - Fixed an issue where the project graph cache would not invalidate based on certain environment variables.
- Fixed an issue where our console would be prematurely dropped, causing output flushing issues.
- Fixed a regression where
pwsh.exe
would not fallback topowershell.exe
when the former does not exist. - Respect
CARGO_HOME
during automatic rustup installation.
- Updated home-based environment variables, like
CARGO_HOME
, to support relative paths.
- Fixed an issue where globs wouldn't match when leading with
./
.
- Updated proto to v0.37.2 (from v0.37.1).
- Fixed an issue where the shell could not be detected, and would potentially hang.
- Potential fix for a deadlock that occurs when running
moon docker scaffold
. - Reverted the default shell back to
sh
instead ofbash
when one could not be detected.
- Fixed the
ciReport.json
file not being created with the experimental pipeline. - Fixed the wrong version being displayed in
--version
and in logs.
- Downgraded WASM runtime to fix potential issues.
- Re-released because of an npm version mismatch issue.
- Reworked webhooks to more closely align with our current data structures.
- Renamed
target.*
events totask.*
, and*.finished
to*.completed
. - Removed the
pipeline.aborted
event. Instead, anaborted
field is now passed topipeline.completed
. - Replaced the
action
field with a newnode
field withintask.*
events. - Reworked
pipeline.completed
entirely. Instead of calculating values for you, we now pass all results allowing you to calculate them yourself.
- Renamed
- Rewrote the actions/tasks pipeline from the ground-up. Is currently experimental and must be
enabled with the
experiments.actionPipelineV2
setting in.moon/workspace.yml
.- Increased performance.
- Better concurrency handling and scheduling.
- More accurately monitors signals (ctrl+c) and shutdowns.
- Tasks can now be configured with a timeout (
options.timeout
setting). - Some operations within actions are now ran in parallel.
- We renamed many of the action labels (
SyncNodeProject(app)
->SyncProject(node, app)
).
- Added a global
--dump
flag, that will dump a trace profile that can be inspected inchrome://tracing
. - Updated
moon completions
command to support Nushell. - Updated task option
unixShell
with new options: ion, nu (nushell), pwsh (powershell), xonsh. - Updated task option
windowsShell
with new options: elvish, fish, nu (nushell), xonsh. - Updated CLI command execution to be more performant, and to reduce our usage of concurrent locks.
- Internal components (like cache engine, or project graph) are now lazy-loaded when required, instead of created upfront.
- Updated proto to v0.37.1 (from v0.36.2).
- Updated Rust to v1.79.
- Fixed a potential deadlock when installing tools.
- Updated proto to v0.36.2 (from v0.36.0).
- Fixed an issue where multiple Bun tools would try to install and collide.
- Fixed an issue where the
package.json
packageManager
field would be set with an invalid version specifier.
- Updated
bun.version
andnode.bun.version
to stay in sync when one is defined and the other isn't. This helps to avoid tool discrepancies.
- Fixed an issue where persistent tasks depending on each other would sometimes error with "Encountered a missing hash".
- Fixed nightly and canary releases not showing the correct version in
moon --version
.
- Improved error messages around git version and worktree parsing.
- Fixed
git
version parsing when the version contains invalid semver parts.
- Updated
download
to v0.0.5. - Updated
migrate-nx
to v0.0.5. - Updated
migrate-turborepo
to v0.1.2.- Added Turborepo v2 support.
- Added a check to
moon docker scaffold
that ensures that.moon/cache
is ignored in a root.dockerignore
file. This helps to avoid interoperability issues. - Added more logs to
moon docker
commands to help uncover future issues.
- Fixed an issue where
noop
tasks would not cache / invalidate cache. This is a regression from the recent task runner changes.
- Updated proto to v0.36.0 (from v0.35.4).
- Rewrote process failure error messages to include exit status information. This should help uncover processes killed by signals, and help debug the -1 exit code issues.
- Removed the following webhook events associated with task outputs:
target-output.archiving
,target-output.archived
,target-output.hydrating
,target-output.hydrated
,target-output.cache-check
.
- Rewrote the task runner from the ground up:
- Improved handling and reliability of output archiving and hydration.
- Streamlined the task execution (child process) flow.
- Now tracks metrics for individual operations, like hash generation, output hydration, task execution, and more. Can be inspected in the run report.
- Added a
--summary
flag tomoon run
andmoon check
that will include a summary of all actions that were processed/failed within the pipeline. This is the same output used inmoon ci
. - Added a new console reporting layer that handles the rendering of output in the terminal.
- This enables us to support additional reporters in the future, each with unique UIs.
- Slightly tweaked our current UI rendering. You may notice some differences.
- Updated external configuration files (via https extends) to be cached for 24 hours.
- This will fix issues with offline mode.
- Greatly reduced the amount of concurrent locks being held during task execution. May see slight performance improvements.
- Fixed an issue where actions within the run report were not reflecting the correct status of their last execution attempt.
- Fixed an issue where "have outputs been created" checks would fail if outputs only contained negated globs, coupled with literal paths.
- Fixed an issue where
.prototools
in the workspace root was not being respected when running moon commands in a sub-directory. - Fixed
PROTO_*_VERSION
environment variables being set to*
, resulting in unexpected versions being resolved.
- Updated proto to v0.35.4 (from v0.34.4).
- Updated macOS binaries to be built on macos-12 instead of macos-11.
- Reworked the binary provided by
@moonrepo/cli
to work better on Windows.
- Fixed an issue where proto managed tools may error with "Failed to detect an applicable version".
- Fixed a regression where
runInCI
was being overzealously applied tomoon run
commands. - Fixed generated VCS hooks not containing a trailing newline.
- Fixed an issue where internal tasks would still run when running a task using "closest project" detection.
- Fixed an issue where task's with
runInCI
weren't always being filtered properly.
- Fixed task
deps.env
not supporting variable substitution. - Fixed an issue where Git hooks would overwrite non-local hooks. The
core.hooksPath
setting is now only used if the path is within the current repository.
- Fixed an issue where versions in
.prototools
weren't being respected. - Fixed task
deps.args
anddeps.env
not expanding tokens correctly.
- Added an experimental
moon templates
command, that lists all available codegen templates. - Added a
--dependents
flag tomoon project-graph <id>
andmoon query projects
, to include downstream dependents of a focused/affected project. - Added a
mutex
task option, allowing for exclusivity and to ensure only 1 task is running at a time for the same mutex. - Added a
runner.autoCleanCache
setting to.moon/workspace.yml
, allowing the post-run clean mechanism to be controlled. - Updated
moon ci
to automatically determine base/head revisions based on your current CI provider (when applicable). - Updated
moon generate
:- When passing variables as command line arguments, they are now entirely modeled after the
template configuration.
- Booleans and negated booleans now work better.
- Numbers now support negative values.
- Multiple values can now be passed for enums when
multiple
is enabled.
- If a variable value is passed as an argument, we no longer prompt for it.
- Internal variables will now error when passed as an argument.
- When passing variables as command line arguments, they are now entirely modeled after the
template configuration.
- Updated action graph and project graph visualization:
- Slightly tweaked the colors to be easier to read.
- Updated edges to use chevron arrows.
- Added a new layout system to organize node/edges, controlled by the
?layout=
query parameter. - Supported layout options:
dagre
(default),klay
,grid
,breadthfirst
- Updated root-level tasks to have no inputs by default, instead of
**/*
. This is typically what users want, to avoid greedy tasks.
- Fixed YAML schema validation not allowing custom languages for the project
language
field. - Fixed an issue where Bun and Node would both attempt to install dependencies, resulting in
collisions.
- To resolve this issue, we currently prioritize Node over Bun if both tools are enabled.
- If you have both and want to use Bun, set Node's package manager to
node.packageManager: 'bun'
.
- Attempted fix for "too many open files" when moon is cleaning cached artifacts.
- Updated proto to v0.34.4 (from v0.32.2).
- Fixed an issue where leading
./
in input/output globs would cause matching failures. - Fixed an issue where root-level projects were not being marked as affected in
moon query
. - Fixed an issue where
moon docker scaffold
would copy all sources when a project depends on a root-level project.
- Updated
bun_plugin
to v0.11.- Added Windows support.
- Will now use the baseline build on x64 Linux when available.
- Updated proto to v0.32.2 (from v0.32.1).
- Fixed an issue where input environment variables weren't always being taken into account for task hashes.
- Added more CI/CD platforms to check for.
- Fixed an issue where
moon clean
wasn't removing nested files. - Fixed an issue where
package.json
syncing would create incorrectlink:
s for Bun. - Fixed an issue where
moon ext
would trigger a "No such file or directory" error.
- Updated
migrate-nx
to v0.0.3.- Fixed invalid IDs when converting
package.json
names.
- Fixed invalid IDs when converting
- Added
git:
andnpm:
locators to thegenerator.templates
setting in.moon/workspace.yml
.- This allows templates to be packaged and managed outside of the workspace.
- Locations will be cloned/downloaded on-demand.
- Added an
id
setting totemplate.yml
, so that templates can customize their name (instead of using the folder name). - Added a
variables()
function for templates that returns an object of all variables available. - Added new functionality for template variables in
template.yml
:- New
order
setting to control the order in which they are prompted for. - New
internal
setting that ignores values passed on the command line. - Updated enum
default
settings to support an array of values.
- New
- Added an
internal
task option, which marks tasks as internal only. - Updated task inheritance to support stack-based configuration, such as
.moon/tasks/node-frontend.yml
or.moon/tasks/bun-backend-application.yml
. - Updated
moon project
andmoon task
to include the configuration files that tasks inherit from. - Updated
moon task
to include the modes it belongs to.
- Fixed an issue where a project's
platform
was being detected asnode
(when not enabled), and should have beenbun
. If you're using bothbun
andnode
in the same workspace, moon has a hard time detecting which should be used for what project. If you run into issues, explicitly set theplatform
in the project'smoon.yml
. - Fixed an issue where template files couldn't import/include/extends files from extended templates.
- Fixed template enum variable default values being able to use a non-supported value.
- Configuration JSON schemas are now included within each GitHub release.
- Updated proto to v0.32.1 (from v0.31.4).
- Updated Rust to v1.77.
- Added more logging around our WASM plugins.
- Added a
MOON_DEBUG_WASM
environment variable, for including additional logging output, and optionally dumping memory/core profiles.
- Fixed an issue with
moon docker scaffold
where Rust projects in the workspace skeleton would fail to compile as they were missing a lib/main entry point. - Fixed an issue with
moon docker prune
where an unknown project type would trigger toolchain errors.
- Fixed an issue where task hashing would attempt to hash invalid file paths, when moon is located within a nested git repository.
- Fixed an issue where environment variable substitution would trigger recursively when referencing itself.
- We now include the exit code of a failing task in the logs for easier debugging.
- Fixed an issue where the wrong path was being displayed for the task message "in ...".
- Updated proto to v0.31.4 (from v0.31.2).
- Fixed
env
variable substitution not being able to reference values from an.env
file. - Fixed an issue where moon would move an existing proto binary when installing proto, triggering permission issues.
- Fixed an issue where deleted but uncommitted files would log a hashing warning.
- Fixed an issue where parsing
bun.lockb
would fail if usinggithub:
protocols.
- Updated proto to v0.31.2 (from v0.30.2).
- Updated our project constraint enforcement to take the new
stack
setting into account. For example, frontend applications can now depend on backend applications, where as previously they could not.
- Fixed an issue where VCS hooks were being created in Docker, triggering cache issues.
In v1.22, we made a change to affected tasks that
pass all inputs
as arguments, instead of passing .
. This change was made to not overzealously
pass files to the task that it doesn't care about, but it ended up causing problems for certain
commands.
We didn't want to revert the change, but it also wasn't easy to fix without causing other issues, so
as a compromise, we opted to introduce a new task option, affectedPassInputs
to handle this
functionality.
- Added
configuration
andscaffolding
variants to the projecttype
setting inmoon.yml
.- Updated project constraints to support these new variants.
- Added a
stack
setting tomoon.yml
, for categorizing which tech stack it belongs to.- Supports
frontend
,backend
,infrastructure
, andsystems
. - Added a
projectStack
field to the query language (MQL). - Added a
$projectStack
token variable for tasks. - Updated the
moon query projects
command to support a--stack
option, and include the stack in the output. - Updated the
moon project
command to include the stack in the output.
- Supports
- Added a
description
setting for tasks, for providing human-readable information.- Updated the
moon project
andmoon task
commands to include the description in the output.
- Updated the
- Added an
installArgs
setting for bun/npm/pnpm/yarn in.moon/toolchain.yml
, to customize the args used when installing dependencies. - Added a new built-in extension,
migrate-nx
, for migrating from Nx to moon.- Will convert all
nx.json
,workspace.json
, andproject.json
files.
- Will convert all
- Updated task input environment variables to support a wildcard match using
*
, for example$VITE_*
.- This will include all environment variables in the current process that starts with
VITE_
.
- This will include all environment variables in the current process that starts with
- Updated the
envFile
task option to support a list of file paths. - Updated the
migrate-turborepo
extension.- Removed the requirement of moon's project graph. Will now scan for turbo.jsons instead.
- Updated affected tasks to use
inputs
as the list of files provided, instead of.
.
- Fixed an issue where
bun install
was not running with--production
in Docker prune. - Fixed an issue where invalid IDs passed to certain commands would trigger a panic.
- Fixed an issue where
$PWD
in a task was pointing to the wrong directory.
- Updated
deno_plugin
to v0.9.1.- Added Linux ARM64 support (requires Deno >= v1.41).
- Updated
rust_plugin
to v0.8.1.- Uses the full triple target when installing and uninstalling toolchains.
- Updated Rust to v1.76.
- Updated proto to v0.30.2 (from v0.29.1).
- Fixed VCS hooks on Windows generating invalid PowerShell commands.
- Fixed a panic that would occur when running an action and path stripping would fail.
- Attempted fix for
liblzma.5.dylib
issues on macOS arm64.
- Added shallow checkout detection to help avoid failing Git commands.
- If detected in
moon ci
, is a hard failure. - If detected in
moon run
, will disable affected checks.
- If detected in
- Added Deno tier 3 support.
- Will download and install Deno into the toolchain when a
version
is configured. - Will parse the
deno.lock
lockfile to extract and resolve dependencies. - Will hash manifests and inputs for Deno specific caching.
- Added a
deno.version
setting to.moon/toolchain.yml
. - Added a
toolchain.deno
setting tomoon.yml
. - Updated
moon bin
andmoon docker
commands to support Deno.
- Will download and install Deno into the toolchain when a
- Added a new built-in extension,
migrate-turborepo
, with new functionality.- Replaces the previous
moon migrate from-turborepo
command. - Added Bun support behind a new
--bun
flag. - Added support for
globalDotEnv
,dotEnv
, andoutputMode
. - Scripts now run through a package manager, instead of
moon node run-script
. - Root-level tasks will now create a root
moon.yml
, instead of warning.
- Replaces the previous
- Added
unixShell
andwindowsShell
task options, so that the underlying shell can be configured per task. - Added
bun.inferTasksFromScripts
setting to.moon/toolchain.yml
, for compatibility with Node.js. - Added environment variable support to
fileGroups
. - Added a
@envs(group)
token function for referencing environment variables. - Added a
--quiet
global argument, for hiding non-critical moon output. - Deprecated the
moon node run-script
command. Run the task through a package manager instead, likenpm run
oryarn run
. - Updated tasks with glob-like arguments to automatically enabled the
shell
option, so that glob expansion works correctly. - Updated interactive tasks to not be shutdown when receiving a CTRL+C signal, and instead allow them to handle it themselves, and cleanup if necessary.
- Implemented a new console layer for writing to stdout/stderr.
- Logs are now buffered and written periodically.
- Previously they were written immediately, which required locking std each call.
- Should see some minor performance improvements.
- Fixed an issue where the action graph would create incorrect nodes when a tool utilizes dependency workspaces, and a project is not within the workspace.
- Fixed an issue where glob based arguments were overlay escaped.
- Fixed console checkpoints (the 4 squares) showing the wrong working directory.
- Updated proto to v0.30.0 (from v0.29.1).
- Removed the maximum concurrency limit from persistent tasks.
- Fixed
moon docker scaffold
not copying the project specificmoon.yml
file, resulting in a skewed project graph.
- Added a new extension plugin system.
- An extension is a WASM plugin that is not built into moon's core: https://github.com/moonrepo/moon-extensions
- Extensions can be executed with the new
moon ext
command. - The community can build and publish their own extensions!
- Added a
taskOptions
setting to.moon
task configs, allowing default task options to be defined.- These options will be merged and inherited as part of the configuration chain.
- Added an
optional
field to taskdeps
, allowing the dependency to be optional during inheritance. - Added a "Tags" view to the VSCode extension.
- Updated proto installation to trigger for all applicable commands, not just
moon run
,moon check
, andmoon ci
.- Will also use the global proto version if available when there's no internet connection, and the moon required proto version has not been installed.
- Fixed Git version parsing when using VFSForGit.
- Updated
bun_plugin
to v0.9. - Updated
node_plugin
andnode_depman_plugin
to v0.9.- Changed the
bundled-npm
andintercept-globals
settings to befalse
by default (instead oftrue
).
- Changed the
- Updated
rust_plugin
to v0.8.
- Updated proto to v0.29.1 (from v0.26.4).
This fixes a bad 1.19.2 release.
- Fixed another location where the
proto
binary was not available.
- Fixed
proto
binary not being available in a Dockerfile when runningmoon docker
commands. - Fixed our
@moonrepo/cli
postinstall script not working correctly for Bun Arm64.
- Removed the
experiments.interweavedTaskInheritance
setting from.moon/workspace.yml
. Interweaved inheritance is now always enabled (was previously true by default). - Removed the
experiments.taskOutputBoundaries
setting from.moon/workspace.yml
. We opted to remove boundaries entirely, as they caused more problems than solved. Task outputs may now overlap without issue.
- Updated
implicitDeps
in.moon/tasks.yml
and taskdeps
inmoon.yml
to support arguments and environment variables for the dependency target. - Updated the action graph and pipeline to not run the same target (but with different arguments and environment variable variations) in parallel, to avoid unexpected collisions.
- Updated VS Code extension to support multiple VS Code workspace folders.
- Improved code generation and templates:
- Added a
destination
field totemplate.yml
, to customize a default location. - Added a
extends
field totemplate.yml
, allowing templates to extend and inherit other templates. - Updated
[var]
syntax to support filters:[var | camel_case]
.
- Added a
- Updated
bun_plugin
to v0.7. - Updated
node_plugin
andnode_depman_plugin
to v0.7. - Updated
rust_plugin
to v0.6.
- Updated Rust to v1.75.
- Updated proto to v0.26.4 (from v0.25).
- Reworked duplicate project ID/alias detection to be more accurate. Will also now error instead of
warn when a duplicate is detected.
- For aliases, the error can be disabled with the new
experiments.strictProjectAliases
setting in.moon/workspace.yml
. - For project IDs, the error can not be disabled, as conflicting IDs will cause issues with the project graph.
- For aliases, the error can be disabled with the new
- Fixed glob based project locating to not log warnings when a file is found and it starts with
.
(ignore dotfiles). - Fixed project aliases potentially overwriting a project with the same name.
- Updated the proto installation step to download, unpack, and install using Rust, instead of relying on our Bash/PowerShell scripts. This should remove the requirement that openssl, tar, and other environment tools must exist.
- Updated proto to v0.25.3.
- Fixed more issues in relation to custom project IDs not resolving correctly.
- Improved some error messages with more information.
- Silenced proto migration warnings when ran in the context of moon.
- Fixed an issue where
@dirs
and@files
tokens didn't always work correctly inoutputs
. - Fixed the
@moonrepo/cli
package pulling in different@moonrepo/core-*
versions
- Updated proto to v0.25.2.
- Fixed an issue where we would install
proto
even when not required. - Fixed an issue where implicit dependencies were not resolving correctly when projects were renamed.
- Rewrote toolchain based task running to use a path based approach.
- Instead of manually locating an executable, we now rely on
PATH
to locate the executable. - Non-system tasks can now be wrapped in a shell using the
shell
option. - This approach will now benefit from proto shims and binaries.
- We'll also download and install the
proto
binary if it does not exist.
- Instead of manually locating an executable, we now rely on
- Reworked the
moon init
command.- Will no longer scaffold the toolchain configuration by default.
- The tool to scaffold into a toolchain can be passed as an argument.
- The path to initialize in is now behined the
--to
option. - Added support for the
bun
tool. - Simplified the workflow overall.
- Updated
moon.yml
to support customizing the project name using theid
field.- Can be used to override the project name derived in
.moon/workspace.yml
.
- Can be used to override the project name derived in
- Added a
MOON_INSTALL_DIR
environment variable, to control where themoon
binary is installed to.
- Fixed
moon upgrade
failing when not ran in a moon workspace. - Fixed
CODEOWNERS
being written with double trailing newlines.
- Updated
bun_plugin
to v0.6. - Updated
node_plugin
andnode_depman_plugin
to v0.6.1. - Updated
rust_plugin
to v0.5.
- Improved string allocation and performance for queries, task tokens, and process commands.
- Improved remote caching flow and handling.
- Updated proto to v0.25.
- Fixed an issue where executing moon (and indirectly proto) would run into privilege access issues on Windows.
- Fixed
typescript.includeProjectReferenceSources
andtypescript.syncProjectReferencesToPaths
settings not including project references that were manually added (not auto-synced). - Fixed the "a project already exists with alias" warnings when using Bun and Node together.
- Added canary release support.
- Enabled wasmtime caching, which should improve performance of WASM plugins by 10-20%.
- Updated proto to v0.23.7.
- Fixed an issue where we would fail to find Cargo binaries on Windows.
- Updated proto to v0.23.3.
- Fixed an issue where
cargo-binstall
would error when trying to install it and it already exists.
- Fixed the wrong version being reported by the CLI.
- Integrated full Bun support (tier 1-3).
- Will download and install Bun into the toolchain when a
version
is configured. - Will parse the
bun.lockb
lockfile to extract and resolve dependencies. - Will hash manifests and inputs for Bun specific caching.
- Added a
bun
setting to.moon/toolchain.yml
. - Added a
toolchain.bun
setting tomoon.yml
. - Updated
moon bin
andmoon docker
commands to support Bun. - Updated task
platform
to support "bun".
- Will download and install Bun into the toolchain when a
- Improved TypeScript support.
- Added a
typescript.root
setting to denote the TypeScript root. - Added a
typescript.includeSharedTypes
setting, for syncing a shared types path to all project'sinclude
. - Added a
typescript.includeProjectReferenceSources
setting, for syncing project reference files to all project'sinclude
. - Updated
typescript.syncProjectReferencesToPaths
setting to always include the wildcard, and not require an index file. - Improved project reference syncing and edge case handling.
- Added a
- Improved JavaScript support.
- Added
bun.rootPackageOnly
andnode.rootPackageOnly
settings to support the "one version rule" pattern. - Updated automatic dependency linking to use the
build
scope instead ofpeer
scope. This should alleviate some of the pain points withpackage.json
syncing.
- Added
- Fixed an issue where codegen would merge JSON/YAML files with the incorrect source.
- Updated file traversal to not walk outside of the workspace root.
- Updated Rust to v1.74.
- Updated proto to v0.23.0.
- Updated dependencies.
- Updated logs to now include nanoseconds.
- Update project graph hashing to include git ignored
moon.yml
files.
- Fixed Yarn v1.22.x download not unpacking correctly.
- Updated Yarn
node_depman_plugin
to v0.5.1.
- Updated
projects
globs to support ending inmoon.yml
. - Updated
node.dependencyVersionFormat
to fallback to a supported format when the chosennode.packageManager
does not support the configured (or default) version format. - Updated to proto v0.22.0.
- Fixed an issue where dependencies were being injected into the root
package.json
, when a root-level project was dependending on non-root project tasks.
- Updated
bun_plugin
to v0.5. - Updated
deno_plugin
to v0.5. - Updated
go_plugin
to v0.5. - Updated
node_plugin
andnode_depman_plugin
to v0.5. - Updated
python_plugin
to v0.2. - Updated
rust_plugin
to v0.4. - Updated
schema_plugin
(TOML) to v0.5.
- Fixed
moon ci
not treating dependents as "CI only" when running locally. - Fixed the MQL parser failing on projects that contain a
.
. - Fixed JSON comment stripping not handling docblock styled comments (
/** **/
).
- Added Bun as a supported Node.js package manager:
node.packageManager: 'bun'
. - Added components and targets support for the Rust toolchain.
- Added
rust.components
andrust.targets
settings to.moon/toolchain.yml
. - Will automatically be installed with
rustup
when the pipeline is ran.
- Added
- Added a
MOON_TOOLCHAIN_FORCE_GLOBALS
environment variable, that will force all toolchain tools to use the global binary available onPATH
, instead of downloading and installing. - Added an improved task inheritance chain resolver.
- Global and local tasks are now interweaved within the chain, where as previously global was built first, then local.
- To fallback to the previous behavior, set
experiments.interweavedTaskInheritance: false
in.moon/workspace.yml
.
- Added a new project type
automation
, for projects like E2E and integration testing. - Updated action graph cycle detection to list all nodes in the cycle (when detectable).
- Updated all npx calls to use a package manager equivalent. For example:
yarn dlx
,pnpm dlx
,bunx
. - Updated to support Yarn v4.
- Fixed an issue where
moon ci
andgit
would fail if there's only 1 commit on the base branch. - Fixed an issue where
runInCI
was not respected when a task is a dependency of an affected task. - Fixed an issue where the task
replace
merge strategy would not apply for empty values.
- Updated dependencies.
- Updated to proto v0.21.0.
- Pinned proto plugins to a fixed version instead of using latest.
- Fixed an issue where pnpm would fail to dedupe when its toolchain version is not using a fully-qualified version.
- Fixed an issue where
PROTO_OFFLINE
wouldn't use global binaries when available.
- Updated to proto v0.20.3.
- Fixed an issue where interactive/persistent flags weren't always bubbled up the the task runner.
- Updated to proto v0.20.
- Updated
moon run --interactive
to allow more than 1 target.
- Fixed an issue where "raw" codegen files were sometimes being rendered, and failing with invalid syntax.
- Fixed an issue where task dependents for the non-primary targets were being included in the action graph.
- Fixed an issue with the project graph that would create duplicate nodes for deeply nested cycles.
- Fixed an issue where a cycle would be created in the action graph for the
SyncProject
action type.
- Based on feedback, we've updated the automatic dependency linking to not apply when the target is the root-level project. This should alleviate all unwanted cycles.
- Fixed an issue where Node.js dependency syncing would fail on
build
dependencies, and be over zealous with root-level projects. - Improved detection of Rust
cargo-binstall
package.
- Tasks that depend (via
deps
) on other tasks from arbitrary projects (the parent project doesn't implicitly or explicitly depend on the other project) will now automatically mark that other project as a "peer" dependency. For example, "b" becomes a peer dependency for "a".
- Rewrote the dependency graph from the ground-up:
- Now known as the action graph.
- All actions now depend on the
SyncWorkspace
action, instead of this action running arbitrarily. - Cleaned up dependency chains between actions, greatly reducing the number of nodes in the graph.
- Renamed
RunTarget
toRunTask
, including interactive and persistent variants.
- Updated the action graph to process using a topological queue, which executes actions on-demand in
the thread pool when they are ready (dependencies have been met). Previously, we would sort
topologically into batches, which worked, but resulted in many threads uselessly waiting for an
action to run, which was blocked waiting for the current batch to complete.
- For large graphs, this should result in a significant performance improvement.
- Persistent tasks will still be ran as a batch, but since it's the last operation, it's fine.
- Released a new GitHub action,
moonrepo/setup-toolchain
, that replaces bothsetup-moon-action
andsetup-proto
.
- Added a
moon action-graph
command. - Added a
--dependents
argument tomoon action-graph
. - Added the ability to skip non-
RunTask
actions using environment variables. - Deprecated the
moon dep-graph
command.
- Fixed an issue where task dependents (via
moon ci
ormoon run --dependents
) wouldn't always locate all downstream tasks.
- Added in-memory caching to project graph file system lookup operations.
- Updated Rust to v1.72.
- Temporarily fixed the "A dependency cycle has been detected for (unknown)" issue.
- Fixed an issue where Git hooks were not created properly when using Git worktrees.
- Fixed a panic when attempting to clean/parse a JSON string.
- Fixed an issue where
moon docker scaffold
was too greedy and would copy files it shouldn't. - Fixed some
PATH
inconsistencies when executing npm/pnpm/yarn binaries. - Fixed codegen
lower_case
andupper_case
stripping characters.
- Updated
moon dep-graph
to support a task in closest project, similar tomoon run
. - Updated to proto v0.19.
- Fixed an issue where local tasks could not extend global tasks using the
extends
setting.
- Fixed an issue where non-YAML files in
.moon/tasks
would be parsed as YAML configs. - Fixed an issue where arguments were not passed to generated Git hooks.
- Fixed an issue where moonbase would fail to sign in in CI.
- Fixed an issue where a root project with aliases, that has self referential tasks, would trigger a stack overflow error.
- Fixed an issue when using a global version of npm/pnpm/yarn, and the wrong arguments were being passed to commands.
- Fixed the "running for 0s" message constantly logging for interactive tasks.
- Added a
moon run
shorthand, where "run" can be omitted. For example,moon run app:build
can be written asmoon app:build
.- This only works for targets that contain a
:
.
- This only works for targets that contain a
- Updated
moon ci
to support running an explicit list of targets, instead of running everything. - Updated
node.version
,npm.version
,pnpm.version
,yarn.version
, andrust.version
to support partial versions and requirements/ranges like1.2
,1
, or^1.2
. - Updated
.moon/tasks
to support nested folders, for better organization of task files.
- Improved handling of certificates and proxies.
- Updated to proto v0.18.
- Fixed an issue where the
projectName
query would not work correctly.
- Updated to proto v0.17.
- Fixed an issue where tool globals directory was not being correctly located.
- Fixed a panic when using the
rust
toolchain and attempting to installbins
.
- Fixed an issue where
pnpm
oryarn
would panic based on configuration combination.
- Fixed an issue where tasks depending on arbitrary project tasks would fail to build a partial project graph.
- Fixed an issue where task
deps
within global tasks would not apply exclude/rename overrides. - Fixed an issue with asset/binary files not working correctly with codegen templates.
- Fixed an issue where
moon upgrade
would require a workspace.
- Added an
allowFailure
task option, allowing tasks to fail without bailing the entire run.- Tasks allowed to fail cannot be depended on.
- Added colors to command line
--help
menus. - Updated
runner.archivableTargets
to support tag scoped targets. - Updated
moon query tasks
to filter out projects with no tasks. - Updated
moon query tasks --affected
to filter based on affected task, instead of affected project. - Updated proto integration from v0.12 to v0.16:
- proto tools are now powered by WASM plugins, which will be downloaded by moon on-demand.
- Yarn v2+ will now download the requested version, and not downgrade to latest v1.
- Please report any issues or degradations from this migration.
- View entire proto changelog.
- Fixed
moon init
not using the remote default branch when scaffolding.
- Cleaned up moonbase and launchpad implementations.
- Updated Rust to v1.72.
- Improved failed task error messages by including information about the failing task.
- Fixed an issue where failed tasks would be cached.
- Fixed an issue where errors lost information while bubbling up the stack.
- Added git worktree support (experimental).
- Added an
interactive
field to task options. This marks tasks as interactive, so they can use stdin. - Added an
extends
field to task configurations. This allows tasks to extend and inherit settings from sibling tasks. - Updated task
env
values to support token functions and variables. - Updated task
outputs
to support negated globs. - Will now log a warning to the console if a configuration file uses the
.yaml
extension.
- Fixed an issue where
moon ci
would no run affected targets based on touched files.
- Improved caching and hashing layers.
- Fixed an issue where tasks using output globs would not always hydrate from the cache.
- To support the new project graph, the order and priority in which environment variables are resolved has changed. Previously it was task-level > .env file > project-level. Now it's task-level > project-level > .env file.
- Rewrote the project graph from the ground-up:
- Lazily built using a multi-pass approach.
- Graph edges now indicate the type of relationship: development, production, build, peer.
- Updated
moon project-graph --json
to include the fully expanded graph data.
- Identifiers (project names, file groups, etc) can now be prefixed with underscores (
_
). - Added Poetry detection support for Python projects.
- Added an
experiments
setting to.moon/workspace.yml
. - Tasks
- Environment variables in
command
andargs
are now substituted. - Task
deps
can now depend on tag targets (#tag:task
). - Task
env
are now used when substituting values, alongside system-level. - Task
outputs
can now use token variables.
- Environment variables in
- Codegen
- Templates can be used as-is without rendering with Tera by appending
a
.raw
extension.
- Templates can be used as-is without rendering with Tera by appending
a
- Query language
- Updated
project
to query both project name AND alias. - Added
projectName
for only querying by name.
- Updated
- Fixed an issue where newer moonbase secret keys would fail to sign in.
- Fixed an issue where
@files
token would not invalidate the project graph cache. - Fixed an issue where changing
.env
would not invalidate the project graph cache.
- Updated to proto v0.13.
- Updated Rust to v1.71.
- Fixed an issue where
.gitignore
patterns weren't always applied correctly. - Fixed an issue where
git hash-object
commands would fail if moon was setup in a sub-directory. - Fixed an issue where our "upgrade moon" message would print when requesting JSON output
(
--json
), resulting in JSON parsing errors.
These changes are fixing edge cases that should not have been allowed, but may break existing repos. If these changes become troublesome, we'll revert.
- Tasks that configure the same outputs will now error. This change was made as multiple tasks writing to the same output location will cause caching and hydration issues.
- If a dependency of a task failed to run or was skipped, then the parent task will now be skipped.
- Added support for
MOON_BASE
andMOON_HEAD
environment variables.- Will be used when diffing across branches or commits.
- Works for both
moon ci
andmoon run
.
- Added
deno.bins
setting to.moon/toolchain.yml
. - Added
hasher.ignorePatterns
andhasher.ignoreMissingPatterns
settings to.moon/workspace.yml
. - Updated
moon ci
to include a summary of all failed actions. - Updated
moon run
to compare against the previous commit when running on the default branch and using--remote
. - Updated
rust.bins
in.moon/toolchain.yml
to support an object for each bin entry.- Can denote bins as CI or local only.
- Can force install bins.
- Updated the run report to include stderr/stdout for all attempts.
- Fixed an issue where failed target run attempts would not appear in the run report.
- Added a new in-depth "Debugging a task" guide.
- Updated to proto v0.12.
- Modernized the code generator and project constraints implementation.
- Renamed runfile to snapshot throughout.
- Fixed a panic when attempting to execute an npm package who's binary is purely Bash.
- Fixed a panic when parsing the output of
git --version
.
- Added VCS hooks management support.
- Added
vcs.hooks
andvcs.syncHooks
settings to.moon/workspace.yml
. - Added
moon sync hooks
command.
- Added
- Added
--clean
and--force
flags tomoon sync codeowners
command. - Updated
moon init
to:- Detect an applicable VCS provider and set the
vcs.provider
setting. - Convert a detected tool version to a fully-qualified semantic version.
- Detect an applicable VCS provider and set the
- Node.js
- Moved syncing logic from
InstallNodeDeps
action toSetupNodeTool
action. This includes syncingpackageManager
,engines
, and version files. This should feel more natural.
- Moved syncing logic from
- Fixed an issue where task hashes would be different between Windows and Unix machines.
- Root cause is that arguments would use different path separators.
- Fixed an issue where
dev
,start
, orserve
tasks would not always be marked aslocal
. - Fixed an issue where inherited tasks parameters (inputs, deps, etc) would sometimes be lost based on the merge strategy.
- Fixed an issue with dependency graph cycle detection.
- Updated to proto v0.11.
- Dropped SVN support since it was never finished and doesn't work.
- Improved VCS file handling, caching, and performance.
- Fixed an issue where command line arguments were incorrectly escaped in Bash shells.
- Updated
CODEOWNERS
to take.editorconfig
into account when generating. - Fixed an issue where
git
branch commands would fail on <= v2.22. - Fixed an issue where disabling moon's cache would not disable proto's cache.
- Fixed an issue where failed processes would not bubble up the original error.
- Fixed TypeScript type issues in
@moonrepo/types
. - Fixed JSON schema issues.
- Updated to proto v0.10.5.
- Added code owners (
CODEOWNERS
) support.- Added
owners
setting tomoon.yml
. - Added
codeowners
setting to.moon/workspace.yml
. - Added
moon sync codeowners
command.
- Added
- Added
vcs.provider
setting to.moon/workspace.yml
. - Added a new action to the graph,
SyncWorkspace
, that'll be used for workspace-level checks. - Added
workspace.syncing
andworkspace.synced
webhooks. - Added
MOON_OUTPUT_STYLE
andMOON_RETRY_COUNT
environment variables. - Rust
- Improved Cargo workspace root and members detection.
- Deprecated the
moon sync
command, usemoon sync projects
instead. - Refactored task inputs, outputs, and file groups to be more accurate.
- Updated Rust to v1.70.
- Fixed an issue where glob task outputs were not invalidating a previous build.
- Fixed an issue where changing inputs would not mark a task as affected, when a moon workspace is nested within a repository.
- Improved handling of ctrl+c signal detection and shutting down processes.
- Node.js
- Fixed an issue where some workers/packages would fail while inheriting parent args.
- Rust
- Fixed an issue where
cargo generate-lockfile
would run in the wrong directory.
- Fixed an issue where
- Fixed some configuration bugs.
- Fixed initial bootstrap log messages not being logged.
- Fixed an issue where hydrated caches would be partially written.
- Rewrote configuration from the ground-up:
- Strict parsing to bubble up typos, invalid nesting, and more.
- Recursive merging and validation.
- And many more improvements.
- Rewrote error handling and rendering.
- Improved error messages.
- Added custom error messages for certain situations.
- Added support for npm lockfile v3 format.
- Fixed an issue where colors were not being forced when passing
--color
. - Fixed an issue where
--log
orMOON_LOG
would error when running nestedmoon
commands.
- Updated to proto v0.10.
- Updated Cargo dependencies.
- Fixed poor argument parsing of command line operators like
;
,&&
, etc.
- Added support for persistent tasks.
- Added
persistent
task option tomoon.yml
(is also set vialocal
). - Persistent tasks run last in the dependency graph.
- Added
- Updated long running processes to log a checkpoint indicating it's still running.
- Updated task
platform
detection to only use the platform if the toolchain language is enabled. - Started migration to a newer/better logging implementation.
- Fixed an issue where a task would panic for missing outputs.
- Reworked file groups to use workspace relative paths, instead of project relative.
- Reworked processes to better handle command line arguments, shells, and piped stdin input.
- Fixed an issue where tasks would run in CI even though
runInCI
was false. - Fixed an issue where npm, pnpm, and yarn shims were not being used from proto.
- Added Rust tier 2 and 3 language support!
- Added
rust
as a supportedplatform
variant. - Added
rust
setting to.moon/toolchain.yml
. - Added
toolchain.rust
setting tomoon.yml
. - Added support for
rust
setting in.prototools
. - Updated
moon init
andmoon bin
commands to support Rust. - Updated
moon docker scaffold
command to scaffold Cargo files. - Updated
moon docker prune
command to delete thetarget
directory.
- Added
- Fixed an issue where task type was
run
when it should betest
.
- Reworked
moon init --yes
to not enable all tools, and instead enable based on file detection. - Cleaned up
moon init
templates. Will no longer scaffold.moon/tasks.yml
.
- Added a new target scope for tags,
#tag:task
, which will run a task for all projects with the given tag. - Updated
moon query projects
andmoon query tasks
to support MQL for filtering results. - Deprecated
node.aliasPackageNames
setting. Aliases will always be loaded now.
- Upgraded to proto v0.8.
- Updated JSON schemas with missing fields.
- Rewrote ID handling for future features.
- Fixed an issue where a
pnpm-lock.yaml
with no packages would fail to parse.
- Fixed a few issues during input hashing:
- Would attempt to include deleted files from
git status
, which would log a warning. - Would attempt to hash directories for root-level projects, which would log a warning.
- Would attempt to include deleted files from
- Upgraded to proto v0.7.2.
- Introducing MQL, a custom query language for running advanced filters on the project graph.
- Added a
--query
option to themoon run
command, allowing for advanced targeting. - Updated config loading to be strict and error on unknown fields for non-root fields.
- Fixed an issue where proto would fail to parse
manifest.json
.
- Updated Rust to v1.69.
- Upgraded to proto v0.7.
- Improved accuracy of our globbing utilities, especially around dotfiles/dotfolders.
- Added
node_modules/.bin/moon
as another lookup location for themoon
binary when running globally.
- Fixed an issue where running tasks were not killed, resulting in background zombie processes.
- Fixed a few version comparisons between Yarn legacy and berry.
- Updated dependency deduping to not run if the manager version is unknown.
- Fixed an issue where
$projectAlias
token was not substituting correctly.
- Added task inheritance based on tags in the form of
.moon/tasks/tag-<name>.yml
.
- Fixed an issue where setting
MOON_COLOR
would fail validation.
- Upgraded to proto v0.6.
- Improvements to file system operations.
- Minor improvements to performance.
- Fixed an issue where token function resolving would cause massive performance degradation.
- Added token variable substitution support for task
command
s. - Added a
moon task
command, for viewing resolved information about a task. - Updated
moon run
to be able to run tasks in the closest project based on current working directory. - Updated
noop
tasks to be cacheable, so that they can be used for cache hit early returns.
- Upgraded to proto v0.5.
- Support pnpm v8's new lockfile format.
- Better handling for task's that execute the
moon
binary.
- Added
hasher.batchSize
to control the number of files to be hashed per batch. - Updated new version checks to include an optional message.
- Fixed an issue where non-input matching files were being passed to
git hash-object
during the inputs collection process. For large projects, you'll see improved performance. - Fixed an issue where root-level input globs were not matching correctly when
hasher.walkStrategy
was "vcs". - Fixed a deadlock where some concurrent tasks via a parent
noop
task would not start or run in parallel.
- Upgraded to proto v0.4.
- Switched to a semaphore for restricting task concurrency.
- Fixed an issue where
moon run
ormoon check
would hang when not running in a workspace. - Fixed an issue where workspace root finding will locate
~/.moon
.
- Updated
envFile
to log a warning instead of triggering an error when.env.
is missing. - Updated
envFile
to support workspace relative paths when prefixed with/
. - Fixed an issue where
.moon/tasks/*.yml
were not scaffolded intoDockerfile
s. - Fixed an issue where a CI environment wasn't detected for some CI providers.
- Fixed a project cache issue when running tasks inside and outside of a container.
- Updated the installer scripts and the
moon upgrade
command to install themoon
binary to~/.moon/bin
. - Removed Homebrew support.
- Added a
constraints
setting to.moon/workspace.yml
, allowing for project/dep relationships to be enforced. - Added a
hasher.warnOnMissingInputs
setting to.moon/workspace.yml
. - Added a
shell
task option tomoon.yml
that will wrap system tasks in a shell. - Added a
tags
setting tomoon.yml
for project categorization. - Added a
--tags
option to themoon query projects
command. - Added a
telemetry
setting to.moon/workspace.yml
. - Added 5 new token variables:
$projectAlias
,$date
,$time
,$datetime
, and$timestamp
. - Updated task
env
and.env
files to support variable substitution using${VAR_NAME}
syntax. - Updated system tasks to now execute within a shell.
- Reworked how task inputs are resolved when empty
[]
is configured, and all**/*
is inherited.
- Updated the new version check to only run on the
check
,ci
,run
, andsync
commands. - Will now detect 16 additional CI environments: Agola, AppCenter, Appcircle, Azure, Bamboo, Bitrise, Buddy, Cirrus, Codemagic, Heroku, Jenkins, Jenkins X, Netlify, TeamCity, Vela, Woodpecker.
- Will now attempt to detect CD environments for more accurate metrics.
- We now create a cache directory tag in
.moon/cache
.