Skip to content

Commit

Permalink
Version 4.0.0 Beta Release (#543)
Browse files Browse the repository at this point in the history
* chore(library): update dependencies

Update dependencies and fix new flow error in triangle.test.js

* refactor(stripunit): fully deprecate returnUnit

Fully deprecate returnUnit functionality and refactor return.

* refactor(readablecolor): make strict mode default

Make strict mode default when passing custom colors.

* build(babel): enable bugfix: true

Enable bugfix:true in build and target explicit browser list

* build(lint-staged): remove superfulous git add

* build(lerna): lerna init

* build(docs): removed documentation.js auto generation

* feat(fontface): now defaults to looking for local font first

Default is now to look for a local font of the same family-name before downloading. Can be turned
off by passing null to localFonts.

BREAKING CHANGE: localFont will now be populated by default and may have unexpected behavior.

* feat(important): important helper for module rule specificity

important helper for targeting specific rules in module returns for adding `!important`-level
specificity.

* chore(important): update to not mutate original parameter

* chore(important): add to index.js

* fix(triangle): triangle now properly supports inherit

triangle now returns properties in a way that allows inherit to work by declaring an individual side
for the triangle color.

* feat(cssvar): allow a default value for cssVar

Allow the user to pass a default value to cssVar for when a variable is not found.

* fix(between): added error case when to/from unit is differs from mix/max (#511)

* chore(library): update dependencies

Update dependencies and fix new flow error in triangle.test.js

* refactor(stripunit): fully deprecate returnUnit

Fully deprecate returnUnit functionality and refactor return.

* refactor(readablecolor): make strict mode default

Make strict mode default when passing custom colors.

* build(babel): enable bugfix: true

Enable bugfix:true in build and target explicit browser list

* build(lint-staged): remove superfulous git add

* build(lerna): lerna init

* feat(normalize): upgrade to normalize 8.0.1

* build(docs): removed documentation.js auto generation

* feat(fontface): now defaults to looking for local font first

Default is now to look for a local font of the same family-name before downloading. Can be turned
off by passing null to localFonts.

BREAKING CHANGE: localFont will now be populated by default and may have unexpected behavior.

* feat(important): important helper for module rule specificity

important helper for targeting specific rules in module returns for adding `!important`-level
specificity.

* chore(important): update to not mutate original parameter

* chore(important): add to index.js

* fix(triangle): triangle now properly supports inherit

triangle now returns properties in a way that allows inherit to work by declaring an individual side
for the triangle color.

* feat(cssvar): allow a default value for cssVar

Allow the user to pass a default value to cssVar for when a variable is not found.

* fix(between): added error case when to/from unit is different than min/max

Added an error case when the unit for to/fromSize is different than min/maxScreen. This was causing
bad calculations based on the differing scales.

BREAKING CHANGE: If you were using a mix of unit and unitless measure or working with different
units with similar scales (em/rem) you will now get an error where you may have been getting a
seemingly valid calculation.

fix #445

* feat(ellipsis): ellipsis now optionally supports multline truncation

* feat(easings): separate timingFunctions into separate easing functions (#513)

re #402

* chore(package.json): clean up and update deps

* Replace snapshots with specific expect statements

* chore(rebase): rebase on main

* docs(docs): return docs to build for V4

* fix(docs): properly set directory for pushstate-server

* build(workflows): update github workflows to only run on unbuntu and use latest versions

* fix(lineargradient): fix issues with rgba as first value with spaces

* feat(math): move non-standard formulas to exponentials presets

* build(package.json): prettier config and updated babel rollup plugin

* docs(docs): updates documentation index

* docs(easings): add easings to docs

* style(js): run new prettier config across all JS

* chore(package.json): add beta tag

* docs(timingfunctions): comment on timingFunctions deprecation

* chore(library): rebuild package

* chore(docs): add pushstate-server to docs

* fix(index.js): add easings to index.js for docs site build

* build(package.json): bump version for release

Co-authored-by: Vincent Ricard <magic@magicninja.org>
  • Loading branch information
bhough and ghostd committed Oct 4, 2020
1 parent 5a5a020 commit 10636bd
Show file tree
Hide file tree
Showing 216 changed files with 151,416 additions and 5,342 deletions.
8 changes: 8 additions & 0 deletions .browserlistrc
@@ -0,0 +1,8 @@
ie >= 11
last 1 Edge version
last 1 Firefox version
last 1 Chrome version
last 1 Safari version
last 1 iOS version
last 1 Android version
last 1 ChromeAndroid version
7 changes: 7 additions & 0 deletions .documentation.json
Expand Up @@ -94,9 +94,16 @@
"directionalProperty",
"em",
"getValueAndUnit",
"important",
"modularScale",
"rem",
"stripUnit",
{
"name": "Easings"
},
"easeIn",
"easeInOut",
"easeOut",
{
"name": "Types"
},
Expand Down
16 changes: 10 additions & 6 deletions .github/workflows/main.yml
@@ -1,19 +1,23 @@
name: Node CI Test

on: [push, pull_request]
on:
push:
branches:
- "main"
pull_request:
types: [opened, synchronize, reopened]

jobs:
build-test:

strategy:
matrix:
node-version: [10.x, 12.x]
platform: [ubuntu-latest, macos-latest, windows-latest]
node-version: [10.x, 12.x, 14.x]

runs-on: ${{ matrix.platform }}
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
Expand All @@ -23,7 +27,7 @@ jobs:
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"
- uses: actions/cache@v1
- uses: actions/cache@v2
id: yarn-cache
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
Expand Down
15 changes: 10 additions & 5 deletions .github/workflows/report-coverage.yml
@@ -1,24 +1,29 @@
name: Node CI Coverage

on: [push, pull_request]
on:
push:
branches:
- "main"
pull_request:
types: [opened, synchronize, reopened]

jobs:
report-coverage:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v1
- name: Use Node.js 12.x
- uses: actions/checkout@v2
- name: Use Node.js 14.x
uses: actions/setup-node@v1
with:
node-version: 12.x
node-version: 14.x
- name: Install Yarn
run: npm install -g yarn
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"
- uses: actions/cache@v1
- uses: actions/cache@v2
id: yarn-cache
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
Expand Down
4 changes: 4 additions & 0 deletions .prettierignore
@@ -0,0 +1,4 @@
# Ignore artifacts:
*.yml
dist
flow-typed
9 changes: 9 additions & 0 deletions .prettierrc
@@ -0,0 +1,9 @@
{
"arrowParens": "avoid",
"printWidth": 100,
"jsxBracketSameLine": false,
"semi": false,
"singleQuote": true,
"tabWidth": 2,
"trailingComma": "es5"
}
18 changes: 18 additions & 0 deletions .yarn/build-state.yml
@@ -0,0 +1,18 @@
# Warning: This file is automatically generated. Removing it is fine, but will
# cause all your builds to become invalidated.

# core-js@npm:2.6.11
"15178ded27ab674ae2054269453d809bdb1d00b98392a34947b5d43ea7a5811e5674c2fda7d48bb653b24a3506b0a8aa126bbac861bdeba93438ec6c7efb2d9d":
db736dc4074e342691ef9817883333341256536f991f66d9509013388d3fc65bdbc8bfd6cf60ba237fe0f94d7915b02a2e398309a3f8fa1fcf3f1ef25cfe2b1b

# fsevents@patch:fsevents@npm%3A1.2.13#builtin<compat/fsevents>::version=1.2.13&hash=87eb42
"2564bef5e1d1616dab22376e4afe7b73b2ac5539ceaea41ddb8f35c766bb8b831bf4861d53d6d930a3a5108b4d6919b585eabfd7dbce49eef2eb0f74602be02e":
07711048af01204c0b06c7c9eaf38dcd195bfa25c74729a86ef99a133353c43a8d339271fb206001595bc6a6301eccff01f3448d27afd2e4a3c646eb231b15ba

# husky@npm:4.3.0
"b6c2d49d0eb0ccd03cd8d5c01a23823972e91724d5313135fb55c2090a54e63449ce42dc64f102e84407ec8464d7ed38e2521f28cf82d313cbe7425fc5f1bffc":
d513fcedb6f5fcb0f4eb96b6e9548affedacadccb2a93924b6fee22394d1fad39ea544b1c9e11cfbfb0e56d283877d29419f5cc2ca45ee0aea36b6c8ef175257

# nodemon@npm:2.0.4
"6cfc557b1b3ed98544cad13ffd74462797496fe01d0dd9649602e1c1359d7df7fba294f2ac2939dc40ca1a1f18a3b7641601422c7b242c5785fec1a2e013a42b":
f4851e4132f5b7e52f8d2b20f1fcfff59132390d4ea58c2187c135e4ac5422f9e0452e68d5e2183d0a57a9f4e4f4aa5a769506ba205102a7ed394c089e0d045f
Binary file added .yarn/install-state.gz
Binary file not shown.

0 comments on commit 10636bd

Please sign in to comment.