Skip to content

Releases: ramikg/cassandra-codegen

v0.0.12

Choose a tag to compare

@ramikg ramikg released this 26 Jul 09:44

Update:

  • Update ts-morph to update the sub-dependency brace-expansion (CVE-2026-14257).

v0.0.11

Choose a tag to compare

@ramikg ramikg released this 21 Apr 13:24

Bugfix:

  • Fix the regex responsible for parsing the map type.

v0.0.10

Choose a tag to compare

@ramikg ramikg released this 21 Apr 11:57

Changes:

  • Change the type used for unknown Cassandra types to unknown (previously, any was used).
  • Add support for the Cassandra map type and map it to TypeScript's Record (previously, map was supported only in case --use-js-map was used).

v0.0.9

Choose a tag to compare

@ramikg ramikg released this 21 Aug 14:10

Change:

  • Make non-primary key properties optional (in the context of inserting rows) and nullable (in the context of inserting or retrieving rows), to match cassandra-driver's behavior.

v0.0.8

Choose a tag to compare

@ramikg ramikg released this 18 Aug 14:00

Change:

  • Make package.bin point to cli.js instead of cli.ts, for simpler execution.

v0.0.7

Choose a tag to compare

@ramikg ramikg released this 18 Aug 12:40

Bug fix:

  • Fix dist directory missing from package.

v0.0.6

Choose a tag to compare

@ramikg ramikg released this 18 Aug 12:25

Change:

  • Add a barrel file to allow for more convenient imports.

v0.0.5

Choose a tag to compare

@ramikg ramikg released this 18 Aug 08:00

Change:

  • Provide backward compatibility for projects with moduleResolution set to node.

v0.0.4

Choose a tag to compare

@ramikg ramikg released this 17 Aug 23:19

Bug fixes:

  • Fix wrong mapper variable name in generated file.
  • Simplify import of queryOperator.

v0.0.3

Choose a tag to compare

@ramikg ramikg released this 17 Aug 22:04

Changes:

  • Initialize the UnderscoreCqlToCamelCaseMappings object only once in the generated file, instead of once per table.
  • Add a --generate-ts-file option for generating a .ts file instead of the default .js & .d.ts.
  • Print total generation time, as well as number of tables and output path.
  • Add a type-safe version of cassandra-driver's query operators.
    For example, you can now call the mappers with { someColumn: queryOperator.gte(3) }.

Bug fix:

  • Use the same camelCase function which cassandra-driver uses.