@thi.ng/hiccup-css 2.0.7 → 2.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (4) hide show
  1. package/CHANGELOG.md +147 -37
  2. package/README.md +1 -1
  3. package/package.json +122 -117
  4. package/LICENSE +0 -201
package/CHANGELOG.md CHANGED
@@ -1,78 +1,188 @@
1
1
  # Change Log
2
2
 
3
+ - **Last updated**: 2021-11-21T17:09:28Z
4
+ - **Generator**: [thi.ng/monopub](https://thi.ng/monopub)
5
+
3
6
  All notable changes to this project will be documented in this file.
4
- See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
7
+ See [Conventional Commits](https://conventionalcommits.org/) for commit guidelines.
8
+
9
+ **Note:** Unlisted _patch_ versions only involve non-code or otherwise excluded changes
10
+ and/or version bumps of transitive dependencies.
11
+
12
+ ## [2.1.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/hiccup-css@2.1.0) (2021-11-17)
5
13
 
6
- ## [2.0.7](https://github.com/thi-ng/umbrella/compare/@thi.ng/hiccup-css@2.0.6...@thi.ng/hiccup-css@2.0.7) (2021-11-03)
14
+ #### 🚀 Features
7
15
 
8
- **Note:** Version bump only for package @thi.ng/hiccup-css
16
+ - Using workspaces for local tools ([bf7a404](https://github.com/thi-ng/umbrella/commit/bf7a404))
17
+ Improving the overall build ergonomics
18
+ - introduced a tools workspaces
19
+ - imported it in all needed packages/examples
20
+ - inclusive project root
9
21
 
22
+ #### ♻️ Refactoring
10
23
 
24
+ - testrunner to binary ([4ebbbb2](https://github.com/thi-ng/umbrella/commit/4ebbbb2))
25
+ this commit reverts (partly) changes made in:
26
+ ef346d7a8753590dc9094108a3d861a8dbd5dd2c
27
+ overall purpose is better testament ergonomics:
28
+ instead of having to pass NODE_OPTIONS with every invocation
29
+ having a binary to handle this for us.
11
30
 
31
+ ### [2.0.1](https://github.com/thi-ng/umbrella/tree/@thi.ng/hiccup-css@2.0.1) (2021-10-13)
12
32
 
33
+ #### ♻️ Refactoring
13
34
 
14
- # [2.0.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/hiccup-css@1.1.73...@thi.ng/hiccup-css@2.0.0) (2021-10-12)
35
+ - update imports in all tests/pkgs ([effd591](https://github.com/thi-ng/umbrella/commit/effd591))
36
+ - update imports in all pkgs ([5fa2b6f](https://github.com/thi-ng/umbrella/commit/5fa2b6f))
37
+ - add .js suffix for all relative imports
15
38
 
39
+ # [2.0.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/hiccup-css@2.0.0) (2021-10-12)
16
40
 
17
- ### Build System
41
+ #### 🛑 Breaking changes
18
42
 
19
- * major update of ALL pkgs (export maps, ESM only) ([0d1d6ea](https://github.com/thi-ng/umbrella/commit/0d1d6ea9fab2a645d6c5f2bf2591459b939c09b6))
43
+ - major update of ALL pkgs (export maps, ESM only) ([0d1d6ea](https://github.com/thi-ng/umbrella/commit/0d1d6ea))
44
+ - BREAKING CHANGE: discontinue CommonJS & UMD versions
45
+ - only ESM modules will be published from now on
46
+ - CJS obsolete due to ESM support in recent versions of node:
47
+ - i.e. launch NodeJS via:
48
+ - `node --experimental-specifier-resolution=node --experimental-repl-await`
49
+ - in the node REPL use `await import(...)` instead of `require()`
50
+ - UMD obsolete due to widespread browser support for ESM
51
+ Also:
52
+ - normalize/restructure/reorg all package.json files
53
+ - cleanup all build scripts, remove obsolete
54
+ - switch from mocha to [@thi.ng/testament](https://github.com/thi-ng/umbrella/tree/main/packages/testament) for all tests
20
55
 
56
+ #### ♻️ Refactoring
21
57
 
22
- ### BREAKING CHANGES
58
+ - minor pkg restructure ([3d34f5f](https://github.com/thi-ng/umbrella/commit/3d34f5f))
59
+ - update imports (transducers) ([f3e1272](https://github.com/thi-ng/umbrella/commit/f3e1272))
60
+ - update imports ([138571a](https://github.com/thi-ng/umbrella/commit/138571a))
61
+ - update all tests in _all_ pkgs ([8b582bc](https://github.com/thi-ng/umbrella/commit/8b582bc))
62
+ - update all to use [@thi.ng/testament](https://github.com/thi-ng/umbrella/tree/main/packages/testament)
23
63
 
24
- * discontinue CommonJS & UMD versions
64
+ ### [1.1.39](https://github.com/thi-ng/umbrella/tree/@thi.ng/hiccup-css@1.1.39) (2020-09-22)
25
65
 
26
- - only ESM modules will be published from now on
27
- - CJS obsolete due to ESM support in recent versions of node:
28
- - i.e. launch NodeJS via:
29
- - `node --experimental-specifier-resolution=node --experimental-repl-await`
30
- - in the node REPL use `await import(...)` instead of `require()`
31
- - UMD obsolete due to widespread browser support for ESM
66
+ #### ♻️ Refactoring
32
67
 
33
- Also:
34
- - normalize/restructure/reorg all package.json files
35
- - cleanup all build scripts, remove obsolete
36
- - switch from mocha to @thi.ng/testament for all tests
68
+ - update css() ([24f9a67](https://github.com/thi-ng/umbrella/commit/24f9a67))
37
69
 
70
+ ### [1.1.10](https://github.com/thi-ng/umbrella/tree/@thi.ng/hiccup-css@1.1.10) (2020-02-25)
38
71
 
72
+ #### ♻️ Refactoring
39
73
 
74
+ - update imports ([03712f0](https://github.com/thi-ng/umbrella/commit/03712f0))
40
75
 
76
+ ## [1.1.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/hiccup-css@1.1.0) (2019-07-07)
41
77
 
78
+ #### 🚀 Features
42
79
 
43
- # [1.1.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/hiccup-css@1.0.19...@thi.ng/hiccup-css@1.1.0) (2019-07-07)
80
+ - enable TS strict compiler flags (refactor) ([1e81385](https://github.com/thi-ng/umbrella/commit/1e81385))
44
81
 
45
- ### Features
82
+ #### ♻️ Refactoring
46
83
 
47
- - **hiccup-css:** enable TS strict compiler flags (refactor) ([1e81385](https://github.com/thi-ng/umbrella/commit/1e81385))
84
+ - address TS strictNullChecks flag ([526257f](https://github.com/thi-ng/umbrella/commit/526257f))
48
85
 
49
- # [1.0.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/hiccup-css@0.3.5...@thi.ng/hiccup-css@1.0.0) (2019-01-21)
86
+ # [1.0.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/hiccup-css@1.0.0) (2019-01-21)
50
87
 
51
- ### Build System
88
+ #### 🛑 Breaking changes
52
89
 
53
90
  - update package build scripts & outputs, imports in ~50 packages ([b54b703](https://github.com/thi-ng/umbrella/commit/b54b703))
91
+ - BREAKING CHANGE: enabled multi-outputs (ES6 modules, CJS, UMD)
92
+ - build scripts now first build ES6 modules in package root, then call
93
+ `scripts/bundle-module` to build minified CJS & UMD bundles in `/lib`
94
+ - all imports MUST be updated to only refer to package level
95
+ (not individual files anymore). tree shaking in user land will get rid of
96
+ all unused imported symbols.
97
+
98
+ #### ♻️ Refactoring
99
+
100
+ - use arrow fns ([3b74de9](https://github.com/thi-ng/umbrella/commit/3b74de9))
101
+
102
+ ## [0.3.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/hiccup-css@0.3.0) (2018-12-15)
103
+
104
+ #### 🚀 Features
105
+
106
+ - add animation(), add test & update readme ([aac8b6f](https://github.com/thi-ng/umbrella/commit/aac8b6f))
107
+
108
+ ## [0.2.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/hiccup-css@0.2.0) (2018-06-08)
109
+
110
+ #### 🚀 Features
111
+
112
+ - add injectStyleSheet() ([8d6e6c8](https://github.com/thi-ng/umbrella/commit/8d6e6c8))
113
+ - add class scoping support ([244bf21](https://github.com/thi-ng/umbrella/commit/244bf21))
114
+ - add CSSOpts.scope field
115
+ - update formatRule() to inject class suffixing transducer if needed
116
+
117
+ ### [0.1.16](https://github.com/thi-ng/umbrella/tree/@thi.ng/hiccup-css@0.1.16) (2018-05-10)
118
+
119
+ #### ♻️ Refactoring
120
+
121
+ - update deps & imports in all packages due to [@thi.ng/api](https://github.com/thi-ng/umbrella/tree/main/packages/api) split ([bc45636](https://github.com/thi-ng/umbrella/commit/bc45636))
122
+
123
+ ### [0.1.5](https://github.com/thi-ng/umbrella/tree/@thi.ng/hiccup-css@0.1.5) (2018-03-21)
124
+
125
+ #### ♻️ Refactoring
126
+
127
+ - update error handling ([0cfc227](https://github.com/thi-ng/umbrella/commit/0cfc227))
128
+
129
+ ### [0.1.2](https://github.com/thi-ng/umbrella/tree/@thi.ng/hiccup-css@0.1.2) (2018-03-05)
54
130
 
55
- ### BREAKING CHANGES
131
+ #### ♻️ Refactoring
56
132
 
57
- - enabled multi-outputs (ES6 modules, CJS, UMD)
58
- - build scripts now first build ES6 modules in package root, then call `scripts/bundle-module` to build minified CJS & UMD bundles in `/lib`
59
- - all imports MUST be updated to only refer to package level (not individual files anymore). tree shaking in user land will get rid of all unused imported symbols.
133
+ - internal restructure ([721583a](https://github.com/thi-ng/umbrella/commit/721583a))
134
+ - migrate internal implementation fns to src/impl.ts
135
+ - remove utils.ts
60
136
 
61
- # [0.3.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/hiccup-css@0.2.32...@thi.ng/hiccup-css@0.3.0) (2018-12-15)
137
+ ### [0.1.1](https://github.com/thi-ng/umbrella/tree/@thi.ng/hiccup-css@0.1.1) (2018-03-05)
62
138
 
63
- ### Features
139
+ #### 🚀 Features
64
140
 
65
- - **hiccup-css:** add animation(), add test & update readme ([aac8b6f](https://github.com/thi-ng/umbrella/commit/aac8b6f))
141
+ - add comment() indentation support ([0f416ef](https://github.com/thi-ng/umbrella/commit/0f416ef))
142
+ - add more unit types, update px/ms ([787d0ab](https://github.com/thi-ng/umbrella/commit/787d0ab))
143
+ - add rad(), turn()
144
+ - force int values for px()/ms()
145
+ - add support for iterators as arg type to css() ([02bff87](https://github.com/thi-ng/umbrella/commit/02bff87))
146
+ - update conditional handling, add formatCond() ([57533c7](https://github.com/thi-ng/umbrella/commit/57533c7))
147
+ - update fn handling, add iterator support, units, comment ([428de3c](https://github.com/thi-ng/umbrella/commit/428de3c))
148
+ - update fn exec rules (now only head pos vs. other pos in array)
149
+ - add comment() fn
150
+ - add Format.comments flag
151
+ - update COMPACT preset to omit comments
152
+ - add unit format wrappers
153
+ - rename attribIncl() => attribContains()
154
+ - rename attribContains() => attribMatches()
155
+ - add attrib fn, at-rules, quoted fns, decl value arrays ([ebbc491](https://github.com/thi-ng/umbrella/commit/ebbc491))
156
+ - quoted functions map keywords in root-level rules to fns
157
+ (useful for pure JSON definitions, where fns are not possible)
158
+ - add @import, @keyframes, @media, @namespace, @supports fns
159
+ - refactor @media & @supports to use generic `conditional()`
160
+ - add attrib selector fns
161
+ - add support for declaration value arrays (converted to string,
162
+ first level joined w/ `,` and inner arrays joined w/ ` `
163
+ - add/update re-exports
164
+ - add default vendor prefixes ([e687230](https://github.com/thi-ng/umbrella/commit/e687230))
165
+ - add keyframes(), split module into separate src files ([a53d2a5](https://github.com/thi-ng/umbrella/commit/a53d2a5))
166
+ - add CSSOpts, mediaQuery(), fn expansion ([d837199](https://github.com/thi-ng/umbrella/commit/d837199))
167
+ - add CSSOpts w/ autoprefix & vendor config
168
+ - split FORMATS => COMPACT, PRETTY consts
169
+ - update css() to accept options arg
170
+ - update css() to accept function as rules
171
+ - update formatDecls() to accept fns as attrib values
172
+ - add nested indentation support for pretty printing
173
+ - add/fix class handling, update Format ([5247b8f](https://github.com/thi-ng/umbrella/commit/5247b8f))
174
+ - add package [@thi.ng/hiccup-css](https://github.com/thi-ng/umbrella/tree/main/packages/hiccup-css) ([3a4cf1e](https://github.com/thi-ng/umbrella/commit/3a4cf1e))
66
175
 
67
- # [0.2.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/hiccup-css@0.1.24...@thi.ng/hiccup-css@0.2.0) (2018-06-08)
176
+ #### 🩹 Bug fixes
68
177
 
69
- ### Features
178
+ - fn & auto-prefix handling ([f3190ff](https://github.com/thi-ng/umbrella/commit/f3190ff))
179
+ - @import query separator ([e347c29](https://github.com/thi-ng/umbrella/commit/e347c29))
70
180
 
71
- - **hiccup-css:** add class scoping support ([244bf21](https://github.com/thi-ng/umbrella/commit/244bf21))
72
- - **hiccup-css:** add injectStyleSheet() ([8d6e6c8](https://github.com/thi-ng/umbrella/commit/8d6e6c8))
181
+ #### Performance improvements
73
182
 
74
- ## [0.1.1](https://github.com/thi-ng/umbrella/compare/@thi.ng/hiccup-css@0.1.0...@thi.ng/hiccup-css@0.1.1) (2018-03-05)
183
+ - no empty Set() creation, change type check order in css() ([105bbf4](https://github.com/thi-ng/umbrella/commit/105bbf4))
184
+ - minor optimizations ([6de6b27](https://github.com/thi-ng/umbrella/commit/6de6b27))
75
185
 
76
- ### Performance Improvements
186
+ #### ♻️ Refactoring
77
187
 
78
- - **hiccup-css:** no empty Set() creation, change type check order in css() ([105bbf4](https://github.com/thi-ng/umbrella/commit/105bbf4))
188
+ - format @keyframe stops, rename perc() => percent() ([a623117](https://github.com/thi-ng/umbrella/commit/a623117))
package/README.md CHANGED
@@ -119,7 +119,7 @@ node --experimental-repl-await
119
119
  > const hiccupCss = await import("@thi.ng/hiccup-css");
120
120
  ```
121
121
 
122
- Package sizes (gzipped, pre-treeshake): ESM: 2.14 KB
122
+ Package sizes (gzipped, pre-treeshake): ESM: 2.20 KB
123
123
 
124
124
  ## Dependencies
125
125
 
package/package.json CHANGED
@@ -1,126 +1,131 @@
1
1
  {
2
- "name": "@thi.ng/hiccup-css",
3
- "version": "2.0.7",
4
- "description": "CSS from nested JS data structures",
5
- "type": "module",
6
- "module": "./index.js",
7
- "typings": "./index.d.ts",
8
- "sideEffects": false,
9
- "repository": {
10
- "type": "git",
11
- "url": "https://github.com/thi-ng/umbrella.git"
2
+ "name": "@thi.ng/hiccup-css",
3
+ "version": "2.1.2",
4
+ "description": "CSS from nested JS data structures",
5
+ "type": "module",
6
+ "module": "./index.js",
7
+ "typings": "./index.d.ts",
8
+ "sideEffects": false,
9
+ "repository": {
10
+ "type": "git",
11
+ "url": "https://github.com/thi-ng/umbrella.git"
12
+ },
13
+ "homepage": "https://github.com/thi-ng/umbrella/tree/develop/packages/hiccup-css#readme",
14
+ "funding": [
15
+ {
16
+ "type": "github",
17
+ "url": "https://github.com/sponsors/postspectacular"
12
18
  },
13
- "homepage": "https://github.com/thi-ng/umbrella/tree/develop/packages/hiccup-css#readme",
14
- "funding": [
15
- {
16
- "type": "github",
17
- "url": "https://github.com/sponsors/postspectacular"
18
- },
19
- {
20
- "type": "patreon",
21
- "url": "https://patreon.com/thing_umbrella"
22
- }
23
- ],
24
- "author": "Karsten Schmidt <k+npm@thi.ng>",
25
- "license": "Apache-2.0",
26
- "scripts": {
27
- "build": "yarn clean && tsc --declaration",
28
- "clean": "rimraf *.js *.d.ts *.map doc",
29
- "doc": "typedoc --excludePrivate --excludeInternal --out doc src/index.ts",
30
- "doc:ae": "mkdir -p .ae/doc .ae/temp && node_modules/.bin/api-extractor run --local --verbose",
31
- "doc:readme": "yarn doc:stats && ../../scripts/node-esm ../../tools/src/readme.ts",
32
- "doc:stats": "../../scripts/node-esm ../../tools/src/module-stats.ts",
33
- "pub": "yarn build && yarn publish --access public",
34
- "test": "testament test"
19
+ {
20
+ "type": "patreon",
21
+ "url": "https://patreon.com/thing_umbrella"
22
+ }
23
+ ],
24
+ "author": "Karsten Schmidt <k+npm@thi.ng>",
25
+ "license": "Apache-2.0",
26
+ "scripts": {
27
+ "build": "yarn clean && tsc --declaration",
28
+ "clean": "rimraf '*.js' '*.d.ts' '*.map' doc",
29
+ "doc": "typedoc --excludePrivate --excludeInternal --out doc src/index.ts",
30
+ "doc:ae": "mkdir -p .ae/doc .ae/temp && api-extractor run --local --verbose",
31
+ "doc:readme": "yarn doc:stats && tools:readme",
32
+ "doc:stats": "tools:module-stats",
33
+ "pub": "yarn npm publish --access public",
34
+ "test": "testament test"
35
+ },
36
+ "dependencies": {
37
+ "@thi.ng/api": "^8.3.2",
38
+ "@thi.ng/checks": "^3.1.2",
39
+ "@thi.ng/errors": "^2.1.2",
40
+ "@thi.ng/transducers": "^8.1.2"
41
+ },
42
+ "devDependencies": {
43
+ "@microsoft/api-extractor": "^7.18.19",
44
+ "@thi.ng/testament": "^0.2.2",
45
+ "rimraf": "^3.0.2",
46
+ "tools": "^0.0.1",
47
+ "typedoc": "^0.22.9",
48
+ "typescript": "^4.5.2"
49
+ },
50
+ "keywords": [
51
+ "array",
52
+ "browser",
53
+ "codegen",
54
+ "component",
55
+ "css",
56
+ "dsl",
57
+ "export",
58
+ "fileformat",
59
+ "hiccup",
60
+ "iterator",
61
+ "json",
62
+ "typescript",
63
+ "ui"
64
+ ],
65
+ "publishConfig": {
66
+ "access": "public"
67
+ },
68
+ "engines": {
69
+ "node": ">=12.7"
70
+ },
71
+ "files": [
72
+ "*.js",
73
+ "*.d.ts"
74
+ ],
75
+ "exports": {
76
+ ".": {
77
+ "import": "./index.js"
35
78
  },
36
- "dependencies": {
37
- "@thi.ng/api": "^8.1.0",
38
- "@thi.ng/checks": "^3.0.6",
39
- "@thi.ng/errors": "^2.0.6",
40
- "@thi.ng/transducers": "^8.0.7"
79
+ "./animation": {
80
+ "import": "./animation.js"
41
81
  },
42
- "devDependencies": {
43
- "@thi.ng/testament": "^0.1.6"
82
+ "./api": {
83
+ "import": "./api.js"
44
84
  },
45
- "keywords": [
46
- "array",
47
- "browser",
48
- "codegen",
49
- "component",
50
- "css",
51
- "dsl",
52
- "export",
53
- "fileformat",
54
- "hiccup",
55
- "iterator",
56
- "json",
57
- "typescript",
58
- "ui"
59
- ],
60
- "publishConfig": {
61
- "access": "public"
85
+ "./attribs": {
86
+ "import": "./attribs.js"
62
87
  },
63
- "engines": {
64
- "node": ">=12.7"
88
+ "./comment": {
89
+ "import": "./comment.js"
65
90
  },
66
- "files": [
67
- "*.js",
68
- "*.d.ts"
69
- ],
70
- "exports": {
71
- ".": {
72
- "import": "./index.js"
73
- },
74
- "./animation": {
75
- "import": "./animation.js"
76
- },
77
- "./api": {
78
- "import": "./api.js"
79
- },
80
- "./attribs": {
81
- "import": "./attribs.js"
82
- },
83
- "./comment": {
84
- "import": "./comment.js"
85
- },
86
- "./conditional": {
87
- "import": "./conditional.js"
88
- },
89
- "./css": {
90
- "import": "./css.js"
91
- },
92
- "./import": {
93
- "import": "./import.js"
94
- },
95
- "./inject": {
96
- "import": "./inject.js"
97
- },
98
- "./keyframes": {
99
- "import": "./keyframes.js"
100
- },
101
- "./media": {
102
- "import": "./media.js"
103
- },
104
- "./namespace": {
105
- "import": "./namespace.js"
106
- },
107
- "./quoted-functions": {
108
- "import": "./quoted-functions.js"
109
- },
110
- "./supports": {
111
- "import": "./supports.js"
112
- },
113
- "./units": {
114
- "import": "./units.js"
115
- }
91
+ "./conditional": {
92
+ "import": "./conditional.js"
93
+ },
94
+ "./css": {
95
+ "import": "./css.js"
96
+ },
97
+ "./import": {
98
+ "import": "./import.js"
99
+ },
100
+ "./inject": {
101
+ "import": "./inject.js"
116
102
  },
117
- "thi.ng": {
118
- "parent": "@thi.ng/hiccup",
119
- "related": [
120
- "hiccup-html",
121
- "hiccup-svg"
122
- ],
123
- "year": 2016
103
+ "./keyframes": {
104
+ "import": "./keyframes.js"
124
105
  },
125
- "gitHead": "852cd2450617c86d15d18477dc634f17f04202eb"
126
- }
106
+ "./media": {
107
+ "import": "./media.js"
108
+ },
109
+ "./namespace": {
110
+ "import": "./namespace.js"
111
+ },
112
+ "./quoted-functions": {
113
+ "import": "./quoted-functions.js"
114
+ },
115
+ "./supports": {
116
+ "import": "./supports.js"
117
+ },
118
+ "./units": {
119
+ "import": "./units.js"
120
+ }
121
+ },
122
+ "thi.ng": {
123
+ "parent": "@thi.ng/hiccup",
124
+ "related": [
125
+ "hiccup-html",
126
+ "hiccup-svg"
127
+ ],
128
+ "year": 2016
129
+ },
130
+ "gitHead": "e8a7c2a40191b391cef182c2978e5a6c85987a87\n"
131
+ }
package/LICENSE DELETED
@@ -1,201 +0,0 @@
1
- Apache License
2
- Version 2.0, January 2004
3
- http://www.apache.org/licenses/
4
-
5
- TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
-
7
- 1. Definitions.
8
-
9
- "License" shall mean the terms and conditions for use, reproduction,
10
- and distribution as defined by Sections 1 through 9 of this document.
11
-
12
- "Licensor" shall mean the copyright owner or entity authorized by
13
- the copyright owner that is granting the License.
14
-
15
- "Legal Entity" shall mean the union of the acting entity and all
16
- other entities that control, are controlled by, or are under common
17
- control with that entity. For the purposes of this definition,
18
- "control" means (i) the power, direct or indirect, to cause the
19
- direction or management of such entity, whether by contract or
20
- otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
- outstanding shares, or (iii) beneficial ownership of such entity.
22
-
23
- "You" (or "Your") shall mean an individual or Legal Entity
24
- exercising permissions granted by this License.
25
-
26
- "Source" form shall mean the preferred form for making modifications,
27
- including but not limited to software source code, documentation
28
- source, and configuration files.
29
-
30
- "Object" form shall mean any form resulting from mechanical
31
- transformation or translation of a Source form, including but
32
- not limited to compiled object code, generated documentation,
33
- and conversions to other media types.
34
-
35
- "Work" shall mean the work of authorship, whether in Source or
36
- Object form, made available under the License, as indicated by a
37
- copyright notice that is included in or attached to the work
38
- (an example is provided in the Appendix below).
39
-
40
- "Derivative Works" shall mean any work, whether in Source or Object
41
- form, that is based on (or derived from) the Work and for which the
42
- editorial revisions, annotations, elaborations, or other modifications
43
- represent, as a whole, an original work of authorship. For the purposes
44
- of this License, Derivative Works shall not include works that remain
45
- separable from, or merely link (or bind by name) to the interfaces of,
46
- the Work and Derivative Works thereof.
47
-
48
- "Contribution" shall mean any work of authorship, including
49
- the original version of the Work and any modifications or additions
50
- to that Work or Derivative Works thereof, that is intentionally
51
- submitted to Licensor for inclusion in the Work by the copyright owner
52
- or by an individual or Legal Entity authorized to submit on behalf of
53
- the copyright owner. For the purposes of this definition, "submitted"
54
- means any form of electronic, verbal, or written communication sent
55
- to the Licensor or its representatives, including but not limited to
56
- communication on electronic mailing lists, source code control systems,
57
- and issue tracking systems that are managed by, or on behalf of, the
58
- Licensor for the purpose of discussing and improving the Work, but
59
- excluding communication that is conspicuously marked or otherwise
60
- designated in writing by the copyright owner as "Not a Contribution."
61
-
62
- "Contributor" shall mean Licensor and any individual or Legal Entity
63
- on behalf of whom a Contribution has been received by Licensor and
64
- subsequently incorporated within the Work.
65
-
66
- 2. Grant of Copyright License. Subject to the terms and conditions of
67
- this License, each Contributor hereby grants to You a perpetual,
68
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
- copyright license to reproduce, prepare Derivative Works of,
70
- publicly display, publicly perform, sublicense, and distribute the
71
- Work and such Derivative Works in Source or Object form.
72
-
73
- 3. Grant of Patent License. Subject to the terms and conditions of
74
- this License, each Contributor hereby grants to You a perpetual,
75
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
- (except as stated in this section) patent license to make, have made,
77
- use, offer to sell, sell, import, and otherwise transfer the Work,
78
- where such license applies only to those patent claims licensable
79
- by such Contributor that are necessarily infringed by their
80
- Contribution(s) alone or by combination of their Contribution(s)
81
- with the Work to which such Contribution(s) was submitted. If You
82
- institute patent litigation against any entity (including a
83
- cross-claim or counterclaim in a lawsuit) alleging that the Work
84
- or a Contribution incorporated within the Work constitutes direct
85
- or contributory patent infringement, then any patent licenses
86
- granted to You under this License for that Work shall terminate
87
- as of the date such litigation is filed.
88
-
89
- 4. Redistribution. You may reproduce and distribute copies of the
90
- Work or Derivative Works thereof in any medium, with or without
91
- modifications, and in Source or Object form, provided that You
92
- meet the following conditions:
93
-
94
- (a) You must give any other recipients of the Work or
95
- Derivative Works a copy of this License; and
96
-
97
- (b) You must cause any modified files to carry prominent notices
98
- stating that You changed the files; and
99
-
100
- (c) You must retain, in the Source form of any Derivative Works
101
- that You distribute, all copyright, patent, trademark, and
102
- attribution notices from the Source form of the Work,
103
- excluding those notices that do not pertain to any part of
104
- the Derivative Works; and
105
-
106
- (d) If the Work includes a "NOTICE" text file as part of its
107
- distribution, then any Derivative Works that You distribute must
108
- include a readable copy of the attribution notices contained
109
- within such NOTICE file, excluding those notices that do not
110
- pertain to any part of the Derivative Works, in at least one
111
- of the following places: within a NOTICE text file distributed
112
- as part of the Derivative Works; within the Source form or
113
- documentation, if provided along with the Derivative Works; or,
114
- within a display generated by the Derivative Works, if and
115
- wherever such third-party notices normally appear. The contents
116
- of the NOTICE file are for informational purposes only and
117
- do not modify the License. You may add Your own attribution
118
- notices within Derivative Works that You distribute, alongside
119
- or as an addendum to the NOTICE text from the Work, provided
120
- that such additional attribution notices cannot be construed
121
- as modifying the License.
122
-
123
- You may add Your own copyright statement to Your modifications and
124
- may provide additional or different license terms and conditions
125
- for use, reproduction, or distribution of Your modifications, or
126
- for any such Derivative Works as a whole, provided Your use,
127
- reproduction, and distribution of the Work otherwise complies with
128
- the conditions stated in this License.
129
-
130
- 5. Submission of Contributions. Unless You explicitly state otherwise,
131
- any Contribution intentionally submitted for inclusion in the Work
132
- by You to the Licensor shall be under the terms and conditions of
133
- this License, without any additional terms or conditions.
134
- Notwithstanding the above, nothing herein shall supersede or modify
135
- the terms of any separate license agreement you may have executed
136
- with Licensor regarding such Contributions.
137
-
138
- 6. Trademarks. This License does not grant permission to use the trade
139
- names, trademarks, service marks, or product names of the Licensor,
140
- except as required for reasonable and customary use in describing the
141
- origin of the Work and reproducing the content of the NOTICE file.
142
-
143
- 7. Disclaimer of Warranty. Unless required by applicable law or
144
- agreed to in writing, Licensor provides the Work (and each
145
- Contributor provides its Contributions) on an "AS IS" BASIS,
146
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
- implied, including, without limitation, any warranties or conditions
148
- of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
- PARTICULAR PURPOSE. You are solely responsible for determining the
150
- appropriateness of using or redistributing the Work and assume any
151
- risks associated with Your exercise of permissions under this License.
152
-
153
- 8. Limitation of Liability. In no event and under no legal theory,
154
- whether in tort (including negligence), contract, or otherwise,
155
- unless required by applicable law (such as deliberate and grossly
156
- negligent acts) or agreed to in writing, shall any Contributor be
157
- liable to You for damages, including any direct, indirect, special,
158
- incidental, or consequential damages of any character arising as a
159
- result of this License or out of the use or inability to use the
160
- Work (including but not limited to damages for loss of goodwill,
161
- work stoppage, computer failure or malfunction, or any and all
162
- other commercial damages or losses), even if such Contributor
163
- has been advised of the possibility of such damages.
164
-
165
- 9. Accepting Warranty or Additional Liability. While redistributing
166
- the Work or Derivative Works thereof, You may choose to offer,
167
- and charge a fee for, acceptance of support, warranty, indemnity,
168
- or other liability obligations and/or rights consistent with this
169
- License. However, in accepting such obligations, You may act only
170
- on Your own behalf and on Your sole responsibility, not on behalf
171
- of any other Contributor, and only if You agree to indemnify,
172
- defend, and hold each Contributor harmless for any liability
173
- incurred by, or claims asserted against, such Contributor by reason
174
- of your accepting any such warranty or additional liability.
175
-
176
- END OF TERMS AND CONDITIONS
177
-
178
- APPENDIX: How to apply the Apache License to your work.
179
-
180
- To apply the Apache License to your work, attach the following
181
- boilerplate notice, with the fields enclosed by brackets "{}"
182
- replaced with your own identifying information. (Don't include
183
- the brackets!) The text should be enclosed in the appropriate
184
- comment syntax for the file format. We also recommend that a
185
- file or class name and description of purpose be included on the
186
- same "printed page" as the copyright notice for easier
187
- identification within third-party archives.
188
-
189
- Copyright {yyyy} {name of copyright owner}
190
-
191
- Licensed under the Apache License, Version 2.0 (the "License");
192
- you may not use this file except in compliance with the License.
193
- You may obtain a copy of the License at
194
-
195
- http://www.apache.org/licenses/LICENSE-2.0
196
-
197
- Unless required by applicable law or agreed to in writing, software
198
- distributed under the License is distributed on an "AS IS" BASIS,
199
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
- See the License for the specific language governing permissions and
201
- limitations under the License.