v0.3.3
v0.3.3 - 2024-01-31
Bug Fixes
(ci) Bug in `typegraph` release job (#545)
Motivation and context
jco
output path is wrong.
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
(ci) Typo in release.yml (#548)
Fix small typo. Surprised act
didn't catch this, it must evaluate
expressions lazily.
(ci) Force/skip push to registries on manual release (#549)
What it says on the tin can. Also fixes a typo in the vscode-extension
job.
Motivation and context
Manual re-release breaks otherwise as seen
here.
(ci) Typos in release.yml (#550)
Oof, I can't believe I missed these. The publish steps are hard to test
locally with act
so ig they require extra scrutiny.
Motivation and context
Bug on manual dispatch of releasae
wflow.
(ci) Mismatch in location of `$AZURE_DEVOPS_TOKEN` (#551)
Another minor issue with the release workflow.
Motivation and context
Failure in release run
here.
(ci,release) Hack for broken arm64 builds, bump deno to 1.40.1, bump to 0.3.3 (#565)
This provides a temporary fix for the broken build on arm64. The issue's
related to wasm-opt
builds not being availaible for install by
ghjk/cargo-binstall. This PR uses cargo install
directly instead when
in the dockerfile.
It also:
- bumps metatype version to 0.3.3 to ready the next release
- bumps the deno version to 1.40.1 (which comes with some changes)
Motivation and context
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
(cli) Bad conditionals in loader detection (#559) - BREAKING: bad conditionals in loader detection (#559)
- Fix bug in js typegraph loader detection.
- FIx bug where the cwd for loader was overridden in
loader_cmd
despite being set inget_loader_cmd
. - Update to latest ghjk
- Refresh
setup
task inwhiz.yaml
Motivation and context
The old conditionals were faulty.
Migration notes
node
andbun
loaders are now run with thecwd
set to the
directory of the typegraph as opposed to themetatype.yml
file. This
should resolve settings to the nearestpackage.json
despite location.
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
(cli, typegate) Explicitly import DenoRuntime.import modules from path (#564)
When using the dynamic import
function, if you provide it a raw path
like /foo/bar/baz
and deno detects the current module's loaded from a
remote host, it'll convert it to a http url. Reasonable behavior but it
turned out to be the cause of #560.
This pr fixes this issue along with:
- Puts contents of
main.ts
in a try/catch block for better error
logging. - Fixes minor permission bugs with the bundled runtime.
Motivation and context
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
(oauth2-profiler) Fix OAuth2 profiler params (#562)
Pass the appropriate request URL and headers to the profiler resolver.
Motivation and context
It used the provider url instead of the (typegate) request URL, causing
internal queries to fail.
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
(template/node) Update sdk version to 0.3.2 + add `deno.static` (#558)
Motivation and context
Sync template examples with latest 0.3.2.
Added missing deno.static
and func.rate(...)
on node.
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
(vscode-extension) Fix publisher name and version (#553)
- Change the publisher name to metatypedev to match the account name
on Azure Devops. - Add dev-tools projects to
dev/lock.yml
for automatic versioning.
Motivation and context
Failure
to publish the extension.
- Non-matching version.
Migration notes
Blank
Checklist
-
The change come with new or modified tests(N/A) -
Hard-to-understand functions have explanatory comments(N/A) -
End-user documentation is updated to reflect the change(N/A)
Documentation
(website) Move typegraphs in separate folder + add ts version (#552)
Motivation and context
Better organization + typescript examples.
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
Features
(node) Node fontend missing features (#557)
Motivation and context
Easier translation from python to typescript typegraph.
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
(prisma) Add support multi-field ids and id on struct (#556)
Adds support for more advanced id fields and unique constraints:
- Multi-field id
- Id on struct (foreign key)
- Multi-field unique constraints
- Unique constraint on struct (foreign key)
Motivation and context
Support these kind of construct:
user = t.struct(
{
"authProvider": t.string().from_context("provider"),
"profileId": t.string().from_context("profile.id"),
# ...
},
config={"id": ["authProvider", "profileId"]},
).rename("User")
project = t.struct(
{
"id": t.uuid(as_id=True, config=["auto"]),
"owner": g.ref("Account"),
"name": t.string(min=3, pattern="^[A-Za-z_-]$"),
},
config={"unique": [["owner", "name"]]}
).rename("Project")
Migration notes
No migration 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) Oauth2 token validation endpoint (#567)
Create an oauth2 token validation endpoint: /:tgName/auth/validate
.
Motivation and context
Migration notes
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-rt) Extend typegate runtime (#561)
Extend the typegate runtime with the following queries:
findListQueries
: find all the queries that returns a list of
t.struct
.
Motivation and context
Console.
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
(vscode-ext) Logo, README, display name, description (#554)
- Added a better display name and description
- Added logo and README
Flattened context (#555)
Flatten profile fields in the context.
So instead of
{
provider: 'github',
accessToken: 'xxxxxxxxxxxxxxxxxxxxxxxxxx',
refreshToken: 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx',
refreshAt: 1704717676,
profile: { id: '43663718' },
exp: 1707280877,
iat: 1704688876
}
we would have:
{
provider: 'github',
accessToken: 'xxxxxxxxxxxxxxxxxxxxxxxxxx',
refreshToken: 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx',
refreshAt: 1704717676,
'profile.id': '43663718',
exp: 1707280877,
iat: 1704688876
}
Motivation and context
It was impossible to get the nested id into a from_context
injection.
Now we can inject .from_context("profile.id")
.
Migration notes
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
(ci) `workflow_dispatch` for release wflow (#546)
- Manual trigger for release wflow
- Adds missing ghjk step for
vscode-extension
release job
Motivation and context
Provides recovery path for when things break.
Migration notes
Doesn't affect end users.
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