3.0.0
Highlights
-
Adds support for staged schema changes. A staged schema change lets you change one or more collection schema without index downtime due to index builds.
-
Introduces the following commands to support staged schema changes:
-
Adds the following options to the
fauna schema diff
command:--active
: Shows the diff between the local and remote active schema.--staged
: Shows the diff between the remote active and remote staged schema.--text
: Shows a text diff instead of a semantic diff
-
Adds the
--active
option to thefauna schema pull
command. The option pulls the remote active schema files for the database into the local schema directory. If the database has staged schema,fauna schema pull
pulls the database's staged schema without this option. -
Adds the
--active
option to thefauna schema push
command. The option skips staging the schema and makes the schema active immediately. -
Adds the
--color
and--no-color
options to the following commands. The options let you enable or disable color formatting. Color formatting is enabled by default if the terminal supports it (determined using chalk/supports-color).
Breaking Changes
-
The
fauna schema push
command now defaults to staging schema. -
Changes the
--non-interactive
option to--no-input
(or its-y
alias) for the following commands: -
Changes the
--force
option to--no-input
(or its-y
alias) for thefauna schema push
command. -
Changes the following commands to use semantic diffs by default:
-
If a database has staged schema,
fauna schema diff
now compares the local schema to the database's staged schema by default. If the database has no staged schema,fauna schema diff
compares the local schema to the remote schema by default.
What's Changed
- Add
schema push --stage
by @macmv in #355 - Add
fauna schema status
by @macmv in #356 - Add
fauna schema commit
andabandon
by @macmv in #357 - Add colors by @macmv in #365
- Add
fauna schema pull --staged
by @macmv in #366 - Add
fauna schema diff --active
by @macmv in #367 - Improve
schema
command output by @macmv in #378 - Improve
diff
args by @macmv in #380 - Don't delete
.fsl
files if user rejects confirmation prompt by @echo-bravo-yahoo in #383 - Fix
fauna schema status
when the local files are invalid by @macmv in #388 - Switch
push
to default to a staged push by @macmv in #387 - Update
schema status
msg for staged default by @jrodewig in #391 - Add
fauna schema pull --active
by @macmv in #392 - Simplify flags to
push
anddiff
by @macmv in #394 - Rename
--force
and--non-interactive
to--no-input
by @macmv in #397 - Bump to version 3.0.0 by @macmv in #395
Full Changelog: v2.0.2-release...v3.0.0-release