@interop/did-method-webvh 3.0.0

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.
package/CHANGELOG.md ADDED
@@ -0,0 +1,345 @@
1
+ ## 3.0.0 - 2026-06-14
2
+
3
+ ### Package
4
+
5
+ * rename the package from `didwebvh-ts` to `@interop/did-method-webvh` and move
6
+ the repository to `interop-alliance/did-method-webvh`; update import specifiers
7
+ and docs accordingly (the `didwebvh` CLI bin name is unchanged)
8
+
9
+ ### BREAKING CHANGES
10
+
11
+ * remove the legacy `did:webvh:0.5` spec implementation (`src/method_versions/method.v0.5.ts`); the library now supports `did:webvh:1.0` only:
12
+ * resolving a DID log whose first entry declares `method: 'did:webvh:0.5'` (including via `updateDID`/`deactivateDID`, which resolve the log internally) throws `'did:webvh:0.5' is not a supported method version.`
13
+ * `createDID` throws the same error if passed an explicit non-1.0 `method` option (previously an untyped option that selected the v0.5 implementation)
14
+ * remove "controlled-mode" local file resolution from the library; it now lives in `examples/express-resolver.ts`:
15
+ * `resolveDID` no longer consults the `DID_VERIFICATION_METHODS` env var or reads DID logs from the local `./src/routes/` directory; it always resolves over HTTPS
16
+ * `resolveDID` no longer returns a `controlled` field in its result (success or error)
17
+ * `fetchLogFromIdentifier` loses its second (`controlled`) parameter
18
+ * the internal `getActiveDIDs` helper is removed (it was not exported from the package entry point)
19
+ * the `src/routes/` fixture data moves to `examples/routes/`
20
+ * servers that control their own DID logs should read the log file themselves and call the existing `resolveDIDFromLog` export (see `resolveDIDLocalFirst` in `examples/express-resolver.ts` for a reference implementation)
21
+
22
+ ### Build System
23
+
24
+ * replace the esbuild multi-bundle build (ESM/CJS/browser/CLI) with a plain `tsc` build emitting a single ESM target plus declarations to `dist/`; the `require` entry point is dropped (Node >= 20.19 can `require()` ESM natively)
25
+ * remove unused dependencies (`cookie`, `glob`, `js-yaml`) and unused dev dependencies (`esbuild`, `@sinclair/typebox`, `@types/express`)
26
+ * move `@stablelib/ed25519` to `dependencies` (the unbundled CLI imports it at runtime)
27
+ * the CLI now ships as `dist/cli.js` (was `dist/cli/didwebvh.js`); the `didwebvh` bin name is unchanged
28
+ * upgrade `vitest` from v3 to v4 (no test or config changes required)
29
+
30
+ ### Tests
31
+
32
+ * add test coverage measurement: `@vitest/coverage-v8` dev dependency and a `test:coverage` script (informational only, no thresholds; the CLI is exercised via subprocesses, which V8 coverage cannot see)
33
+ * add tests for the HTTPS resolution path (`resolveDID`, `fetchLogFromIdentifier`, `fetchWitnessProofs`) using a stubbed global `fetch`, covering success, 404/notFound mapping, empty and invalid logs, SCID mismatch, and network failure
34
+ * add unit tests for multibase/multihash decode error branches, the buffer utilities (both Node and browser paths), and the hash helpers
35
+
36
+ ## [2.7.4](https://github.com/decentralized-identity/didwebvh-ts/compare/v2.7.3...v2.7.4) (2026-04-24)
37
+
38
+
39
+ ### Bug Fixes
40
+
41
+ * default verification method controller to the DID ([f3ac134](https://github.com/decentralized-identity/didwebvh-ts/commit/f3ac134278871bf059c60f0be2c7da5889264a3c))
42
+
43
+ ## [2.7.3](https://github.com/decentralized-identity/didwebvh-ts/compare/v2.7.2...v2.7.3) (2026-04-18)
44
+
45
+
46
+ ### Bug Fixes
47
+
48
+ * entry hash bug ([cf948fe](https://github.com/decentralized-identity/didwebvh-ts/commit/cf948fe8d8401b69a1ab0b0a974d80aa64bb0af6))
49
+
50
+ ## [2.7.2](https://github.com/decentralized-identity/didwebvh-ts/compare/v2.7.1...v2.7.2) (2026-03-03)
51
+
52
+
53
+ ### Bug Fixes
54
+
55
+ * resolver integrity and validation hardening ([a4b6b27](https://github.com/decentralized-identity/didwebvh-ts/commit/a4b6b277862258cafb7be17c0a7810c3123e792c))
56
+
57
+ ## [2.7.1](https://github.com/decentralized-identity/didwebvh-ts/compare/v2.7.0...v2.7.1) (2026-01-24)
58
+
59
+
60
+ ### Bug Fixes
61
+
62
+ * remove npm token ([c9fb8a3](https://github.com/decentralized-identity/didwebvh-ts/commit/c9fb8a3280466f31ccb31a66cd25562a823dd7ad))
63
+ * update node version in action ([49e07b0](https://github.com/decentralized-identity/didwebvh-ts/commit/49e07b01a4b87047900d2ab30aff7189660ee506))
64
+ * updated semantic release ([1802ea5](https://github.com/decentralized-identity/didwebvh-ts/commit/1802ea526f75f7c08b0b2fc861a2743cf0080b4c))
65
+
66
+ # [2.7.0](https://github.com/decentralized-identity/didwebvh-ts/compare/v2.6.0...v2.7.0) (2026-01-24)
67
+
68
+
69
+ ### Features
70
+
71
+ * add id token perm to publish action ([07d801d](https://github.com/decentralized-identity/didwebvh-ts/commit/07d801deceae05b88e236e1bdd9f333cce98c86d))
72
+
73
+ # [2.6.0](https://github.com/decentralized-identity/didwebvh-ts/compare/v2.5.7...v2.6.0) (2026-01-24)
74
+
75
+
76
+ ### Features
77
+
78
+ * bump version ([e1c4a29](https://github.com/decentralized-identity/didwebvh-ts/commit/e1c4a29a4b4fe6fc6530f3f4987f0cab92079396))
79
+
80
+ ## [2.5.7](https://github.com/decentralized-identity/didwebvh-ts/compare/v2.5.6...v2.5.7) (2026-01-23)
81
+
82
+
83
+ ### Bug Fixes
84
+
85
+ * updated dependencies for security vulnerabilities ([2c0ac78](https://github.com/decentralized-identity/didwebvh-ts/commit/2c0ac787e75a29382788f903286bdc0fc7f13fb1))
86
+
87
+ ## [2.5.6](https://github.com/decentralized-identity/didwebvh-ts/compare/v2.5.5...v2.5.6) (2025-11-12)
88
+
89
+
90
+ ### Bug Fixes
91
+
92
+ * correct host normalization in toASCII for numeric domains like 2060.io ([b226c69](https://github.com/decentralized-identity/didwebvh-ts/commit/b226c69da1d77391b4f4c7d51144f47bab64f326))
93
+
94
+ ## [2.5.5](https://github.com/decentralized-identity/didwebvh-ts/compare/v2.5.4...v2.5.5) (2025-10-08)
95
+
96
+
97
+ ### Bug Fixes
98
+
99
+ * allow verification methods without publicKeyMultibase ([ebe9822](https://github.com/decentralized-identity/didwebvh-ts/commit/ebe9822c0dd40dc8fbd7b56213c7a4734f75658c))
100
+
101
+ ## [2.5.4](https://github.com/decentralized-identity/didwebvh-ts/compare/v2.5.3...v2.5.4) (2025-09-02)
102
+
103
+
104
+ ### Bug Fixes
105
+
106
+ * remove extra comma ([70ee446](https://github.com/decentralized-identity/didwebvh-ts/commit/70ee446c9192128eabd084c8b278783e7363a7fd))
107
+ * update DID without recalculating verification methods ([15c47e7](https://github.com/decentralized-identity/didwebvh-ts/commit/15c47e7e6050a895eab7ee4abc55fe45baa94de3))
108
+
109
+ ## [2.5.3](https://github.com/decentralized-identity/didwebvh-ts/compare/v2.5.2...v2.5.3) (2025-08-15)
110
+
111
+
112
+ ### Bug Fixes
113
+
114
+ * remove base externals from build configurations ([18a7a23](https://github.com/decentralized-identity/didwebvh-ts/commit/18a7a2339895155e6fa10c9a9dab23fccf29a203))
115
+
116
+ ## [2.5.2](https://github.com/decentralized-identity/didwebvh-ts/compare/v2.5.1...v2.5.2) (2025-08-14)
117
+
118
+
119
+ ### Bug Fixes
120
+
121
+ * enhance environment detection and dynamic fs import handling ([474fd2c](https://github.com/decentralized-identity/didwebvh-ts/commit/474fd2ccac84ef2c5ce6755d244dbbf10472c9ac))
122
+
123
+ ## [2.5.1](https://github.com/decentralized-identity/didwebvh-ts/compare/v2.5.0...v2.5.1) (2025-08-14)
124
+
125
+
126
+ ### Bug Fixes
127
+
128
+ * update React Native entry points in package.json ([95ad5d8](https://github.com/decentralized-identity/didwebvh-ts/commit/95ad5d88f2796b28bf45048452b4ddeaec586e16))
129
+
130
+ # [2.5.0](https://github.com/decentralized-identity/didwebvh-ts/compare/v2.4.1...v2.5.0) (2025-08-14)
131
+
132
+
133
+ ### Features
134
+
135
+ * add support for React Native in package.json ([2f16d19](https://github.com/decentralized-identity/didwebvh-ts/commit/2f16d19e5d03a8afe538dabe1ca50d0a87f7e5dc))
136
+
137
+ ## [2.4.1](https://github.com/decentralized-identity/didwebvh-ts/compare/v2.4.0...v2.4.1) (2025-07-23)
138
+
139
+
140
+ ### Bug Fixes
141
+
142
+ * enhance verification method handling and improve CLI tests ([275152e](https://github.com/decentralized-identity/didwebvh-ts/commit/275152e1d545051dfef673474c3ec4505ba47f94))
143
+
144
+ # [2.4.0](https://github.com/decentralized-identity/didwebvh-ts/compare/v2.3.2...v2.4.0) (2025-07-16)
145
+
146
+
147
+ ### Bug Fixes
148
+
149
+ * update witness parameter handling and types ([c783641](https://github.com/decentralized-identity/didwebvh-ts/commit/c783641ad318565923fcfcd896ab44370c39363f))
150
+
151
+
152
+ ### Features
153
+
154
+ * enhance cryptographic interface and implementation ([a37c99b](https://github.com/decentralized-identity/didwebvh-ts/commit/a37c99b7bf1d53ba607f1038c21c3265ff05f091))
155
+ * enhance witness handling and resolution logic ([cb453a8](https://github.com/decentralized-identity/didwebvh-ts/commit/cb453a852cfcab2b474bf1c650f41362bd31f2b2))
156
+ * implement witness proof generation and enhance CLI functionality ([84bbc4f](https://github.com/decentralized-identity/didwebvh-ts/commit/84bbc4f79140c102af54a0a7d91ff1a7725ed048))
157
+
158
+ ## [2.3.2](https://github.com/decentralized-identity/didwebvh-ts/compare/v2.3.1...v2.3.2) (2025-06-24)
159
+
160
+
161
+ ### Bug Fixes
162
+
163
+ * improve dynamic filesystem module loading ([817897e](https://github.com/decentralized-identity/didwebvh-ts/commit/817897e2fea7183ab46bda2d16b69325f9f0ff79))
164
+
165
+ ## [2.3.1](https://github.com/decentralized-identity/didwebvh-ts/compare/v2.3.0...v2.3.1) (2025-06-24)
166
+
167
+
168
+ ### Bug Fixes
169
+
170
+ * update log handling to use async/await ([31067af](https://github.com/decentralized-identity/didwebvh-ts/commit/31067af464b802463859352a49291c02ac111857))
171
+
172
+ # [2.3.0](https://github.com/decentralized-identity/didwebvh-ts/compare/v2.2.0...v2.3.0) (2025-06-23)
173
+
174
+
175
+ ### Bug Fixes
176
+
177
+ * improve filesystem access handling in utils ([ec72a75](https://github.com/decentralized-identity/didwebvh-ts/commit/ec72a75b0efa757fe5e76ce1d7f522ed56377c6b))
178
+
179
+
180
+ ### Features
181
+
182
+ * add paths support in DID creation and testing ([ee51df5](https://github.com/decentralized-identity/didwebvh-ts/commit/ee51df52059a06d583eece78bc8aad9e9abc9802))
183
+
184
+ # [2.2.0](https://github.com/decentralized-identity/didwebvh-ts/compare/v2.1.0...v2.2.0) (2025-06-18)
185
+
186
+
187
+ ### Bug Fixes
188
+
189
+ * improve test script logging and cleanup ([4df9663](https://github.com/decentralized-identity/didwebvh-ts/commit/4df9663d7a702c9a586cb1dbebb380e39ca85707))
190
+
191
+
192
+ ### Features
193
+
194
+ * add watcher support to DID creation and updates ([8d206bd](https://github.com/decentralized-identity/didwebvh-ts/commit/8d206bdf1452d435f2c370e1753c22799f5dc8ec))
195
+ * enhance DID resolution error handling and add ProblemDetails interface ([b331c46](https://github.com/decentralized-identity/didwebvh-ts/commit/b331c4630d35005d66bea80bb2904c5bfe1ee415))
196
+ * enhance error handling and status code mapping in DID resolution ([849d0c6](https://github.com/decentralized-identity/didwebvh-ts/commit/849d0c60ef04efb17c66e155bc3072273a166ac2))
197
+ * enhance internationalized domain handling in utils ([f19f831](https://github.com/decentralized-identity/didwebvh-ts/commit/f19f831e4463071e06c50b6966ae4a6769fc0ce3))
198
+ * enhance test logging functionality in DID operations ([8d66bcc](https://github.com/decentralized-identity/didwebvh-ts/commit/8d66bcce45a287f1e953bcff662d92c99615d10c))
199
+ * implement domain encoding in DID creation ([4369f70](https://github.com/decentralized-identity/didwebvh-ts/commit/4369f706a83134b9b1cfabcc5e6f802262863e26))
200
+ * improve filesystem access and domain handling in utils ([f6a6154](https://github.com/decentralized-identity/didwebvh-ts/commit/f6a61548543f130a02e89008c880ceba307f28b6))
201
+ * update examples and scripts for improved clarity and functionality ([4ff2465](https://github.com/decentralized-identity/didwebvh-ts/commit/4ff24652887d1c8c03f12af6ab4814051835b7f5))
202
+
203
+ # [2.1.0](https://github.com/decentralized-identity/didwebvh-ts/compare/v2.0.2...v2.1.0) (2025-05-23)
204
+
205
+
206
+ ### Features
207
+
208
+ * add @noble/hashes dependency and refactor createHash function to use it ([4527738](https://github.com/decentralized-identity/didwebvh-ts/commit/45277380d9ea9bafd6d581e9fb123002f6be3795))
209
+
210
+ ## [2.0.2](https://github.com/decentralized-identity/didwebvh-ts/compare/v2.0.1...v2.0.2) (2025-05-23)
211
+
212
+
213
+ ### Bug Fixes
214
+
215
+ * update getFileUrl to use domain end index for URL construction ([b4aa3af](https://github.com/decentralized-identity/didwebvh-ts/commit/b4aa3af9e96a5ebae0a20fafab711f6ff261809f))
216
+
217
+ ## [2.0.1](https://github.com/decentralized-identity/didwebvh-ts/compare/v2.0.0...v2.0.1) (2025-04-25)
218
+
219
+
220
+ ### Bug Fixes
221
+
222
+ * export resolveDIDFromLog ([eace3c8](https://github.com/decentralized-identity/didwebvh-ts/commit/eace3c82e2a72fe3e38e2ae7aa69b6e47f113d70))
223
+
224
+ # [2.0.0](https://github.com/decentralized-identity/didwebvh-ts/compare/v1.1.0...v2.0.0) (2025-03-24)
225
+
226
+
227
+ ### chore
228
+
229
+ * Bump version ([377f423](https://github.com/decentralized-identity/didwebvh-ts/commit/377f4237ab5b79119d410d54f33b89b0307e007b))
230
+
231
+
232
+ ### BREAKING CHANGES
233
+
234
+ * see previous
235
+
236
+ # [1.1.0](https://github.com/decentralized-identity/didwebvh-ts/compare/v1.0.3...v1.1.0) (2025-03-24)
237
+
238
+
239
+ ### Bug Fixes
240
+
241
+ * check SCID in DID matches log ([2590811](https://github.com/decentralized-identity/didwebvh-ts/commit/259081152b25960dd54ce3201a60e1fc7d7822db))
242
+ * remove multiformats dep ([974224b](https://github.com/decentralized-identity/didwebvh-ts/commit/974224b5b1df23701f049b9926e73af66a28e9ba))
243
+ * remove server ([2689012](https://github.com/decentralized-identity/didwebvh-ts/commit/2689012f81a547a8ac205ab9310af88ccf6d13ba))
244
+
245
+
246
+ ### Features
247
+
248
+ * add Elysia and Express resolver examples with Ed25519 verification ([ea0b5fa](https://github.com/decentralized-identity/didwebvh-ts/commit/ea0b5fa6c8bf4b447e29e0554063f07d762e7ad5))
249
+
250
+ # Changelog
251
+
252
+ All notable changes to this project will be documented in this file.
253
+
254
+ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
255
+ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
256
+
257
+ ## [2.0.0] - 2024-03-24
258
+
259
+ ### Added
260
+ - New `Signer` interface for implementing custom signing logic
261
+ - New `AbstractCrypto` class for easier signer implementation
262
+ - New `SigningInput` and `SigningOutput` interfaces
263
+ - New `SignerOptions` interface for configuring signers
264
+ - New `createDocumentSigner` function for creating document signers
265
+ - New example implementations in `src/examples`
266
+ - `elysia-signer.ts`: Example using `AbstractCrypto`
267
+ - `express-signer.ts`: Example implementing `Verifier` directly for HSM/KMS integration
268
+
269
+ ### Changed
270
+ - Removed built-in cryptographic implementations
271
+ - Made cryptographic functionality injectable through the `Signer` interface
272
+ - Improved documentation and examples
273
+
274
+ ### Deprecated
275
+ - `createSigner` function - use `createDocumentSigner` with your own `Signer` implementation instead
276
+ - `generateEd25519VerificationMethod` - implement your own key generation logic
277
+ - `generateX25519VerificationMethod` - implement your own key generation logic
278
+
279
+ ### Removed
280
+ - `@noble/ed25519` dependency
281
+ - `@noble/curves` dependency
282
+ - Built-in Ed25519 signing implementation
283
+ - Built-in key generation logic
284
+
285
+ ### Security
286
+ - Users now have full control over cryptographic implementations
287
+ - Better support for HSM and KMS integrations
288
+ - Improved key management flexibility
289
+
290
+
291
+ ## [1.0.3](https://github.com/decentralized-identity/didwebvh-ts/compare/v1.0.2...v1.0.3) (2025-02-10)
292
+
293
+
294
+ ### Bug Fixes
295
+
296
+ * remove build crypto inject ([2d8c184](https://github.com/decentralized-identity/didwebvh-ts/commit/2d8c1846978131a56ff42eae45950c8163357374))
297
+
298
+ ## [1.0.2](https://github.com/decentralized-identity/didwebvh-ts/compare/v1.0.1...v1.0.2) (2025-01-27)
299
+
300
+
301
+ ### Bug Fixes
302
+
303
+ * bump version ([8194920](https://github.com/decentralized-identity/didwebvh-ts/commit/8194920f290a46857c8bb82a720b46fe6211baf1))
304
+
305
+ # 1.0.0 (2025-01-27)
306
+
307
+
308
+ ### Bug Fixes
309
+
310
+ * add github app to publish workflow ([59fc55a](https://github.com/decentralized-identity/didwebvh-ts/commit/59fc55a2568067d7eba952d9ac51adc29f7299db))
311
+ * Fix release workflow ([2b429b4](https://github.com/decentralized-identity/didwebvh-ts/commit/2b429b4dcd52d1ebe9c9744a5903272ed4c406bb))
312
+ * include dist folder recursively in publish ([f7b1cd5](https://github.com/decentralized-identity/didwebvh-ts/commit/f7b1cd514aa99b25f7bd2466283f95afa55ab9d1))
313
+ * **package:** fix name ([e33ce21](https://github.com/decentralized-identity/didwebvh-ts/commit/e33ce2146615bc2fd2d300a425176e83acf334cd))
314
+ * proper branch name for publish action ([ce39b9b](https://github.com/decentralized-identity/didwebvh-ts/commit/ce39b9b3b26ec49269f261a9a9fb8305d95872c8))
315
+ * proper semantic release branch config ([343eec7](https://github.com/decentralized-identity/didwebvh-ts/commit/343eec76575deab7d579e6e8844128627ea70660))
316
+ * release branch instead of main ([42db471](https://github.com/decentralized-identity/didwebvh-ts/commit/42db471500e4317b8442b808ae0cf3162599f040))
317
+ * release config for semantic-release tool ([3f59d12](https://github.com/decentralized-identity/didwebvh-ts/commit/3f59d12ec1130967c345d27549506e4625a9d386))
318
+ * releaserc.js file to module ([e750e7a](https://github.com/decentralized-identity/didwebvh-ts/commit/e750e7a3391c3e1e2fdb024b96bb1f56ff16bd0b))
319
+ * trigger release ([2b4c1db](https://github.com/decentralized-identity/didwebvh-ts/commit/2b4c1db7e10c558b56a9e70eea8290c72d5d1c0e))
320
+ * try forcing last release ([5b3360c](https://github.com/decentralized-identity/didwebvh-ts/commit/5b3360c5eedc1cf2abed5070cf0635a428b4ebed))
321
+
322
+
323
+ ### Features
324
+
325
+ * add npm release ([8903f8d](https://github.com/decentralized-identity/didwebvh-ts/commit/8903f8d4edebc1cc7fe9c04e4c2b8d9ade12c1a3))
326
+ * minor version bump ([0751250](https://github.com/decentralized-identity/didwebvh-ts/commit/0751250d006cc9c085d78ba66091f05d576f02f8))
327
+
328
+ # @interop/did-method-webvh Changelog
329
+
330
+ ## 0.1.0 - 2025-01-10
331
+
332
+ ### Updated
333
+ - Rename `tdw` to `webvh`.
334
+
335
+ ## 0.0.2 - 2024-04-04
336
+
337
+ ### Added
338
+ - Add `options` to resolveDID.
339
+ - Option `versionId` to query specific version.
340
+ - Option `versionTime` to query specific time.
341
+
342
+ ## 0.0.1 - 2024-04-02
343
+
344
+ ### Added
345
+ - Add initial files.
package/LICENSE ADDED
@@ -0,0 +1,201 @@
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.