Skip to content

Releases: dataform-co/dataform

2.6.7: Support `NO_COLOR` environment variable

17 Aug 08:53
5d23f14
Compare
Choose a tag to compare

@dataform/cli now supports turning off coloured output via setting the NO_COLOR environment variable, per the standard detailed at https://no-color.org/.

2.6.6: Enforce tighter requirements around "automatic" importing of `includes` files

16 Aug 16:12
e76f542
Compare
Choose a tag to compare

We have fixed two bugs which inadvertently loosened our (expected) requirements around usage of "automatic" includes imports.

For context: in general, to reference the contents of a file in includes (specifically a file's module.exports object), the callsite should call require() on that file, e.g. const foo = require("includes/subdirectory/foo.js");.

Dataform simplifies this for "top-level" includes files, i.e. direct children of the includes directory, by automatically making these files available globally. For example, in order to use includes/foo.js, a callsite does not need to require("includes/foo.js"); instead, a foo object is made available to all Dataform code in the project.

Two bugs have been found and fixed:

  1. includes files can no longer implicitly depend on other includes files
  2. only top-level includes files are now automatically available globally

This unfortunately results in a potentially breaking change to some Dataform projects - but this will only happen upon upgrading @dataform/core to >= 2.6.6.

In order to fix any breakages, the calling file must be changed to explicitly require() the relevant includes file.

For example, in SQLX:

js {
  const whatever = require("includes/subdirectory/whatever.js");
}

Or in JavaScript:

const whatever = require("includes/whatever.js");

For more context, see https://issuetracker.google.com/issues/296162656#comment3.

2.6.5: Fix `@dataform/cli` for `@dataform/core` pre-`2.6.5`.

16 Aug 13:47
154b726
Compare
Choose a tag to compare

This version fixes behaviour in rare circumstances which was broken by @dataform/cli version 2.6.3. See https://issuetracker.google.com/issues/296162656#comment3 for details.

2.6.4: Fix `dataform compile` on Windows

15 Aug 13:51
a8279e1
Compare
Choose a tag to compare
Fix `@dataform/core` on Windows. (#1526)

* Fix `@dataform/core` on Windows.

* bump version

2.6.3: Bump `glob` dependency version.

15 Aug 13:33
a5ee673
Compare
Choose a tag to compare
Upgrade `glob`. (#1525)

2.6.2: Fix: triple-quotes strings getting removed after compilation

09 Aug 11:44
f053c33
Compare
Choose a tag to compare

The lexer was updated to have multiline string tokens (in 2.6.1), which gave us ability to format triple quoted strings (https://github.com/dataform-co/dataform/releases/tag/2.6.1). But in compilation these tokens were not being handled and thus they were getting removed after compilation. We have fixed this issue in this version.

2.6.1: Improve formatting for triply-quoted strings

28 Jul 08:38
9238001
Compare
Choose a tag to compare
  • improve SQLX formatting for triply-quoted strings
  • various dependency version upgrades

UPDATE: This version introduced a bug: triple-quoted strings are getting removed after compilation. The fix is in 2.6.2 (https://github.com/dataform-co/dataform/releases/tag/2.6.2)

2.6.0: Improve `dataform format` CLI command

09 Jun 08:54
e75c442
Compare
Choose a tag to compare

The dataform format command is now dramatically improved and has better formatter output for each SQL dialect that Dataform supports. Thanks @pokutuna for the contribution!

2.5.0: Enable use of `schema()` and `database()` context functions in SQLX code

05 Jun 15:56
69cad94
Compare
Choose a tag to compare
Release `2.5.0`: to allow use of methods added to SQLX in https://git…

2.4.2: Throw clearer compilation errors when non-string `vars` are provided

17 Feb 09:56
a4f6916
Compare
Choose a tag to compare