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

Version Packages (beta) #610

Merged
merged 1 commit into from
Sep 12, 2024
Merged

Version Packages (beta) #610

merged 1 commit into from
Sep 12, 2024

Conversation

github-actions[bot]
Copy link
Contributor

@github-actions github-actions bot commented Jun 8, 2024

This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.

⚠️⚠️⚠️⚠️⚠️⚠️

main is currently in pre mode so this branch has prereleases rather than normal releases. If you want to exit prereleases, run changeset pre exit on main.

⚠️⚠️⚠️⚠️⚠️⚠️

Releases

@responsive-image/[email protected]

Major Changes

  • #614 2d10626 Thanks @simonihmig! - Use Record-based API for cloudinary transformations

    Instead of passing cloudinary transformations as a string according to the Cloudinary Transformation URL API, you need to pass them as an object. If you want to use chained transformations, pass an array of objects.

    // using @resposive-image/cdn
    const simpleTransformation = cloudinaryProvider('foo/bar.jpg', {
      transformations: { co: 'rgb:20a020', e: 'colorize:50' },
    });
    
    const chainedTransformation = cloudinaryProvider('foo/bar.jpg', {
      transformations: [
        { co: 'rgb:20a020', e: 'colorize:50' },
        { ar: '1.0', c: 'fill', w: '150' },
        { r: 'max' },
      ],
    });
    {{!-- using @responsive-image/ember }}
    <ResponsiveImage
      @src={{responsiveImageCloudinaryProvider
        "foo/bar.jpg"
        transformations=(hash co="rgb:20a020" e="colorize:50")
      }}
    >

@responsive-image/[email protected]

Major Changes

  • #614 2d10626 Thanks @simonihmig! - Use Record-based API for cloudinary transformations

    Instead of passing cloudinary transformations as a string according to the Cloudinary Transformation URL API, you need to pass them as an object. If you want to use chained transformations, pass an array of objects.

    // using @resposive-image/cdn
    const simpleTransformation = cloudinaryProvider('foo/bar.jpg', {
      transformations: { co: 'rgb:20a020', e: 'colorize:50' },
    });
    
    const chainedTransformation = cloudinaryProvider('foo/bar.jpg', {
      transformations: [
        { co: 'rgb:20a020', e: 'colorize:50' },
        { ar: '1.0', c: 'fill', w: '150' },
        { r: 'max' },
      ],
    });
    {{!-- using @responsive-image/ember }}
    <ResponsiveImage
      @src={{responsiveImageCloudinaryProvider
        "foo/bar.jpg"
        transformations=(hash co="rgb:20a020" e="colorize:50")
      }}
    >

Patch Changes

@responsive-image/[email protected]

Major Changes

  • #608 a3f94f2 Thanks @simonihmig! - Use imagetools for more image processing options

    @responsive-image/webpack is now using the imagetools-core package for image processing via sharp. This now supports not only scaling to different sizes and generating different image formats as before, but also a lot of other directives for image manipulation.

    Breaking Changes: Some parameters passed to the loader as defaults directly or using as query parameters in imports had to change to align with that library:

    • widths has been renamed to w
    • formats to format
    • the separator for array vlues has been changed to ; instead of ,

    Example: import image from './path/to/image.jpg?w=400;800&responsive';

@responsive-image/[email protected]

Minor Changes

@github-actions github-actions bot force-pushed the changeset-release/main branch 14 times, most recently from f98aa76 to 668c759 Compare June 15, 2024 03:51
@github-actions github-actions bot force-pushed the changeset-release/main branch 11 times, most recently from ed57d27 to c58b1aa Compare June 24, 2024 03:03
@github-actions github-actions bot force-pushed the changeset-release/main branch 5 times, most recently from 6dc9a85 to bd691a7 Compare June 25, 2024 14:56
@github-actions github-actions bot force-pushed the changeset-release/main branch 26 times, most recently from 0b70763 to ddef8cc Compare September 12, 2024 09:16
@github-actions github-actions bot force-pushed the changeset-release/main branch from ddef8cc to e28e34d Compare September 12, 2024 14:39
@simonihmig simonihmig merged commit f8f99e0 into main Sep 12, 2024
@simonihmig simonihmig deleted the changeset-release/main branch September 12, 2024 22:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant