Minor Changes
-
#388
440ae1b
Thanks @juliusmarminge! - migrate utapi
to a class which allows for (optional) custom initialization options to be
passed in. Below are shown the available options and their default values:import { UTApi } from "uploadthing/server"; const utapi = new UTApi({ fetch: globalThis.fetch, apiKey: process.env.UPLOADTHING_SECRET, }); utapi.deleteFiles; utapi.listFiles; // ...
utapi
is still exported fromuploadthing/server
for backwards
compatibility, but will be removed in a future major release.
Patch Changes
-
#380
2803c5b
Thanks @juliusmarminge! - fix: include
patterns of withUt now points to existing files -
#373
33c67af
Thanks @juliusmarminge! - feat(sdk): add
usage endpoint to sdk -
#382
3b04a8c
Thanks @juliusmarminge! - add warning log
if node < 18 -
#388
440ae1b
Thanks @juliusmarminge! - include more
logs for failedutapi
functions -
Updated dependencies
[ee8533a
]:- @uploadthing/shared@5.2.3