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

[ci] release #105

Merged
merged 2 commits into from
Oct 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
5 changes: 0 additions & 5 deletions .changeset/new-apricots-refuse.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/rude-otters-tie.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/shy-books-learn.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/silent-impalas-cry.md

This file was deleted.

71 changes: 40 additions & 31 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# @sardine/colour

## 2.2.0

### Minor Changes

- a808056: Adds `getContrastRatioFromCSSRGB`
- a808056: Adds `getContrastRatioFromNamedCSSColour`
- 202ef96: Adds `getContrastRatioFromHex`
- a808056: Adds `getContrastRatio`

## 2.1.1

### Patch Changes
Expand All @@ -10,23 +19,23 @@

### Minor Changes

- d3ed0f8: feat: Adds a build compatible with unpkg CDN
- 2726662: feat: Adds convertHextoNamedCSSColour
feat: Adds convertNamedCSSColourtoRGB
feat: Adds convertCSSRGBtoRGB
feat: Adds convertRGBtoCSSRGB
feat: Adds convertRGBtoNamedCSSColour
feat: Adds findNearestColour
feat: Adds findNearestCSSRGBColour
feat: Adds findNearestHexColour
feat: Adds findNearestNamedCSSColour
feat: Adds findNearestRGBColour
- d3ed0f8: Adds a build compatible with unpkg CDN
- 2726662: Adds `convertHextoNamedCSSColour`
- 2726662: Adds `convertNamedCSSColourtoRGB`
- 2726662: Adds `convertCSSRGBtoRGB`
- 2726662: Adds `convertRGBtoCSSRGB`
- 2726662: Adds `convertRGBtoNamedCSSColour`
- 2726662: Adds `findNearestColour`
- 2726662: Adds `findNearestCSSRGBColour`
- 2726662: Adds `findNearestHexColour`
- 2726662: Adds `findNearestNamedCSSColour`
- 2726662: Adds `findNearestRGBColour`

## 2.0.2

### Patch Changes

- adfe49a: fix: Reverts default export to CJS
- adfe49a: Reverts default export to CJS

Some widely used tools like [Jest still don't support ESM](https://jestjs.io/docs/ecmascript-modules) yet.
This reverts the package to CJS, so node based tools can use it without any issues and we rely on modern bundlers to pick the ESM version when possible.
Expand All @@ -35,57 +44,57 @@

### Patch Changes

- e4aa71e: fix: Correctly sets package.json exports for ESM projects
- c1c02f0: bug: improves treeshaking for named CSS colours
- e4aa71e: Correctly sets package.json exports for ESM projects
- c1c02f0: Improves treeshaking for named CSS colours

## 2.0.0

### Major Changes

- f0ff977: chore: Sets Node 16 as minimum version
- 2db684b: chore: Adds @tsconfig/node16
- f0ff977: Sets Node 16 as minimum version
- 2db684b: Adds @tsconfig/node16

### Minor Changes

- b7147f9: chore: Adds compatibility with TypeScript's `"moduleResolution": "bundler"` compiler option
- b7147f9: Adds compatibility with TypeScript's `"moduleResolution": "bundler"` compiler option

## 1.6.1

### Patch Changes

- b45cbfc: fix: `convertCSSRGBtoRGB` now returns the alpha channel as `undefined` instead of `NaN` if no alpha is present in CSS RGB function
- b45cbfc: `convertCSSRGBtoRGB` now returns the alpha channel as `undefined` instead of `NaN` if no alpha is present in CSS RGB function

## 1.6.0

### Minor Changes

- 732f0ee: feat: Add convertNamedCSSColourtoHex
- 97eb272: feat: Add convertRGBtoHex
- 9dfb34f: feat: Add isDarkColour
- b35132a: feat: Add isCSSNamedDarkColour
- b35132a: feat: Add isCSSRGBColour
- b35132a: feat: Add isCSSRGBDarkColour
- b35132a: feat: Add isHexColour
- f16c7cf: feat: Add convertCSSRGBtoHex
- b35132a: feat: Increase coverage of different CSS RGB formats
- 732f0ee: Add `convertNamedCSSColourtoHex`
- 97eb272: Add `convertRGBtoHex`
- 9dfb34f: Add `isDarkColour`
- b35132a: Add `isCSSNamedDarkColour`
- b35132a: Add `isCSSRGBColour`
- b35132a: Add `isCSSRGBDarkColour`
- b35132a: Add `isHexColour`
- f16c7cf: Add `convertCSSRGBtoHex`
- b35132a: Increase coverage of different CSS RGB formats

## 1.5.0

### Minor Changes

- d513567: Add isHexDarkColour
- d513567: Add `isHexDarkColour`

## 1.4.0

### Minor Changes

- 748504c: feat: Add `pickHexColorContrast` function
- 748504c: Add `pickHexColorContrast`

## 1.3.0

### Minor Changes

- bea0ea2: feat: Add getSRGBLuminanceFromHex
- bea0ea2: Add `getSRGBLuminanceFromHex`

## 1.2.0

Expand All @@ -95,4 +104,4 @@

### Patch Changes

- 8f23abd: test: Added extra test
- 8f23abd: Added extra test
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@sardine/colour",
"version": "2.1.1",
"version": "2.2.0",
"description": "It does things to colours",
"type": "module",
"module": "./dist/index.mjs",
Expand Down