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

v7.0.0 #523

Open
wants to merge 27 commits into
base: main
Choose a base branch
from
Open

v7.0.0 #523

wants to merge 27 commits into from

Conversation

colbyfayock
Copy link
Collaborator

@colbyfayock colbyfayock commented Sep 26, 2024

Includes

Resolves

Fixes #441 - v7
Fixes #137 - "use client"
Fixes #519 - Bundle Size

This is a small internal improvement that I think is worth taking. This
makes sure that the repository is using only a single package manager
and switches away from using relative paths to reach out across
workspace boundaries

cc @colbyfayock

---------

Co-authored-by: Colby Fayock <[email protected]>
Copy link

vercel bot commented Sep 26, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
next-cloudinary ✅ Ready (Inspect) Visit Preview Nov 1, 2024 7:22pm

# Description

This PR switches away from tsup to preconstruct - a lesser-known but
more capable tool.

The benefits are:
- better cjs & esm setup 
- and types for the above (this should pass
https://arethetypeswrong.github.io/ checks)
- `'use client'` directive support. With this you just can just add the
directive to any of your files and Preconstruct takes care of isolating
that in its own chunk
- `package.json#exports` flexibility:
- it should be possible to add extra entrypoints with ease if you ever
need that (like `next-cloudinary/something`)
- it's also easy to use differential bundling with this, if you ever
need to ship different code for dev/prov bundles, or for
node/browser/webworker/vercel's edge-light/younameit (or perhaps for
`react-server` condition)

## Issue Ticket Number

Related to
#435

## Type of change

- [ ] Bug fix (non-breaking change which fixes an issue)
- [x] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing
functionality to not work as expected)
- [ ] Fix or improve the documentation
- [ ] This change requires a documentation update


# Checklist

- [x] I have followed the contributing guidelines of this project as
mentioned in [CONTRIBUTING.md](/CONTRIBUTING.md)
- [x] I have created an
[issue](https://github.com/cloudinary-community/next-cloudinary/issues)
ticket for this PR
- [x] I have checked to ensure there aren't other open [Pull
Requests](https://github.com/cloudinary-community/next-cloudinary/pulls)
for the same update/change?
- [x] I have performed a self-review of my own code
- [x] I have run tests locally to ensure they all pass
- [x] I have commented my code, particularly in hard-to-understand areas
- [x] I have made corresponding changes needed to the documentation

BREAKING CHANGE: New build tool, no longer requires `use client` directive, marking as breaking for safety
# [7.0.0-beta.1](v6.13.0...v7.0.0-beta.1) (2024-09-27)

### Features

* Switch to Preconstruct for library building ([#520](#520)) ([a35a928](a35a928))

### BREAKING CHANGES

* New build tool, no longer requires `use client` directive, marking as breaking for safety
# [7.0.0-beta.2](v7.0.0-beta.1...v7.0.0-beta.2) (2024-10-03)

### Bug Fixes

* make sure to publish types ([#528](#528)) ([b1d1f61](b1d1f61))
# [7.0.0-beta.3](v7.0.0-beta.2...v7.0.0-beta.3) (2024-10-14)

### Bug Fixes

* removed ts-ignore ([#535](#535)) ([32931c9](32931c9)), closes [#426](#426)
* use more proper type to derive `CldVideoPlayerProps` ([#537](#537)) ([65c3dd1](65c3dd1))

### Features

* added unique id generation using React's `useId()` hook ([#529](#529)) ([682f4c2](682f4c2)), closes [#493](#493)
# [7.0.0-beta.4](v7.0.0-beta.3...v7.0.0-beta.4) (2024-10-15)

### Features

* Log x-cld-error on image error ([#553](#553)) ([711c759](711c759)), closes [#512](#512)
# [7.0.0-beta.5](v7.0.0-beta.4...v7.0.0-beta.5) (2024-10-25)

### Bug Fixes

* upgrading util packages to beta which refactors type system and how props are exported ([08a60de](08a60de))
# [7.0.0-beta.6](v7.0.0-beta.5...v7.0.0-beta.6) (2024-10-31)

### Bug Fixes

* oops, pnpm lock ([d2e115e](d2e115e))
* upgrading url-loader to new beta ([edeee00](edeee00))
# [7.0.0-beta.7](v7.0.0-beta.6...v7.0.0-beta.7) (2024-10-31)

### Bug Fixes

* upgrading util packages, fixing prop definitions ([94e9e87](94e9e87))
# [7.0.0-beta.8](v7.0.0-beta.7...v7.0.0-beta.8) (2024-11-01)

### Bug Fixes

* lockfile ([cb44682](cb44682))

### Features

* nextjs 15 support in package.json ([fb75bff](fb75bff))
# [7.0.0-beta.9](v7.0.0-beta.8...v7.0.0-beta.9) (2024-11-01)

### Bug Fixes

* upgrading to stable releases for url-loader and util packages ([1b9c160](1b9c160))
vickywane and others added 2 commits November 1, 2024 15:15
# Description

This PR will add the `src` type to `CloudinaryLoaderCldOptions`
interface to fix the ts error being thrown from the
`cloudinary-loader.ts` file.

Fixes This will close #425 

<!-- Specify above which issue this fixes by referencing the issue
number (`#<ISSUE_NUMBER>`) or issue URL. -->
<!-- Example: Fixes
https://github.com/cloudinary-community/next-cloudinary/issues/<ISSUE_NUMBER>
-->

## Type of change

<!-- Please select all options that are applicable. -->

- [x] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing
functionality to not work as expected)
- [ ] Fix or improve the documentation
- [ ] This change requires a documentation update


# Checklist

<!-- These must all be followed and checked. -->

- [x] I have followed the contributing guidelines of this project as
mentioned in [CONTRIBUTING.md](/CONTRIBUTING.md)
- [x] I have created an
[issue](https://github.com/cloudinary-community/next-cloudinary/issues)
ticket for this PR
- [x] I have checked to ensure there aren't other open [Pull
Requests](https://github.com/cloudinary-community/next-cloudinary/pulls)
for the same update/change?
- [x] I have performed a self-review of my own code
- [x] I have run tests locally to ensure they all pass
- [x] I have commented my code, particularly in hard-to-understand areas
- [x] I have made corresponding changes needed to the documentation

---------

Co-authored-by: Colby Fayock <[email protected]>
# [7.0.0-beta.10](v7.0.0-beta.9...v7.0.0-beta.10) (2024-11-01)

### Bug Fixes

* add src type to CloudinaryLoaderCldOptions interface ([#552](#552)) ([74e1b96](74e1b96)), closes [#425](#425)
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.

Reduce Client Bundle Size v7.0.0 [Feature] Bundle use client with components
4 participants