Skip to content

Releases: gadget-inc/ggt

v1.0.3

28 May 21:42
08d1274
Compare
Choose a tag to compare

Patch Changes

  • 55ec815: Bump simple-git from 3.23.0 to 3.24.0

  • 74c891e: Bump ws from 8.16.0 to 8.17.0

  • abe0c7b: Bump @sentry/node from 7.110.0 to 7.110.1

  • b13336e: Bump zod from 3.23.0 to 3.23.4

  • 7d1c6dc: Bump watcher from 2.3.0 to 2.3.1

  • 4d064ad: Bump zod from 3.23.4 to 3.23.5

  • aa0c6e6: Bump cli-table3 from 0.6.4 to 0.6.5

  • e7969d5: Bump p-map from 7.0.1 to 7.0.2

  • 48400d8: Bump ansi-escapes from 6.2.1 to 7.0.0

  • 6a4d322: Bump graphql-ws from 5.15.0 to 5.16.0

  • 655a5ea: Bump dayjs from 1.11.10 to 1.11.11

  • f33d833: Bump zod from 3.22.4 to 3.22.5

  • 998ca41: Bump @sentry/node from 7.107.0 to 7.108.0

  • a1f4716: Bump cli-table3 from 0.6.3 to 0.6.4

  • 3fec44a: Bump @swc/helpers from 0.5.8 to 0.5.9

  • 40e4d1f: Bump @sentry/node from 7.111.0 to 7.112.1

  • 8f751b1: Bump @sentry/node from 7.109.0 to 7.110.0

  • b844d41: Bump @sentry/node from 7.112.1 to 7.112.2

  • c26fdd1: Bump @swc/helpers from 0.5.7 to 0.5.8

  • f2c6a85: Bump @sentry/node from 7.113.0 to 7.114.0

  • 41e9fe6: Bump @sentry/node from 7.112.2 to 7.113.0

  • b3211ae: Bump ansi-escapes from 6.2.0 to 6.2.1

  • bb2e48b: Bump execa from 8.0.1 to 9.0.2

  • f28f41b: Bump @sentry/node from 7.110.1 to 7.111.0

  • 82819ab: Bump zod from 3.23.6 to 3.23.8

  • 6bfe832: Bump @sentry/node from 7.108.0 to 7.109.0

  • ee3256c: Bump zod from 3.23.5 to 3.23.6

  • 25e8de0: Bump zod from 3.22.5 to 3.23.0

  • 3ef52c3: Bump semver from 7.6.1 to 7.6.2

  • b9a643a: Bump execa from 9.0.2 to 9.1.0

  • e5ae6e3: Bump semver from 7.6.0 to 7.6.1

  • 8d8d922: New command! ggt add

    The ggt add command enables you to conveniently add a model, action, or route to your gadget project directly from your local development environment.

v1.0.2

22 Mar 18:29
571bf9f
Compare
Choose a tag to compare

Patch Changes

  • 0327764: Fix Unexpected server response: 404

    ggt was always using the --development url when subscribing to Gadget's GraphQL API. This was fine if your app had an environment named development, but would fail with a 404 if your app didn't have an environment named development.

v1.0.1

20 Mar 17:47
88a132a
Compare
Choose a tag to compare

Patch Changes

  • ccf9e4d: Bump simple-git from 3.22.0 to 3.23.0

  • 0944809: Bump @sentry/node from 7.106.1 to 7.107.0

  • 8c9672f: Bump mimic-function from 5.0.0 to 5.0.1

  • 50af8a5: Bump @sentry/node from 7.106.0 to 7.106.1

  • e1abd14: Cleanup empty directories.

    We've improved how ggt calculates which empty directories need to be removed. This should result in fewer empty directories being left behind while running ggt dev.

  • b838cd3: Bump get-port from 7.0.0 to 7.1.0

  • 2bedcf2: Bump @swc/helpers from 0.5.6 to 0.5.7

  • e3d3ca6: Handle existing files in the .gadget/backup/ directory.

    When ggt needs to backup a file that already exists in the .gadget/backup/ directory, it will now remove the existing file before creating the backup. This should prevent the following error from occurring:

    Error: ENOTDIR: not a directory, lstat '.gadget/backup/routes/webhooks/POST-github.js'
    

