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

v6.0.0 #407

Merged
merged 53 commits into from
Feb 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
53 commits
Select commit Hold shift + click to select a range
26789ee
feat: Updates URL Loader to 4.0 (#406)
colbyfayock Jan 16, 2024
643d248
semantic release requires v20 node
colbyfayock Jan 16, 2024
288ba37
chore(release): 6.0.0-beta.1 [skip ci]
semantic-release-bot Jan 16, 2024
a1bebc3
docs: updating documentation to reflected namedTransformations change…
colbyfayock Jan 16, 2024
dcec439
Merge branch 'beta' of github.com:colbyfayock/next-cloudinary into beta
colbyfayock Jan 16, 2024
2e4f7e1
feat: deprecating GetCldImageUrl and GetCldOgImageUrl types
colbyfayock Jan 16, 2024
393b2e1
feat: removing autoPlay prop (with capital p) in favor of autoplay
colbyfayock Jan 16, 2024
7d4daaf
package updates in nextjs test app
colbyfayock Jan 16, 2024
e087f71
chore(release): 6.0.0-beta.2 [skip ci]
semantic-release-bot Jan 16, 2024
085843a
Merge branch 'main' into beta
colbyfayock Jan 19, 2024
2b5b30b
chore(release): 6.0.0-beta.3 [skip ci]
semantic-release-bot Jan 19, 2024
4f86a20
feat: Add Content-Type to CldUploadWidget Signature Headers (#418)
colbyfayock Jan 19, 2024
324a0be
chore(release): 6.0.0-beta.4 [skip ci]
semantic-release-bot Jan 19, 2024
d607e10
feat: PNPM (#419)
colbyfayock Jan 19, 2024
e999366
chore(release): 6.0.0-beta.5 [skip ci]
semantic-release-bot Jan 19, 2024
ababfb7
fix: Publish Branch (#420)
colbyfayock Jan 19, 2024
3e68a03
chore(release): 6.0.0-beta.6 [skip ci]
semantic-release-bot Jan 19, 2024
fbb4608
feat: Manage Native Types from @cloudinary-util/types (#421)
colbyfayock Jan 24, 2024
697589e
chore(release): 6.0.0-beta.7 [skip ci]
semantic-release-bot Jan 24, 2024
df7f587
feat: CldUploadWidget Events Normalization (#424)
colbyfayock Jan 25, 2024
2bf56c3
chore(release): 6.0.0-beta.8 [skip ci]
semantic-release-bot Jan 25, 2024
e7d3fd8
Merge branch 'main' into beta
colbyfayock Jan 25, 2024
b8de6f0
feat: Remove Default 2-Stage Image Sizing (#431)
colbyfayock Feb 22, 2024
2f4f425
chore(release): 6.0.0-beta.9 [skip ci]
semantic-release-bot Feb 22, 2024
a9d2200
Merge branch 'beta' of github.com:cloudinary-community/next-cloudinar…
colbyfayock Feb 22, 2024
e868afd
feat: fixing analytics bug
colbyfayock Feb 22, 2024
38456d9
chore(release): 6.0.0-beta.10 [skip ci]
semantic-release-bot Feb 22, 2024
bf3059e
feat: applying analytics to video urls
colbyfayock Feb 22, 2024
449f86f
Merge branch 'beta' of github.com:cloudinary-community/next-cloudinar…
colbyfayock Feb 22, 2024
606dc49
chore(release): 6.0.0-beta.11 [skip ci]
semantic-release-bot Feb 22, 2024
4a202e2
feat: Subpath Imports (#436)
colbyfayock Feb 22, 2024
9325e76
chore(release): 6.0.0-beta.12 [skip ci]
semantic-release-bot Feb 22, 2024
a4b4017
feat: Assert JSON on package.json imports, import Image from Next.js …
colbyfayock Feb 22, 2024
8f3cede
moving to vitest
colbyfayock Feb 22, 2024
913542e
moving to vitest
colbyfayock Feb 22, 2024
8b3614f
chore(release): 6.0.0-beta.13 [skip ci]
semantic-release-bot Feb 22, 2024
f442385
feat: import paths for next modules, removing head from video player
colbyfayock Feb 23, 2024
568737c
chore(release): 6.0.0-beta.14 [skip ci]
semantic-release-bot Feb 23, 2024
d1dd855
adding CSS to docs pages for video player
colbyfayock Feb 23, 2024
ee12169
Merge branch 'beta' of github.com:cloudinary-community/next-cloudinar…
colbyfayock Feb 23, 2024
8958e52
feat: Homepage Updates (#438)
colbyfayock Feb 23, 2024
145cee7
chore(release): 6.0.0-beta.15 [skip ci]
semantic-release-bot Feb 23, 2024
f8ce7e0
feat: CldOgImage fix, updating SEO in docs
colbyfayock Feb 23, 2024
a4dfa60
chore(release): 6.0.0-beta.16 [skip ci]
semantic-release-bot Feb 23, 2024
99786db
feat: Fix Subpath Imports & Config (#439)
colbyfayock Feb 24, 2024
6ce69e6
chore(release): 6.0.0-beta.17 [skip ci]
semantic-release-bot Feb 24, 2024
993115d
feat: attempting to fix package.json import
colbyfayock Feb 24, 2024
f42cbd2
chore(release): 6.0.0-beta.18 [skip ci]
semantic-release-bot Feb 24, 2024
b569709
feat: Revert Subpath Imports (#440)
colbyfayock Feb 24, 2024
f081464
chore(release): 6.0.0-beta.19 [skip ci]
semantic-release-bot Feb 24, 2024
a3a7be6
changelog
colbyfayock Feb 26, 2024
f7ac427
global site banner for new vresion
colbyfayock Feb 26, 2024
2cb3d0e
Merge branch 'main' into beta
colbyfayock Feb 26, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 26 additions & 9 deletions .github/workflows/test_and_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,23 @@ jobs:
node: [ '18', '20' ]
steps:
- uses: actions/checkout@v2

- uses: pnpm/action-setup@v2
with:
version: 7

- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
- run: yarn install --frozen-lockfile
cache: 'pnpm'

- run: pnpm install --frozen-lockfile
working-directory: ./next-cloudinary
- run: yarn test

- run: pnpm test
working-directory: ./next-cloudinary
- run: yarn test:app

- run: pnpm test:app
working-directory: ./next-cloudinary

release:
Expand All @@ -30,15 +39,23 @@ jobs:
- uses: actions/checkout@v2
with:
fetch-depth: 0

- uses: pnpm/action-setup@v2
with:
version: 7

- uses: actions/setup-node@v3
with:
node-version: '20'
- name: Install dependencies
run: yarn install --frozen-lockfile
# Semantic Release is incompatible with node 16 - so add these only on release
- run: yarn add @semantic-release/changelog @semantic-release/git semantic-release -W
- name: Release
cache: 'pnpm'
# https://github.com/pnpm/pnpm/issues/3141
registry-url: 'https://registry.npmjs.org'

- run: pnpm install --frozen-lockfile

- run: pnpm release
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npx semantic-release
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
auto-install-peers = true
5 changes: 3 additions & 2 deletions .releaserc
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,10 @@
}
],
[
"@semantic-release/npm",
"@colbyfayock/semantic-release-pnpm",
{
"pkgRoot": "next-cloudinary"
"pkgRoot": "next-cloudinary",
"publishBranch": "main|beta"
}
],
[
Expand Down
145 changes: 143 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,153 @@
# [5.20.0](https://github.com/cloudinary-community/next-cloudinary/compare/v5.19.0...v5.20.0) (2024-01-19)
# [6.0.0-beta.19](https://github.com/cloudinary-community/next-cloudinary/compare/v6.0.0-beta.18...v6.0.0-beta.19) (2024-02-24)


### Features

* Revert Subpath Imports ([#440](https://github.com/cloudinary-community/next-cloudinary/issues/440)) ([b569709](https://github.com/cloudinary-community/next-cloudinary/commit/b5697095d28050c27f994db54980a67e92200c83))

# [6.0.0-beta.18](https://github.com/cloudinary-community/next-cloudinary/compare/v6.0.0-beta.17...v6.0.0-beta.18) (2024-02-24)


### Features

* attempting to fix package.json import ([993115d](https://github.com/cloudinary-community/next-cloudinary/commit/993115dd9b488292fa178baf65018598b588e3f4))

# [6.0.0-beta.17](https://github.com/cloudinary-community/next-cloudinary/compare/v6.0.0-beta.16...v6.0.0-beta.17) (2024-02-24)


### Features

* Fix Subpath Imports & Config ([#439](https://github.com/cloudinary-community/next-cloudinary/issues/439)) ([99786db](https://github.com/cloudinary-community/next-cloudinary/commit/99786dba79fcd73061c6e823473d0c96389e0b0c))

# [6.0.0-beta.16](https://github.com/cloudinary-community/next-cloudinary/compare/v6.0.0-beta.15...v6.0.0-beta.16) (2024-02-23)


### Features

* CldOgImage fix, updating SEO in docs ([f8ce7e0](https://github.com/cloudinary-community/next-cloudinary/commit/f8ce7e03113812678712bd405c17349fa5b150bd))

# [6.0.0-beta.15](https://github.com/cloudinary-community/next-cloudinary/compare/v6.0.0-beta.14...v6.0.0-beta.15) (2024-02-23)


### Features

* Homepage Updates ([#438](https://github.com/cloudinary-community/next-cloudinary/issues/438)) ([8958e52](https://github.com/cloudinary-community/next-cloudinary/commit/8958e523052a030301d559edf954a99408e854e8))

# [6.0.0-beta.14](https://github.com/cloudinary-community/next-cloudinary/compare/v6.0.0-beta.13...v6.0.0-beta.14) (2024-02-23)


### Features

* import paths for next modules, removing head from video player ([f442385](https://github.com/cloudinary-community/next-cloudinary/commit/f442385ec62a6162317436fd12babbba5ca82510))

# [6.0.0-beta.13](https://github.com/cloudinary-community/next-cloudinary/compare/v6.0.0-beta.12...v6.0.0-beta.13) (2024-02-22)


### Features

* Assert JSON on package.json imports, import Image from Next.js directly ([#437](https://github.com/cloudinary-community/next-cloudinary/issues/437)) ([a4b4017](https://github.com/cloudinary-community/next-cloudinary/commit/a4b4017eaab7742b351a9904527916119e834850))

# [6.0.0-beta.12](https://github.com/cloudinary-community/next-cloudinary/compare/v6.0.0-beta.11...v6.0.0-beta.12) (2024-02-22)


### Features

* Subpath Imports ([#436](https://github.com/cloudinary-community/next-cloudinary/issues/436)) ([4a202e2](https://github.com/cloudinary-community/next-cloudinary/commit/4a202e2d1576d151a52e3fb2c5b8cadfbe91b621))

# [6.0.0-beta.11](https://github.com/cloudinary-community/next-cloudinary/compare/v6.0.0-beta.10...v6.0.0-beta.11) (2024-02-22)


### Features

* applying analytics to video urls ([bf3059e](https://github.com/cloudinary-community/next-cloudinary/commit/bf3059eef2d267da1427454d5c17d85889aab19f))

# [6.0.0-beta.10](https://github.com/cloudinary-community/next-cloudinary/compare/v6.0.0-beta.9...v6.0.0-beta.10) (2024-02-22)


### Features

* fixing analytics bug ([e868afd](https://github.com/cloudinary-community/next-cloudinary/commit/e868afd19f81552d7aec3b7a90e88786c672c633))

# [6.0.0-beta.9](https://github.com/cloudinary-community/next-cloudinary/compare/v6.0.0-beta.8...v6.0.0-beta.9) (2024-02-22)


### Features

* Remove Default 2-Stage Image Sizing ([#431](https://github.com/cloudinary-community/next-cloudinary/issues/431)) ([b8de6f0](https://github.com/cloudinary-community/next-cloudinary/commit/b8de6f055c8c2641b1990ae60c8d5092b9381b23))


### BREAKING CHANGES

* Changes how cropping fundamentally works, introduces new functionality behind crop prop

# [6.0.0-beta.8](https://github.com/cloudinary-community/next-cloudinary/compare/v6.0.0-beta.7...v6.0.0-beta.8) (2024-01-25)


### Features

* CldUploadWidget Events Normalization ([#424](https://github.com/cloudinary-community/next-cloudinary/issues/424)) ([df7f587](https://github.com/cloudinary-community/next-cloudinary/commit/df7f587c8fc5b33b0e3e24a0aea0746434249b6e))

# [6.0.0-beta.7](https://github.com/cloudinary-community/next-cloudinary/compare/v6.0.0-beta.6...v6.0.0-beta.7) (2024-01-24)


### Features

* Manage Native Types from @cloudinary-util/types ([#421](https://github.com/cloudinary-community/next-cloudinary/issues/421)) ([fbb4608](https://github.com/cloudinary-community/next-cloudinary/commit/fbb46085a0208766245f71f4b63856d1f3826603))

# [6.0.0-beta.6](https://github.com/cloudinary-community/next-cloudinary/compare/v6.0.0-beta.5...v6.0.0-beta.6) (2024-01-19)


### Bug Fixes

* Publish Branch ([#420](https://github.com/cloudinary-community/next-cloudinary/issues/420)) ([ababfb7](https://github.com/cloudinary-community/next-cloudinary/commit/ababfb794716f419375ab4f8ceda616a6c2217f4))

# [6.0.0-beta.5](https://github.com/cloudinary-community/next-cloudinary/compare/v6.0.0-beta.4...v6.0.0-beta.5) (2024-01-19)


### Features

* PNPM ([#419](https://github.com/cloudinary-community/next-cloudinary/issues/419)) ([d607e10](https://github.com/cloudinary-community/next-cloudinary/commit/d607e10a183d463ef6c367e1d656d06f38f88cb5)), closes [#408](https://github.com/cloudinary-community/next-cloudinary/issues/408)

# [6.0.0-beta.4](https://github.com/cloudinary-community/next-cloudinary/compare/v6.0.0-beta.3...v6.0.0-beta.4) (2024-01-19)


### Features

* Add Content-Type to CldUploadWidget Signature Headers ([#418](https://github.com/cloudinary-community/next-cloudinary/issues/418)) ([4f86a20](https://github.com/cloudinary-community/next-cloudinary/commit/4f86a2066732337506c8d386fdf79fa6dfd04f2f))


### BREAKING CHANGES

* CldUploadWidget signature endpoint now sets content-type as application/json

# [6.0.0-beta.3](https://github.com/cloudinary-community/next-cloudinary/compare/v6.0.0-beta.2...v6.0.0-beta.3) (2024-01-19)


### Features

* Export CldUploadWidgetInfo Type ([#413](https://github.com/cloudinary-community/next-cloudinary/issues/413)) ([8058c5c](https://github.com/cloudinary-community/next-cloudinary/commit/8058c5ce8e7c399cde46eff7d3628a5495ce7d7d)), closes [#412](https://github.com/cloudinary-community/next-cloudinary/issues/412)
* Updates URL Loader, Fixes Comma Encoding ([#415](https://github.com/cloudinary-community/next-cloudinary/issues/415)) ([25d2228](https://github.com/cloudinary-community/next-cloudinary/commit/25d2228a6f750ef32415c5b98c10b3ee7b32ad4e)), closes [#414](https://github.com/cloudinary-community/next-cloudinary/issues/414)

# [5.19.0](https://github.com/cloudinary-community/next-cloudinary/compare/v5.18.0...v5.19.0) (2024-01-17)
# [6.0.0-beta.2](https://github.com/cloudinary-community/next-cloudinary/compare/v6.0.0-beta.1...v6.0.0-beta.2) (2024-01-16)

### Features

* deprecating GetCldImageUrl and GetCldOgImageUrl types ([2e4f7e1](https://github.com/cloudinary-community/next-cloudinary/commit/2e4f7e10b22e76739cd4af7b1bc7327280324df3))
* removing autoPlay prop (with capital p) in favor of autoplay ([393b2e1](https://github.com/cloudinary-community/next-cloudinary/commit/393b2e16387ad8cd3c6584f077964ad4373316a1))

# [6.0.0-beta.1](https://github.com/cloudinary-community/next-cloudinary/compare/v5.18.0...v6.0.0-beta.1) (2024-01-16)

* Updates URL Loader to 4.0 ([#406](https://github.com/cloudinary-community/next-cloudinary/issues/406)) ([26789ee](https://github.com/cloudinary-community/next-cloudinary/commit/26789ee512aaf782895963c2fff799577245cb81))

### BREAKING CHANGES

* Updates URL Loader to new major version

# [5.20.0](https://github.com/cloudinary-community/next-cloudinary/compare/v5.19.0...v5.20.0) (2024-01-19)

* Updates URL Loader, Fixes Comma Encoding ([#415](https://github.com/cloudinary-community/next-cloudinary/issues/415)) ([25d2228](https://github.com/cloudinary-community/next-cloudinary/commit/25d2228a6f750ef32415c5b98c10b3ee7b32ad4e)), closes [#414](https://github.com/cloudinary-community/next-cloudinary/issues/414)

# [5.19.0](https://github.com/cloudinary-community/next-cloudinary/compare/v5.18.0...v5.19.0) (2024-01-17)

### Features

Expand Down
13 changes: 6 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,8 @@ High-performance image delivery and uploading at scale in Next.js powered by Clo
### Installation

* Install `next-cloudinary` with:

```
yarn add next-cloudinary
# or
npm install next-cloudinary
```

Expand Down Expand Up @@ -92,12 +91,12 @@ Please read [CONTRIBUTING.md](https://github.com/cloudinary-community/next-cloud

#### Installation

This project is using [yarn](https://yarnpkg.com/) as a way to manage dependencies and workspaces.
This project is using [pnpm](https://pnpm.io/) as a way to manage dependencies and workspaces.

With the project cloned, install the dependencies from the root of the project with:

```
yarn install
pnpm install
```

#### Configuration
Expand Down Expand Up @@ -129,7 +128,7 @@ CLOUDINARY_API_SECRET="<Your API Secret>"
Then run the upload script with:

```
yarn upload
pnpm upload
```

By default, the images inside of `scripts/images.json` will be uploaded to the "images" directory inside of your Cloudinary account. To change the location, add the `CLOUDINARY_IMAGES_DIRECTORY` environment variable with your preferred directory:
Expand All @@ -143,7 +142,7 @@ CLOUDINARY_IMAGES_DIRECTORY="<Your Directory>"
Once installed and configured, open two terminal tabs, navigating one to `next-cloudinary` and one to `docs`, running the following command in each:

```
yarn dev
pnpm dev
```

The project will now be available at <https://localhost:3000> or the configured local port.
Expand All @@ -155,7 +154,7 @@ All tests are located inside of `next-cloudinary/tests` with a directory structu
While inside `next-cloudinary`, run tests with:

```
yarn test
pnpm test
```

## Contributors
Expand Down
25 changes: 25 additions & 0 deletions docs/components/Button/Button.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
import Link from 'next/link';

import { cn } from '../../lib/utils';

const Button = ({ children, className = '', href, onClick }) => {
let buttonColor = 'text-white bg-primary hover:bg-blue-600';

const buttonStyles = cn('inline-block rounded py-2.5 px-6 text-lg font-bold uppercase', buttonColor, className);

if ( href ) {
return (
<Link href={href} onClick={onClick} className={buttonStyles}>
{ children }
</Link>
)
}

return (
<button onClick={onClick} className={buttonStyles}>
{ children }
</button>
)
}

export default Button;
1 change: 1 addition & 0 deletions docs/components/Button/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { default } from './Button';
6 changes: 4 additions & 2 deletions docs/components/CodeBlock/CodeBlock.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
import { useState } from 'react';
import { BsArrowsExpand, BsArrowsCollapse } from 'react-icons/bs'

import { cn } from '../../lib/utils';

import styles from './CodeBlock.module.scss';

export const CodeBlock = ({ children }) => {
export const CodeBlock = ({ children, className }) => {
const [expanded, setExpanded] = useState(false);

return (
<div className={styles.codeBlock}>
<div className={cn(styles.codeBlock, className)}>
<div className={styles.codeBlockCode} data-codeblock-expanded={expanded}>
{ children }
</div>
Expand Down
1 change: 0 additions & 1 deletion docs/components/CodeBlock/CodeBlock.module.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
.codeBlock {
position: relative;
margin: 1.5em 0;
}

.codeBlockCode {
Expand Down
23 changes: 23 additions & 0 deletions docs/components/ExamplesCldOgImage/ExamplesCldOgImage.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
import { CldImage } from '../../../next-cloudinary';
import { OG_IMAGE_WIDTH, OG_IMAGE_HEIGHT } from '../../../next-cloudinary/src/constants/sizes';

const ExamplesCldOgImage = ({ ...props }) => {
return (
<CldImage
width={OG_IMAGE_WIDTH}
height={OG_IMAGE_HEIGHT}
crop={{
width: OG_IMAGE_WIDTH,
height: OG_IMAGE_HEIGHT,
type: 'fill',
gravity: 'center',
source: true
}}
sizes="100vw"
alt=""
{...props}
/>
)
}

export default ExamplesCldOgImage;
1 change: 1 addition & 0 deletions docs/components/ExamplesCldOgImage/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { default } from './ExamplesCldOgImage';
Loading
Loading