Skip to content

Commit 131b7e3

Browse files
authored
Merge pull request #42 from ZeeCoder/v2.0.0
v2.0.0 release
2 parents 2e00636 + d1b2a0a commit 131b7e3

File tree

173 files changed

+25439
-5561
lines changed

Some content is hidden

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

173 files changed

+25439
-5561
lines changed

.babelrc

-3
This file was deleted.

.editorconfig

+1-4
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,8 @@ root = true
22

33
[*]
44
indent_style = space
5-
tab_width = 4
5+
tab_width = 2
66
end_of_line = lf
77
charset = utf-8
88
trim_trailing_whitespace = true
99
insert_final_newline = true
10-
11-
[package.json]
12-
tab_width = 2

.eslintignore

-4
This file was deleted.

.eslintrc

-17
This file was deleted.

.gitignore

+5-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1-
node_modules/
2-
build/
3-
coverage/
1+
node_modules
2+
dist
3+
coverage
44
npm-debug.log
5+
lerna-debug.log
6+
yarn-error.log
57
.idea
68
.DS_Store

.npmignore

-15
This file was deleted.

.travis.yml

+10-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
11
language: node_js
2+
sudo: false
23
node_js: [ 4, 5, 6, 7 ]
3-
after_success: 'npm run coveralls'
4+
after_success: 'yarn run coveralls'
5+
cache:
6+
yarn: true
7+
script:
8+
- lerna bootstrap --ignore={demos}
9+
- yarn test
10+
before_install:
11+
- curl -o- -L https://yarnpkg.com/install.sh | bash
12+
- export PATH="$HOME/.yarn/bin:$PATH"

CHANGELOG.md

+75-33
Original file line numberDiff line numberDiff line change
@@ -1,67 +1,109 @@
1-
# CHANGELOG
2-
3-
## 1.3.0 (2017-xx-xx)
4-
1+
# Changelog
2+
All notable changes to this project will be documented in this file.
3+
4+
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
5+
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
6+
7+
## [Unreleased]
8+
### Added
9+
- New diffing algorithm, which keeps track of the container's status (which
10+
query was applied already) and applies / removes the least amount of new styles
11+
possible.
12+
- r-units produce a value with limited precision. This is 2 by default, which
13+
can be changed in the Container options as `valuePrecision`.
14+
- `singleContainer` option (true by default), which makes the use of
15+
`@define-container` unnecessary for single-file containers. (Works well with
16+
Component-based architecture.)
17+
- Support for using r-units with css custom props. ie: `--rw: 1rw;`
18+
19+
### Changed
20+
- Published the runtime and the postcss plugin separately, both of which reside
21+
in the same monorepo.
22+
- Container instances are auto-adjusting themselves on size change by default.
23+
(`adjustOnResize` option.)
24+
- Bundling with Rollup instead of just transpiling the source. This gives better
25+
control over what is exposed, makes it easy to support other module formats in
26+
the future, and integrates Babel seemlessly.
27+
28+
### Removed
29+
- Removed support for the container and css unit combinations - like chpx - in
30+
favour of rw/rh/rmin/rmax units.
31+
- Removed `initialiseAllContainers`. It'll be turned to a demo instead in the
32+
future.
33+
- Removed some of the limitation on r-units. Paddings, for example can now use
34+
them.
35+
36+
37+
## [1.3.0] - 2017-06-07
38+
### Added
539
- Resize Observer can be enabled (will be the default behaviour in 2.0.0)
640
- Resize observation can be switched on / off.
741
- First adjustment on Container instantiation can be switched off
8-
- Dependency upgrades
942

10-
## 1.2.6 (2017-03-26)
43+
### Changed
44+
- Dependency upgrades
1145

46+
## [1.2.6] - 2017-03-26
47+
### Fixed
1248
- Fixed exports for non es-6 environments
1349

14-
## 1.2.5 (2017-03-25)
15-
50+
## [1.2.5] - 2017-03-25
51+
### Fixed
1652
- Fixed a bug where the postcss plugin processed nodes it shouldn't have
1753

18-
## 1.2.4 (2017-03-20)
19-
54+
## [1.2.4] - 2017-03-20
55+
### Fixed
2056
- Fixed a bug where initialiseAllContainers didn't trigger adjust calls on dom
2157
load
2258

23-
## 1.2.3 (2017-03-03)
24-
59+
## [1.2.3] - 2017-03-03
60+
### Changed
2561
- Made the runtime work with an invalid config
2662

27-
## 1.2.2 (2017-03-02)
28-
63+
## [1.2.2] - 2017-03-02
64+
### Changed
2965
- Improved browser support:
3066
- Object.assign replacement
3167
- Removed forEach calls on NodeList objects
32-
- Started works on a new demo
33-
34-
## 1.2.1 (2017-03-01)
68+
69+
### Added
70+
- Started working on a new demo
3571

72+
## [1.2.1] - 2017-03-01
73+
### Changed
3674
- README update
3775

38-
## 1.2.0 (2017-02-28)
39-
76+
## [1.2.0] - 2017-02-28
77+
### Added
4078
- Made "or" queries work as they do for @media queries
4179

42-
## 1.1.1 (2017-02-27)
43-
80+
## [1.1.1] - 2017-02-27
81+
### Fixed
4482
- Attempt to make the readme appear on npm
4583

46-
## 1.1.0 (2017-02-27)
47-
84+
## [1.1.0] - 2017-02-27
85+
### Added
4886
- cmin / cmax unit support
4987

50-
## 1.0.4 (2017-02-27)
51-
88+
## [1.0.4] - 2017-02-27
89+
### Fixed
5290
- Fixed the aspect-ratio query
53-
- improved the isEmptyObject tests
5491

55-
## 1.0.3 (2017-02-26)
92+
### Changed
93+
- improved the isEmptyObject tests
5694

95+
## [1.0.3] - 2017-02-26
96+
### Changed
5797
- Made Jest a dev-only dependency
5898

59-
## 1.0.2 (2017-02-22)
60-
99+
## [1.0.2] - 2017-02-22
100+
### Fixed
61101
- BUGFIX (#6): Fixed unitless @container queries
62-
- Upgraded Jest from v18 to v19
63102

103+
### Changed
104+
- Upgraded Jest from v18 to v19
64105

65-
## 1.0.1 (2017-02-21)
66-
67-
- Removed coverage/ and .babelrc from the installed package, hence making it a bit lighter.
106+
## [1.0.1] - 2017-02-21
107+
### Removed
108+
- Removed coverage/ and .babelrc from the installed package, hence making it a
109+
bit lighter.

Container.js

-1
This file was deleted.

0 commit comments

Comments
 (0)