Skip to content

Commit

Permalink
Merge pull request #35 from rpearce/v2-dev
Browse files Browse the repository at this point in the history
v2.0.0
  • Loading branch information
rpearce authored Aug 10, 2022
2 parents aec8aca + 6213c44 commit 3ab86c8
Show file tree
Hide file tree
Showing 42 changed files with 5,500 additions and 8,940 deletions.
30 changes: 30 additions & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
module.exports = {
env: {
browser: true,
es2022: true,
jest: true,
node: true,
},
extends: [
'standard',
'plugin:@typescript-eslint/recommended',
],
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
},
plugins: ['@typescript-eslint'],
root: true,
rules: {
'comma-dangle': ['error', {
arrays: 'always-multiline',
exports: 'always-multiline',
functions: 'ignore',
imports: 'always-multiline',
objects: 'always-multiline',
}],
'space-before-function-paren': 'off',
'spaced-comment': 'off',
},
}
63 changes: 0 additions & 63 deletions .eslintrc.js

This file was deleted.

19 changes: 0 additions & 19 deletions .github/workflows/ci.yml

This file was deleted.

24 changes: 24 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Node.js CI

on: [push, pull_request]

jobs:
build:

runs-on: ubuntu-latest

steps:
- name: Checkout repo under GH workspace
uses: actions/checkout@v3

- name: Use nodejs
uses: actions/setup-node@v3
with:
node-version: 18
cache: npm

- name: Install deps without updating package-lock.json
run: npm i --no-save

- name: Run the CI build
run: npm run ci
1 change: 0 additions & 1 deletion AUTHORS

This file was deleted.

28 changes: 28 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,22 @@
# Changelog

All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).

## [2.0.0] - 2022-08-10

### Changed

* LICENSE is now `Unlicense` (public domain)
* ESModule-only project and build now

### Removed

* Removed CJS & UMD support
* Removed dependency on `tslib`

## [1.0.3] - 2022-08-10

### Fixed
Expand All @@ -13,37 +26,45 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
## [1.0.2] - 2022-05-23

### Fixed

* fixes bug with `hexToRgbaCss` when passed an alpha of 0

## [1.0.1] - 2020-08-29

### Fixed

* `tslib` wasn't included in dependencies
* function types weren't being exported

## [1.0.0] - 2020-03-15

### Added

* typescript support
* other bundles (minified CJS, minified UMD)

### Changed

* license from ISC to BSD-3

### Fixed

* security vulnerabilities from dependencies

### Removed

* `browser` entry point

## [0.3.1] - 2019-12-29

### Changed

* upgrade yarn.lock for security issues

## [0.3.0] - 2019-12-29

### Changed

* different `main` and `module` build outputs
* now including `umd` build
* now exposing all modules in output for individual importing
Expand All @@ -53,11 +74,13 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
## [0.2.4] - 2019-09-10

### Changed

* security fixes for `mixin-deep` and `lodash.merge`

## [0.2.3] - 2019-09-09

### Changed

* bumped `devDependencies` & better dev tooling
* using `dist/` instead of `src/` now for build output
* now building with `rollup`
Expand All @@ -66,19 +89,23 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
## [0.2.2] - 2019-03-04

### Fixed

* bumped `devDependencies`
* moved `@babel-polyfill` to `devDependencies`
* set `"sideEffects": false` in `package.json`

## [0.2.1] - 2019-01-21

### Fixed

- Updated `package.json` package info. Nothing to see here...

## [0.2.0] - 2019-01-21

### Added

Added the following functions:

* `blend`
* `blendAlpha`
* `hexBlend`
Expand All @@ -91,4 +118,5 @@ Added the following functions:
## [0.1.0] - 2019-01-11

### Added

* Added all the things
46 changes: 20 additions & 26 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,30 +1,24 @@
Copyright (c) 2020, Robert Pearce
This is free and unencumbered software released into the public domain.

All rights reserved.
Anyone is free to copy, modify, publish, use, compile, sell, or
distribute this software, either in source code form or as a compiled
binary, for any purpose, commercial or non-commercial, and by any
means.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
In jurisdictions that recognize copyright laws, the author or authors
of this software dedicate any and all copyright interest in the
software to the public domain. We make this dedication for the benefit
of the public at large and to the detriment of our heirs and
successors. We intend this dedication to be an overt act of
relinquishment in perpetuity of all present and future rights to this
software under copyright law.

* Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
OTHER DEALINGS IN THE SOFTWARE.

* Redistributions in binary form must reproduce the above
copyright notice, this list of conditions and the following
disclaimer in the documentation and/or other materials provided
with the distribution.

* Neither the name of Robert Pearce nor the names of other
contributors may be used to endorse or promote products derived
from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
For more information, please refer to <https://unlicense.org>
Loading

0 comments on commit 3ab86c8

Please sign in to comment.