v0.3.5 - 2024-03-05
Bug Fixes
<details >
<summary>
(cli) Fix for `meta-cli deploy` exit with code `0` on failure (<a href="https://github.com/metatypedev/metatype/pull/600">#600</a>)
</summary>
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
</details>
<details >
<summary>
(typegate,typegraph) Minor bugs (<a href="https://github.com/metatypedev/metatype/pull/596">#596</a>)
</summary>
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
</details>
<details >
<summary>
Show error message for unregistered type name (<a href="https://github.com/metatypedev/metatype/pull/594">#594</a>)
</summary>
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
- [x] The change come with new or modified tests
- [x] Hard-to-understand functions have explanatory comments
- [x] End-user documentation is updated to reflect the change
</details>
<details >
<summary>
Remove injections from prisma output types (<a href="https://github.com/metatypedev/metatype/pull/597">#597</a>)
</summary>
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
- [x] The change come with new or modified tests
- [ ] Hard-to-understand functions have explanatory comments
- [ ] End-user documentation is updated to reflect the change
</details>
<details >
<summary>
Esm customizer for typegate deno ext (<a href="https://github.com/metatypedev/metatype/pull/606">#606</a>)
</summary>
Enables v8 snapshots integration for meta typegate
subcommand and the
standalone typegate. Also bumps deno to 1.41.0.
Motivation and context
</details>
<details >
<summary>
Re-enable macos-latest cli-compat test job (<a href="https://github.com/metatypedev/metatype/pull/608">#608</a>)
</summary>
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
</details>
Features
<details >
<summary>
(deno/sdk) Native function embedding in typescript (<a href="https://github.com/metatypedev/metatype/pull/598">#598</a>)
</summary>
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
- [x] The change come with new or modified tests
- [ ] Hard-to-understand functions have explanatory comments
- [ ] End-user documentation is updated to reflect the change
</details>
<details >
<summary>
(sdk) Testing framework integration 2 (<a href="https://github.com/metatypedev/metatype/pull/579">#579</a>)
</summary>
Motivation and context
Continuation of #566 , focused on prisma runtime.
Migration notes
N/A
Checklist
- [x] The change come with new or modified tests
- [ ] Hard-to-understand functions have explanatory comments
- [ ] End-user documentation is updated to reflect the change
</details>
<details >
<summary>
(sdk) From_random injection (<a href="https://github.com/metatypedev/metatype/pull/593">#593</a>)
</summary>
<!--
Pull requests are squash merged using:
- their title as the commit message
- their description as the commit body
Having a good title and description is important for the users to get
readable changelog and understand when they need to update his code and
how.
-->
<!-- Explain WHAT the change is -->
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
<!-- Explain WHY the was made or link an issue number -->
This feature enables the user to inject random values for a field(Type Node)
when defining a Typegraph.
Migration notes
No changes needed.
<!-- Explain HOW users should update their code when required -->
Checklist
- [x] The change come with new or modified tests
- [x] Hard-to-understand functions have explanatory comments
- [ ] End-user documentation is updated to reflect the change
</details>
<details >
<summary>
Remove obsolete restrictions on prisma (<a href="https://github.com/metatypedev/metatype/pull/592">#592</a>)
</summary>
Motivation and context
Since v5, where on unique queries exposes all the fields, not just unique
fields.
</details>
<details >
<summary>
Parameter transformation (<a href="https://github.com/metatypedev/metatype/pull/587">#587</a>)
</summary>
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
- [x] The change come with new or modified tests
- [x] Hard-to-understand functions have explanatory comments
- [ ] End-user documentation is updated to reflect the change
</details>
<details open>
<summary>
Nested context query (<a href="https://github.com/metatypedev/metatype/pull/595">#595</a>)
- BREAKING: Nested context query (<a href="https://github.com/metatypedev/metatype/pull/595">#595</a>)
</summary>
- 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
- [x] The change come with new or modified tests
- [x] Hard-to-understand functions have explanatory comments
- [ ] End-user documentation is updated to reflect the change
</details>
Miscellaneous Tasks
<details >
<summary>
(release) Bump 0.3.5 (<a href="https://github.com/metatypedev/metatype/pull/613">#613</a>)
</summary>
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
</details>
Refactor
<details >
<summary>
(sdk) Move post-processing functions to the typegate (<a href="https://github.com/metatypedev/metatype/pull/586">#586</a>)
</summary>
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
- [x] The change come with new or modified tests
- [ ] Hard-to-understand functions have explanatory comments
- [ ] End-user documentation is updated to reflect the change
</details>
<details open>
<summary>
Make fat `meta-cli` the default (<a href="https://github.com/metatypedev/metatype/pull/607">#607</a>)
- BREAKING: make fat `meta-cli` the default (<a href="https://github.com/metatypedev/metatype/pull/607">#607</a>)
</summary>
Switch the default meta-cli
release to the fat version (the one that includes
the typegate
subcommand).
Motivation and context
</details>