v1.0.0

11 Mar 08:38
48b5005
Compare
Choose a tag to compare

Major Changes

  • c420a54: Require Node 18 or later

    ggt requires Node 18 or later to run

    Node 16 reached End-of-Life (EOL) on 2023-09-11:

    This means Node 16 no longer receives security updates and bug fixes.

    ggt runs on your computer, so it's important to use a supported version of Node to ensure you have the latest security updates. Your Gadget environment will continue to use the Node version specified in your Framework version.

  • 91de55b: Release v1.0.0

    ggt v1.0.0 is here!

    We're excited to announce the release of ggt v1.0.0! This release is the culmination of months of hard work and includes a bunch of new commands to take advantage of Gadget's v1 launch week 👀

    Let's take a look at what's new:

    ggt dev

    ggt dev replaces ggt sync and is the new and improved way to develop your Gadget app locally. It comes with a fresh new look and feel, making sure you always know which environment and git branch you're developing on.

    That's right, ggt dev is git and multi-environment aware, and comes with a new --env flag to change which environment you're developing on.

    ggt dev example

    [!NOTE]

    ggt sync is now deprecated and will be removed in a future release. From now on, if you run ggt sync, ggt dev will be run instead.

    ggt status

    Now that you can develop on multiple environments, it's important to know which environment you're currently developing on. That's where ggt status comes in. It shows you the current environment and git branch you're developing on, as well as the status of your local files compared to your environment's files.

    ggt status example

    ggt push and ggt pull

    When you need to push your local files to your environment, or pull your environment's files to your local machine without having ggt
    continue to watch for changes, you can use ggt push and ggt pull respectively.

    ggt push and ggt pull are also environment aware, so you can use the --env flag to specify which environment you want to push or pull from.

    ggt push example

    ggt deploy

    Once you're ready to deploy your environment to production, you can use ggt deploy. This command will ensure your environment's files are up to date with your local files, and then deploy your environment to production 🎉

    ggt deploy example

    ggt open

    Finally, we've added ggt open to quickly open your Gadget app in your default browser. Run ggt open --help to see all the places you can open your browser to.

    ggt open example

    This is just the beginning

    Even though ggt v1.0.0 is here, we're not done yet. We have a lot of exciting features and improvements planned for the future. Don't be surprised to see a few v1.0.x releases in the coming days as we iron out any kinks the community finds 😅

    We hope you enjoy the new ggt commands and the new ggt dev experience. We're excited to see what you build with Gadget v1!

Patch Changes

  • c48efcb: Bump @sentry/node from 7.103.0 to 7.104.0
  • 163e72b: Bump @sentry/node from 7.105.0 to 7.106.0
  • c939101: Bump @swc/helpers from 0.5.3 to 0.5.6
  • 2366c1c: Bump graphql-ws from 5.14.3 to 5.15.0
  • ece8f55: Bump string-width from 6.1.0 to 7.1.0
  • 9ac8c78: Bump @sentry/node from 7.101.0 to 7.101.1
  • 3404930: Bump @sentry/node from 7.95.0 to 7.98.0
  • 147057f: Bump @sentry/node from 7.102.1 to 7.103.0
  • f80c289: Bump ignore from 5.3.0 to 5.3.1
  • 7ea926a: Bump semver from 7.5.4 to 7.6.0
  • 3991c3d: Bump @sentry/node from 7.93.0 to 7.94.1
  • 2402194: Bump p-map from 6.0.0 to 7.0.1
  • 4dd62aa: Bump @sentry/node from 7.102.0 to 7.102.1
  • 96f7e19: Bump @sentry/node from 7.94.1 to 7.95.0
  • ecef4e7: Bump open from 10.0.4 to 10.1.0
  • 56366c0: Bump find-up from 6.3.0 to 7.0.0
  • ec9a401: Bump @sentry/node from 7.104.0 to 7.105.0
  • e95a97f: Bump @sentry/node from 7.101.1 to 7.102.0
  • 50907f3: Bump @sentry/node from 7.98.0 to 7.101.0

