You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Renamed the command migrate to detect-refactors to differentiate it from others forms of migration (i.e. DBs)
The old name will continue to work for now
Improved resource key generation - significantly less churn for resources created in packages
Resources deployed using earlier versions are no longer tracked. Use synapse detect-refactors to fix-up any older deployments.
Expect another breaking change to resource tracking in a subsequent release. It's incredibly important for us to get tracking in a good spot because it directly affects ecosystem scalability. The next step is to apply a reduction technique to support many common code refactors automatically.
New Features
Zig integration - write native modules using Zig
Smart recompilation from .env file changes
Changes to environment variables that affect the resulting program automatically trigger a recompilation on relevant commands (most notably test and deploy)
Only environment variables present in the relevant .env file as well as SYNAPSE_ENV are checked
Automatic deployment updates for simple code changes
Code changes (such as renaming a variable or function) that only affect at most 1 resource of a given type are automatically corrected, reducing the need to use detect-refactors
Later releases will be able to handle many more cases
Performance Improvements
Reduced deploy time significantly by moving to a binary format for deploy instructions. Expect local deploys to take half the time, and cloud deploys by around 10%. synapse test should be significantly faster due to this change.
Checking the test cache is now many times faster
Bug Fixes
deploy --dry-run no longer hangs when nothing has changed
Provider contexts are now instantiated on-demand regardless of the --target option
Previously creating a LambdaFunction from @cohesible/synapse-aws with --target local failed
The first test in a test suite is now cached correctly
Deprecation warnings no longer fail a deployment (whoops!)