Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Version Packages #949

Merged
merged 1 commit into from
Dec 15, 2023
Merged

Version Packages #949

merged 1 commit into from
Dec 15, 2023

Conversation

scott-rc
Copy link
Collaborator

@scott-rc scott-rc commented Oct 27, 2023

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 to ggt 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 logs

      This 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 format

      This 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:

    • Check if an app is in a deployable state
    • Alert the user if there are any issues with the app
    • Prompt the user how they would like to continue with the deploy if there are issues (skipped if they pass along the --force flag)
    • Send back deploy status updates once the deploy is started and until the deploy has completed
  • 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 while ggt 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:

    • Files that exist locally but not in your Gadget environment
    • Files that exist in your Gadget environment but not locally
    • Files that exist locally and in your Gadget environment but have different contents
    • Files that exist locally and in your Gadget environment but have different permissions
      • Only supported when the local filesystem is macOS or Linux

    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 time ggt sync was run.

    You will be prompted to resolve conflicts if:

    • Both filesystems updated the same file with different contents
    • One filesystem updated a file and the other deleted it

    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.

    # keep your local filesystem's conflicting changes
    $ ggt sync --prefer=local
    
    # keep your Gadget environment's conflicting changes
    $ ggt sync --prefer=gadget

    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 run ggt sync in a script or CI/CD pipeline and ensure that the sync will not hang waiting for user input.

    $ ggt sync --once --prefer=local
  • 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 the ggt 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

  • 87e630b: Bump @sentry/node from 7.86.0 to 7.87.0
  • 628c24f: Bump @sentry/node from 7.80.1 to 7.81.0
  • 9871c6e: Bump @sentry/node from 7.84.0 to 7.85.0
  • 82536a8: Bump @sentry/node from 7.79.0 to 7.80.0
  • 9982d1d: Bump ws from 8.15.0 to 8.15.1
  • ae25c76: Bump @sentry/node from 7.75.1 to 7.76.0
  • dbbbc96: Bump @sentry/node from 7.81.1 to 7.82.0
  • f9385ea: Bump ignore from 5.2.4 to 5.3.0
  • 041cfe4: Bump fs-extra from 11.1.1 to 11.2.0
  • 197bec8: Bump serialize-error from 11.0.2 to 11.0.3
  • 0a555c0: Bump @sentry/node from 7.82.0 to 7.84.0
  • 29c6ed0: Bump @sentry/node from 7.80.0 to 7.80.1
  • bdc646d: Bump @sentry/node from 7.76.0 to 7.77.0
  • 8075a9b: Bump @sentry/node from 7.85.0 to 7.86.0
  • 4b67530: Bump @inquirer/select from 1.3.0 to 1.3.1
  • 188e22f: Bump @sentry/node from 7.77.0 to 7.79.0
  • e638ad0: Bump @sentry/node from 7.87.0 to 7.88.0
  • bfb6152: Bump ws from 8.14.2 to 8.15.0
  • d69f01f: Bump @sentry/node from 7.81.0 to 7.81.1

@scott-rc scott-rc force-pushed the changeset-release/main branch 7 times, most recently from df3610d to 34b34f5 Compare November 3, 2023 19:39
@scott-rc scott-rc force-pushed the changeset-release/main branch 10 times, most recently from d4c8f78 to ffe1786 Compare November 10, 2023 20:05
@scott-rc scott-rc force-pushed the changeset-release/main branch 11 times, most recently from 98e3326 to bcc4ef2 Compare November 20, 2023 19:30
@scott-rc scott-rc force-pushed the changeset-release/main branch 2 times, most recently from b176b53 to ced18f5 Compare November 21, 2023 05:03
@scott-rc scott-rc force-pushed the changeset-release/main branch 16 times, most recently from e916e57 to a5c1c43 Compare December 12, 2023 18:33
@scott-rc scott-rc force-pushed the changeset-release/main branch 10 times, most recently from 6b79efd to 4103f9a Compare December 15, 2023 16:26
@scott-rc scott-rc merged commit 594f4d8 into main Dec 15, 2023
7 checks passed
@scott-rc scott-rc deleted the changeset-release/main branch December 15, 2023 17:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant