Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgraded plugin for Strapi 4.20 and NodeJS 20 #38

Merged
merged 1 commit into from
Mar 22, 2024

Conversation

BirknerAlex
Copy link
Contributor

@BirknerAlex BirknerAlex commented Mar 19, 2024

Fixes #37

Copy link
Contributor

@yarikwest yarikwest left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@BirknerAlex looks good to me!
@marlokessler can we merge this changes?

Copy link
Owner

@marlokessler marlokessler left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @BirknerAlex thank you for your contribution! Looks good to me!

@marlokessler marlokessler merged commit 3f832e1 into marlokessler:main Mar 22, 2024
@marlokessler
Copy link
Owner

@all-contributors please add @BirknerAlex for bug and code.

Copy link
Contributor

@marlokessler

I've put up a pull request to add @BirknerAlex! 🎉

@@ -3,7 +3,7 @@
"compilerOptions": {
"outDir": "dist",
"rootDir": ".",
"declaration": true
"declaration": true,

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

trailing comma in json not good

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh true, good you catched that!

@@ -1,9 +1,11 @@
import { ReadStream, createReadStream, createWriteStream } from "fs";
import { join } from "path";
import sharp, { Sharp, Metadata } from "sharp";
import { file as fileUtils } from '@strapi/utils';

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey, I tried to do the same but failed (@strapi/utils/dist/file was no longer exporting what we needed). How did you find out that it was moved to @strapi/utils, did you look at Strapi's source code changes?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I just checked the latest source code where the utilty function has been moved.

https://github.com/search?q=repo%3Astrapi%2Fstrapi%20bytesToKbytes&type=code

@BirknerAlex BirknerAlex deleted the strapi-4.20 branch March 25, 2024 19:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants