Skip to content

Commit 10636bd

Browse files
bhoughghostd
andauthored
Version 4.0.0 Beta Release (#543)
* 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 <[email protected]>
1 parent 5a5a020 commit 10636bd

File tree

216 files changed

+151416
-5342
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

216 files changed

+151416
-5342
lines changed

.browserlistrc

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
ie >= 11
2+
last 1 Edge version
3+
last 1 Firefox version
4+
last 1 Chrome version
5+
last 1 Safari version
6+
last 1 iOS version
7+
last 1 Android version
8+
last 1 ChromeAndroid version

.documentation.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,16 @@
9494
"directionalProperty",
9595
"em",
9696
"getValueAndUnit",
97+
"important",
9798
"modularScale",
9899
"rem",
99100
"stripUnit",
101+
{
102+
"name": "Easings"
103+
},
104+
"easeIn",
105+
"easeInOut",
106+
"easeOut",
100107
{
101108
"name": "Types"
102109
},

.github/workflows/main.yml

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,23 @@
11
name: Node CI Test
22

3-
on: [push, pull_request]
3+
on:
4+
push:
5+
branches:
6+
- "main"
7+
pull_request:
8+
types: [opened, synchronize, reopened]
49

510
jobs:
611
build-test:
712

813
strategy:
914
matrix:
10-
node-version: [10.x, 12.x]
11-
platform: [ubuntu-latest, macos-latest, windows-latest]
15+
node-version: [10.x, 12.x, 14.x]
1216

13-
runs-on: ${{ matrix.platform }}
17+
runs-on: ubuntu-latest
1418

1519
steps:
16-
- uses: actions/checkout@v1
20+
- uses: actions/checkout@v2
1721
- name: Use Node.js ${{ matrix.node-version }}
1822
uses: actions/setup-node@v1
1923
with:
@@ -23,7 +27,7 @@ jobs:
2327
- name: Get yarn cache directory path
2428
id: yarn-cache-dir-path
2529
run: echo "::set-output name=dir::$(yarn cache dir)"
26-
- uses: actions/cache@v1
30+
- uses: actions/cache@v2
2731
id: yarn-cache
2832
with:
2933
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}

.github/workflows/report-coverage.yml

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,29 @@
11
name: Node CI Coverage
22

3-
on: [push, pull_request]
3+
on:
4+
push:
5+
branches:
6+
- "main"
7+
pull_request:
8+
types: [opened, synchronize, reopened]
49

510
jobs:
611
report-coverage:
712

813
runs-on: ubuntu-latest
914

1015
steps:
11-
- uses: actions/checkout@v1
12-
- name: Use Node.js 12.x
16+
- uses: actions/checkout@v2
17+
- name: Use Node.js 14.x
1318
uses: actions/setup-node@v1
1419
with:
15-
node-version: 12.x
20+
node-version: 14.x
1621
- name: Install Yarn
1722
run: npm install -g yarn
1823
- name: Get yarn cache directory path
1924
id: yarn-cache-dir-path
2025
run: echo "::set-output name=dir::$(yarn cache dir)"
21-
- uses: actions/cache@v1
26+
- uses: actions/cache@v2
2227
id: yarn-cache
2328
with:
2429
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}

.prettierignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Ignore artifacts:
2+
*.yml
3+
dist
4+
flow-typed

.prettierrc

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"arrowParens": "avoid",
3+
"printWidth": 100,
4+
"jsxBracketSameLine": false,
5+
"semi": false,
6+
"singleQuote": true,
7+
"tabWidth": 2,
8+
"trailingComma": "es5"
9+
}

.yarn/build-state.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Warning: This file is automatically generated. Removing it is fine, but will
2+
# cause all your builds to become invalidated.
3+
4+
# core-js@npm:2.6.11
5+
"15178ded27ab674ae2054269453d809bdb1d00b98392a34947b5d43ea7a5811e5674c2fda7d48bb653b24a3506b0a8aa126bbac861bdeba93438ec6c7efb2d9d":
6+
db736dc4074e342691ef9817883333341256536f991f66d9509013388d3fc65bdbc8bfd6cf60ba237fe0f94d7915b02a2e398309a3f8fa1fcf3f1ef25cfe2b1b
7+
8+
# fsevents@patch:fsevents@npm%3A1.2.13#builtin<compat/fsevents>::version=1.2.13&hash=87eb42
9+
"2564bef5e1d1616dab22376e4afe7b73b2ac5539ceaea41ddb8f35c766bb8b831bf4861d53d6d930a3a5108b4d6919b585eabfd7dbce49eef2eb0f74602be02e":
10+
07711048af01204c0b06c7c9eaf38dcd195bfa25c74729a86ef99a133353c43a8d339271fb206001595bc6a6301eccff01f3448d27afd2e4a3c646eb231b15ba
11+
12+
# husky@npm:4.3.0
13+
"b6c2d49d0eb0ccd03cd8d5c01a23823972e91724d5313135fb55c2090a54e63449ce42dc64f102e84407ec8464d7ed38e2521f28cf82d313cbe7425fc5f1bffc":
14+
d513fcedb6f5fcb0f4eb96b6e9548affedacadccb2a93924b6fee22394d1fad39ea544b1c9e11cfbfb0e56d283877d29419f5cc2ca45ee0aea36b6c8ef175257
15+
16+
# nodemon@npm:2.0.4
17+
"6cfc557b1b3ed98544cad13ffd74462797496fe01d0dd9649602e1c1359d7df7fba294f2ac2939dc40ca1a1f18a3b7641601422c7b242c5785fec1a2e013a42b":
18+
f4851e4132f5b7e52f8d2b20f1fcfff59132390d4ea58c2187c135e4ac5422f9e0452e68d5e2183d0a57a9f4e4f4aa5a769506ba205102a7ed394c089e0d045f

.yarn/install-state.gz

1.31 MB
Binary file not shown.

0 commit comments

Comments
 (0)