Skip to content

Commit

Permalink
[ci] release (#105)
Browse files Browse the repository at this point in the history
* [ci] release

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Hugo Nogueira <[email protected]>
  • Loading branch information
3 people authored Oct 28, 2024
1 parent a808056 commit 3df2384
Show file tree
Hide file tree
Showing 6 changed files with 41 additions and 52 deletions.
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

0 comments on commit 3df2384

Please sign in to comment.