Skip to content

v0.3.5

Compare
Choose a tag to compare
@github-actions github-actions released this 05 Mar 21:42
· 69 commits to main since this release
1cb26cf

v0.3.5 - 2024-03-05

Bug Fixes

(cli) Fix for `meta-cli deploy` exit with code `0` on failure (#600)

fix the issue where meta-cli deploy command exits with code 0 on
failure.

Motivation and context

bug fix

Migration notes

No changes needed.

Checklist

  • The change come with new or modified tests
  • Hard-to-understand functions have explanatory comments
  • End-user documentation is updated to reflect the change
(typegate,typegraph) Minor bugs (#596)

Just a few very minor bugs I'd encountered this week. Tests pending.

Motivation and context

Bugs.

Migration notes

No changes required

Checklist

  • The change come with new or modified tests
  • Hard-to-understand functions have explanatory comments
  • End-user documentation is updated to reflect the change
Show error message for unregistered type name (#594)

Check and throw the error for the expose function when called from the
Python SDK.

Motivation and context

We got a finalization failure when there are some unregistered type
referenced with g.ref.

Migration notes

No changes needed.

Checklist

  • The change come with new or modified tests
  • Hard-to-understand functions have explanatory comments
  • End-user documentation is updated to reflect the change
Remove injections from prisma output types (#597)

Remove injections from generated output types for prisma operations.

Motivation and context

Generated types fail validations (injection not allowed in output
types
).

Migration notes

No changes needed.

Checklist

  • The change come with new or modified tests
  • Hard-to-understand functions have explanatory comments
  • End-user documentation is updated to reflect the change
Esm customizer for typegate deno ext (#606)

Enables v8 snapshots integration for meta typegate subcommand and the
standalone typegate. Also bumps deno to 1.41.0.

Motivation and context

Re-enable macos-latest cli-compat test job (#608)

Fixes and enables the broken job.

Motivation and context

Job was disabled earlier to mysterious breakages.

Migration notes

No changes required

Checklist

  • The change come with new or modified tests
  • Hard-to-understand functions have explanatory comments
  • End-user documentation is updated to reflect the change

Features

(deno/sdk) Native function embedding in typescript (#598)

Add support for function or lambda definition typescript sdk for
deno.func similarly to how python.from_def in python sdk works.

Motivation and context

Providing a string is a bit impractical and counter-intuitive espcially
when the sdk language matches with runtime's language.

Migration notes

No changes needed.

Checklist

  • The change come with new or modified tests
  • Hard-to-understand functions have explanatory comments
  • End-user documentation is updated to reflect the change

(sdk) Testing framework integration 2 (#579)

Motivation and context

Continuation of #566 , focused on prisma runtime.

Migration notes

N/A

Checklist

  • The change come with new or modified tests
  • Hard-to-understand functions have explanatory comments
  • End-user documentation is updated to reflect the change

(sdk) From_random injection (#593)

This change includes changes in StringFormats(added some string
formats), logic to provide random values for type nodes and tests to
validate the changes.
The changes are mostly in the typegraph sdk.

Motivation and context

This feature enables the user to inject random values for a field(Type
Node
) when defining a Typegraph.

Migration notes

No changes needed.

Checklist

  • The change come with new or modified tests
  • Hard-to-understand functions have explanatory comments
  • End-user documentation is updated to reflect the change
Remove obsolete restrictions on prisma (#592)

Motivation and context

Since v5, where on unique queries exposes all the fields, not just
unique fields.

Parameter transformation (#587)

Enable parameter transformation with the .apply() method.
It has more or less the same logic as .reduce() with the ability to
flatten the input type.

Motivation and context

This feature enables simpler APIs (input types) on top of runtimes
(e.g.: prisma).

Migration notes

No changes needed.

Checklist

  • The change come with new or modified tests
  • Hard-to-understand functions have explanatory comments
  • End-user documentation is updated to reflect the change
Nested context query (#595) - BREAKING: Nested context query (#595)
  • Revert context flattening
  • Enable jsonpath-like key to access nested object fields or array items
    on the context.

Migration notes

If you access the context directly in your application (through the
token), access to nested fields shall be updated.
E.g. the expression context["profile.id"] have to turned to
context.profile.id.

Checklist

  • The change come with new or modified tests
  • Hard-to-understand functions have explanatory comments
  • End-user documentation is updated to reflect the change

Miscellaneous Tasks

(release) Bump 0.3.5 (#613)

Ready for release of v0.3.5

Motivation and context

Required by console.

Migration notes

No changes required_.

Checklist

  • The change come with new or modified tests
  • Hard-to-understand functions have explanatory comments
  • End-user documentation is updated to reflect the change

Refactor

(sdk) Move post-processing functions to the typegate (#586)

Motivation and context

Depends on #579
Compiled wasm bin size is too large, goal is to reduce it to ~3MB.

Migration notes

N/A

Checklist

  • The change come with new or modified tests
  • Hard-to-understand functions have explanatory comments
  • End-user documentation is updated to reflect the change

Make fat `meta-cli` the default (#607) - BREAKING: make fat `meta-cli` the default (#607)

Switch the default meta-cli release to the fat version (the one that
includes the typegate subcommand).

Motivation and context