Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.
Releases
ggt@0.4.0
Minor Changes
770beb1: We made some improvements to our debug logs!
Previously, we were using the
debug
package to log messages. This was good at first, but now that we're adding more features toggt
we need more control over our logs. We want to be able to output structured logs, control the verbosity, and output them as JSON so that we can pipe them to another tool or parse them in a script.To accomplish this, we've added 2 new flags:
-v, --verbose
to output structured logsThis replaces the
--debug
flag, which was a boolean flag that would print out all logs. This new flag is a counter, so you can use it multiple times to increase the verbosity of the logs. Currently, there are 3 levels of verbosity:-v
= INFO-vv
= DEBUG-vvv
= TRACE--json
to print out logs in JSON formatThis is useful if you want to pipe the logs to another tool, or if you want to parse the logs in a script.
ec1dcd7: We have added a new command to ggt - the deploy command!
Users can now run
ggt deploy
to deploy their app to production straight from the CLI.ggt deploy
will:--force
flag)346dfa6: Improvements to
ggt sync
!Improved de-sync detection and conflict resolution:
ggt sync
can now detect all discrepancies between your local filesystem and your Gadget environment's filesystem. Previously, if a file was deleted locally whileggt sync
was not running,ggt sync
could not detect that the file was deleted and would not delete the file in your Gadget environment.Now,
ggt sync
can detect the following discrepancies:When
ggt sync
starts, it will compare your local filesystem to your Gadget environment's filesystem and calculate the changes that have occurred since the last timeggt sync
was run.You will be prompted to resolve conflicts if:
Otherwise,
ggt sync
will automatically merge the changes from both filesystems and begin watching for changes.With the new de-sync detection in place, we now have the technology to solve the dreaded "Files version mismatch" error that causes
ggt sync
to crash so often. Be on the lookout for a fix to this error in the near future! 👀New
--prefer
flag:ggt sync
has a new--prefer
flag that will resolve conflicts in favor of the specified filesystem. This is useful if you always want to resolve conflicts in favor of your local filesystem or your Gadget environment's filesystem.New
--once
flag:ggt sync
has a new--once
flag that will only sync local filesystem once and then exit. This flag in combination with--prefer
is useful if you want to runggt sync
in a script or CI/CD pipeline and ensure that the sync will not hang waiting for user input.7dd74be: We got the
ggt
npm package name! 🎉Gadget now owns the
ggt
package on NPM! This means you can turn this:$ npx @gadgetinc/ggt@latest sync ~/gadget/example --app=example
Into this:
$ npx ggt@latest sync ~/gadget/example --app=example
If you've already installed
@gadgetinc/ggt
globally, you'll need to uninstall it first:$ npm uninstall -g @gadgetinc/ggt # or $ yarn global remove @gadgetinc/ggt
Then you can install the
ggt
package:$ npm install -g ggt@latest # or $ yarn global add ggt@latest
It's a small change, but it's less typing and easier to remember. We hope you enjoy it!
We're going to keep the
@gadgetinc/ggt
package up-to-date with theggt
package, so you can continue to use@gadgetinc/ggt
if you prefer. We'll let you know if we ever decide to deprecate@gadgetinc/ggt
.Patch Changes