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

Roughs in initial strategies #1

Merged
merged 1 commit into from
Dec 8, 2022
Merged

Roughs in initial strategies #1

merged 1 commit into from
Dec 8, 2022

Conversation

dzucconi
Copy link
Member

@dzucconi dzucconi commented Dec 6, 2022

Will publish this locally using Yalc to drive out how to do integration in Force/Metaphysics along with setting a desired service.

@dzucconi dzucconi self-assigned this Dec 6, 2022
@dzucconi
Copy link
Member Author

dzucconi commented Dec 6, 2022

To be clear: the goal of this library is to provide a single API that supports generating on-demand resized image URLs from a variety of services. Everyone handles this differently and it's annoying to get right sometimes (Imgix's MD5 signature or the Lambda's Base64 encoding and payload format).

Copy link

@mzikherman mzikherman left a comment

Choose a reason for hiding this comment

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

Looks great! 🔥

src/__tests__/strategies.test.ts Outdated Show resolved Hide resolved
src/__tests__/strategies.test.ts Show resolved Hide resolved
src/strategies.ts Outdated Show resolved Hide resolved
const query = stringify(params, {
arrayFormat: "brackets",
skipNulls: true,
sort: (a, b) => a.localeCompare(b),

Choose a reason for hiding this comment

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

Nice


const params = {
bucket: source.bucket,
key: src.replace(`${source.source}/`, ""),

Choose a reason for hiding this comment

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

Nice

tsconfig.json Show resolved Hide resolved
@dzucconi
Copy link
Member Author

dzucconi commented Dec 8, 2022

Preliminary local integration looks good. Going to merge and get CI set up; will integrate locally replacing the underlying Gemini URL creation then feature flag a service switcher and pass it along as a header to Metaphysics to sync the chosen service.

@dzucconi dzucconi merged commit 322bf4a into main Dec 8, 2022
@artsyit
Copy link
Contributor

artsyit commented Dec 8, 2022

🚀 PR was released in v0.0.1 🚀

@artsyit artsyit added the released This issue/pull request has been released. label Dec 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
released This issue/pull request has been released.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants