|
93 | 93 | ### Minor Changes |
94 | 94 |
|
95 | 95 | - fcb272f: Add more `--env` aliases. |
96 | | - |
97 | 96 | - `ggt pull` now accepts `--from` as an alias for `--env` |
98 | 97 | - `ggt push` now accepts `--to` as an alias for `--env` |
99 | 98 |
|
|
149 | 148 |  |
150 | 149 |
|
151 | 150 | No worries if the verbose output isn't your thing, we've got you covered: |
152 | | - |
153 | 151 | - `--no-logs` - completely turns off this new feature |
154 | 152 | - `--my-logs` - same as the editor logs boolean for only showing my logs/events |
155 | 153 | - `--log-level` - Set the log level for incoming application logs, `debug, info, error` |
|
297 | 295 | ## `ggt` requires Node 18 or later to run |
298 | 296 |
|
299 | 297 | Node 16 reached End-of-Life (EOL) on 2023-09-11: |
300 | | - |
301 | 298 | - https://github.com/nodejs/release#end-of-life-releases |
302 | 299 | - https://nodejs.org/en/blog/announcements/nodejs16-eol |
303 | 300 |
|
|
426 | 423 | ``` |
427 | 424 |
|
428 | 425 | There are 2 common causes for this error: |
429 | | - |
430 | 426 | - You make a change that causes Gadget to generate files and you don't receive those files before sending more changes to Gadget. |
431 | 427 | - Multiple people are syncing at the same time and one person sends changes to Gadget before receiving another persons changes. |
432 | 428 |
|
|
476 | 472 | - c783efa: Fix `TooManySyncAttemptsError` when local directory's permissions don't match Gadget's |
477 | 473 | - 340a5de: Fix errors serializing `bigint`s when `--json` is passed |
478 | 474 | - 3de43d1: Logging improvements: |
479 | | - |
480 | 475 | - No longer truncating arrays in logs when `--json` is passed |
481 | 476 | - Now truncating objects in logs unless log level is trace |
482 | 477 | - Showing number of truncated elements/properties when arrays/objects are truncated |
|
506 | 501 | 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. |
507 | 502 |
|
508 | 503 | To accomplish this, we've added 2 new flags: |
509 | | - |
510 | 504 | - `-v, --verbose` to output structured logs |
511 | 505 |
|
512 | 506 | 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: |
513 | | - |
514 | 507 | - `-v` = INFO |
515 | 508 | - `-vv` = DEBUG |
516 | 509 | - `-vvv` = TRACE |
|
526 | 519 | `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. |
527 | 520 |
|
528 | 521 | Now, `ggt sync` can detect the following discrepancies: |
529 | | - |
530 | 522 | - Files that exist locally but not in your Gadget environment |
531 | 523 | - Files that exist in your Gadget environment but not locally |
532 | 524 | - Files that exist locally and in your Gadget environment but have different contents |
|
536 | 528 | 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. |
537 | 529 |
|
538 | 530 | You will be prompted to resolve conflicts if: |
539 | | - |
540 | 531 | - Both filesystems updated the same file with different contents |
541 | 532 | - One filesystem updated a file and the other deleted it |
542 | 533 |
|
|
738 | 729 | - b110061: Bump @oclif/plugin-warn-if-update-available from 2.0.42 to 2.0.44 |
739 | 730 | - c482369: Bump @oclif/plugin-not-found from 2.3.27 to 2.3.28 |
740 | 731 | - ee23711: Improve sentry integration |
741 | | - |
742 | 732 | - Added sentry breadcrumbs to help debug on-going bugs. |
743 | 733 | - Added ability to disable sentry via `GGT_SENTRY_ENABLED=false` |
744 | 734 |
|
|
800 | 790 | - 18784ba: Bump which from 3.0.0 to 3.0.1 |
801 | 791 | - 7614f50: Bump @oclif/plugin-warn-if-update-available from 2.0.35 to 2.0.36 |
802 | 792 | - f5e1a3f: Improve the list command by |
803 | | - |
804 | 793 | - Prompting the user to log in if they aren't already (similar to `ggt sync`) |
805 | 794 | - Linking them to `https://gadget.new` if they don't have any applications |
806 | 795 |
|
|
897 | 886 | - 32f4fbe: Bump @oclif/plugin-not-found from 2.3.11 to 2.3.13 |
898 | 887 | - 8d9e6d4: Bump @oclif/core from 1.22.0 to 1.23.1 |
899 | 888 | - 43918ce: Improve sync output |
900 | | - |
901 | 889 | - Show the name and relevant links of the synced app |
902 | 890 | - Inform the user that it's watching for file changes and how to stop it |
903 | 891 | - Show whether a file was changed or deleted when sending/receiving it |
|
0 commit comments