v0.4.10

17 Jan 15:28
3ae2df9
Compare
Choose a tag to compare

Patch Changes

  • 9ce8743: Handle new GGT_FILES_VERSION_MISMATCH error.

v0.4.9

12 Jan 15:51
1f1c535
Compare
Choose a tag to compare

Patch Changes

  • adc1645: Bump @sentry/node from 7.91.0 to 7.92.0
  • fced7a6: Bump @sentry/node from 7.92.0 to 7.93.0
  • 5534551: Retry errors when backing up files on Windows more often.
  • bb06525: Retry EADDRNOTAVAIL and EHOSTUNREACH errors and retry failed http requests more often.
  • 3b34a05: Display the primary domain for the /edit + playground links

v0.4.8

04 Jan 18:05
0817557
Compare
Choose a tag to compare

Patch Changes

  • 346ceb8: Bump ws from 8.15.1 to 8.16.0
  • b1d54bb: Bump @sentry/node from 7.90.0 to 7.91.0
  • 2ce747e: Bump p-retry from 6.1.0 to 6.2.0
  • 9056880: Automatically retry GraphQL query errors
  • cc1151c: Run yarn install on initial sync

v0.4.7

21 Dec 15:28
6a66e8f
Compare
Choose a tag to compare

Patch Changes

  • b55345e: ggt can now recover from "Files version mismatch" errors! 🎉

    Gadget has a concept of a "files version" which keeps track of the state of your Gadget environment's files. Every time your files change, Gadget increments your files version.

    When ggt sends files to Gadget, it also sends along the files version it expects Gadget to be at. If Gadget's files version matches the one ggt sent, then Gadget will accept the changes and increment its files version. If Gadget's files version doesn't match the one ggt sent, then Gadget will refuse the changes and send back a "Files version mismatch" error like this:

    Gadget responded with the following error:
    
      Files version mismatch, expected 67 but got 68
    

    There are 2 common causes for this error:

    • You make a change that causes Gadget to generate files and you don't receive those files before sending more changes to Gadget.
    • Multiple people are syncing at the same time and one person sends changes to Gadget before receiving another persons changes.

    Before, ggt didn't have a reliable way to detect and resolve de-syncs so it would crash and force you to restart 😞

    However, now that we've improved ggt's de-sync detection, it can automatically recover from "Files version mismatch" errors by re-syncing and continuing to watch for changes like normal!

    If the changes that caused the "Files version mismatch" error are conflicting, then ggt will prompt you to choose which changes to keep before continuing to watch for more changes, the same way it does when you first start syncing. If you always want to keep your local changes during a "Files version mismatch" error, you can use the --prefer=local flag.

    We hope this makes your development experience with Gadget more enjoyable.

    Happy Holidays! 🎄🎁

  • 3ef4c57: Retry errors when sending files to Gadget

  • 8c02697: Bump @sentry/node from 7.89.0 to 7.90.0

  • 00d3285: Bump graphql-ws from 5.14.2 to 5.14.3

  • 48c8f7b: Bump @sentry/node from 7.88.0 to 7.89.0

v0.4.6

18 Dec 23:17
1aa0970
Compare
Choose a tag to compare

Patch Changes

  • 03938ae: Disabled file permission syncing

    We have temporarily disabled the ability to sync file permissions between your local filesystem and your Gadget environment. This is due to a bug that is causing permissions not to be set correctly when changed via ggt sync. We have created a ticket to track this issue and will re-enable this feature once it is resolved.

    In the meantime, if you need to change a file's permissions in your Gadget environment, you can do so by opening the command palette by pressing Ctrl+Shift+P (Windows/Linux) or Cmd+Shift+P (macOS) and running chmod on the file directly.

    Here's an example of how to change the permissions on a file named test.sh to be executable:

    CleanShot 2023-12-18 at 17 58 10@2x

v0.4.5

18 Dec 21:35
409ed8c
Compare
Choose a tag to compare

Patch Changes

  • 07dc9a4: Bump "hashes are not equal" log level to debug
  • 86ffacd: Fix formatting of Map objects in pretty printed logs