web 3d图形渲染器
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

265 lines
9.3 KiB

  1. Forge ChangeLog
  2. ===============
  3. ## 0.10.0 - 2019-09-01
  4. ### Changed
  5. - **BREAKING**: Node.js 4 no longer supported. The code *may* still work, and
  6. non-invasive patches to keep it working will be considered. However, more
  7. modern tools no longer support old Node.js versions making testing difficult.
  8. ### Removed
  9. - **BREAKING**: Remove `util.getPath`, `util.setPath`, and `util.deletePath`.
  10. `util.setPath` had a potential prototype pollution security issue when used
  11. with unsafe inputs. These functions are not used by `forge` itself. They date
  12. from an early time when `forge` was targeted at providing general helper
  13. functions. The library direction changed to be more focused on cryptography.
  14. Many other excellent libraries are more suitable for general utilities. If
  15. you need a replacement for these functions, consier `get`, `set`, and `unset`
  16. from [lodash](https://lodash.com/). But also consider the potential similar
  17. security issues with those APIs.
  18. ## 0.9.2 - 2019-09-01
  19. ### Changed
  20. - Added `util.setPath` security note to function docs and to README.
  21. ### Notes
  22. - **SECURITY**: The `util.setPath` function has the potential to cause
  23. prototype pollution if used with unsafe input.
  24. - This function is **not** used internally by `forge`.
  25. - The rest of the library is unaffected by this issue.
  26. - **Do not** use unsafe input with this function.
  27. - Usage with known input should function as expected. (Including input
  28. intentionally using potentially problematic keys.)
  29. - No code changes will be made to address this issue in 0.9.x. The current
  30. behavior *could* be considered a feature rather than a security issue.
  31. 0.10.0 will be released that removes `util.getPath` and `util.setPath`.
  32. Consider `get` and `set` from [lodash](https://lodash.com/) if you need
  33. replacements. But also consider the potential similar security issues with
  34. those APIs.
  35. - https://snyk.io/vuln/SNYK-JS-NODEFORGE-598677
  36. - https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-7720
  37. ## 0.9.1 - 2019-09-26
  38. ### Fixed
  39. - Ensure DES-CBC given IV is long enough for block size.
  40. ## 0.9.0 - 2019-09-04
  41. ### Added
  42. - Add ed25519.publicKeyFromAsn1 and ed25519.privateKeyFromAsn1 APIs.
  43. - A few OIDs used in EV certs.
  44. ### Fixed
  45. - Improve ed25519 NativeBuffer check.
  46. ## 0.8.5 - 2019-06-18
  47. ### Fixed
  48. - Remove use of `const`.
  49. ## 0.8.4 - 2019-05-22
  50. ### Changed
  51. - Replace all instances of Node.js `new Buffer` with `Buffer.from` and `Buffer.alloc`.
  52. ## 0.8.3 - 2019-05-15
  53. ### Fixed
  54. - Use basic character set for code.
  55. ## 0.8.2 - 2019-03-18
  56. ### Fixed
  57. - Fix tag calculation when continuing an AES-GCM block.
  58. ### Changed
  59. - Switch to eslint.
  60. ## 0.8.1 - 2019-02-23
  61. ### Fixed
  62. - Fix off-by-1 bug with kem random generation.
  63. ## 0.8.0 - 2019-01-31
  64. ### Fixed
  65. - Handle creation of certificates with `notBefore` and `notAfter` dates less
  66. than Jan 1, 1950 or greater than or equal to Jan 1, 2050.
  67. ### Added
  68. - Add OID 2.5.4.13 "description".
  69. - Add OID 2.16.840.1.113730.1.13 "nsComment".
  70. - Also handle extension when creating a certificate.
  71. - `pki.verifyCertificateChain`:
  72. - Add `validityCheckDate` option to allow checking the certificate validity
  73. period against an arbitrary `Date` or `null` for no check at all. The
  74. current date is used by default.
  75. - `tls.createConnection`:
  76. - Add `verifyOptions` option that passes through to
  77. `pki.verifyCertificateChain`. Can be used for the above `validityCheckDate`
  78. option.
  79. ### Changed
  80. - Support WebCrypto API in web workers.
  81. - `rsa.generateKeyPair`:
  82. - Use `crypto.generateKeyPair`/`crypto.generateKeyPairSync` on Node.js if
  83. available (10.12.0+) and not in pure JS mode.
  84. - Use JS fallback in `rsa.generateKeyPair` if `prng` option specified since
  85. this isn't supported by current native APIs.
  86. - Only run key generation comparison tests if keys will be deterministic.
  87. - PhantomJS is deprecated, now using Headless Chrome with Karma.
  88. - **Note**: Using Headless Chrome vs PhantomJS may cause newer JS features to
  89. slip into releases without proper support for older runtimes and browsers.
  90. Please report such issues and they will be addressed.
  91. - `pki.verifyCertificateChain`:
  92. - Signature changed to `(caStore, chain, options)`. Older `(caStore, chain,
  93. verify)` signature is still supported. New style is to to pass in a
  94. `verify` option.
  95. ## 0.7.6 - 2018-08-14
  96. ### Added
  97. - Test on Node.js 10.x.
  98. - Support for PKCS#7 detached signatures.
  99. ### Changed
  100. - Improve webpack/browser detection.
  101. ## 0.7.5 - 2018-03-30
  102. ### Fixed
  103. - Remove use of `const`.
  104. ## 0.7.4 - 2018-03-07
  105. ### Fixed
  106. - Potential regex denial of service in form.js.
  107. ### Added
  108. - Support for ED25519.
  109. - Support for baseN/base58.
  110. ## 0.7.3 - 2018-03-05
  111. - Re-publish with npm 5.6.0 due to file timestamp issues.
  112. ## 0.7.2 - 2018-02-27
  113. ### Added
  114. - Support verification of SHA-384 certificates.
  115. - `1.2.840.10040.4.3'`/`dsa-with-sha1` OID.
  116. ### Fixed
  117. - Support importing PKCS#7 data with no certificates. RFC 2315 sec 9.1 states
  118. certificates are optional.
  119. - `asn1.equals` loop bug.
  120. - Fortuna implementation bugs.
  121. ## 0.7.1 - 2017-03-27
  122. ### Fixed
  123. - Fix digestLength for hashes based on SHA-512.
  124. ## 0.7.0 - 2017-02-07
  125. ### Fixed
  126. - Fix test looping bugs so all tests are run.
  127. - Improved ASN.1 parsing. Many failure cases eliminated. More sanity checks.
  128. Better behavior in default mode of parsing BIT STRINGs. Better handling of
  129. parsed BIT STRINGs in `toDer()`. More tests.
  130. - Improve X.509 BIT STRING handling by using new capture modes.
  131. ### Changed
  132. - Major refactor to use CommonJS plus a browser build system.
  133. - Updated tests, examples, docs.
  134. - Updated dependencies.
  135. - Updated flash build system.
  136. - Improve OID mapping code.
  137. - Change test servers from Python to JavaScript.
  138. - Improve PhantomJS support.
  139. - Move Bower/bundle support to
  140. [forge-dist](https://github.com/digitalbazaar/forge-dist).
  141. - **BREAKING**: Require minimal digest algorithm dependencies from individual
  142. modules.
  143. - Enforce currently supported bit param values for byte buffer access. May be
  144. **BREAKING** for code that depended on unspecified and/or incorrect behavior.
  145. - Improve `asn1.prettyPrint()` BIT STRING display.
  146. ### Added
  147. - webpack bundler support via `npm run build`:
  148. - Builds `.js`, `.min.js`, and basic sourcemaps.
  149. - Basic build: `forge.js`.
  150. - Build with extra utils and networking support: `forge.all.js`.
  151. - Build WebWorker support: `prime.worker.js`.
  152. - Browserify support in package.json.
  153. - Karma browser testing.
  154. - `forge.options` field.
  155. - `forge.options.usePureJavaScript` flag.
  156. - `forge.util.isNodejs` flag (used to select "native" APIs).
  157. - Run PhantomJS tests in Travis-CI.
  158. - Add "Donations" section to README.
  159. - Add IRC to "Contact" section of README.
  160. - Add "Security Considerations" section to README.
  161. - Add pbkdf2 usePureJavaScript test.
  162. - Add rsa.generateKeyPair async and usePureJavaScript tests.
  163. - Add .editorconfig support.
  164. - Add `md.all.js` which includes all digest algorithms.
  165. - Add asn1 `equals()` and `copy()`.
  166. - Add asn1 `validate()` capture options for BIT STRING contents and value.
  167. ### Removed
  168. - **BREAKING**: Can no longer call `forge({...})` to create new instances.
  169. - Remove a large amount of old cruft.
  170. ### Migration from 0.6.x to 0.7.x
  171. - (all) If you used the feature to create a new forge instance with new
  172. configuration options you will need to rework your code. That ability has
  173. been removed due to implementation complexity. The main rare use was to set
  174. the option to use pure JavaScript. That is now available as a library global
  175. flag `forge.options.usePureJavaScript`.
  176. - (npm,bower) If you used the default main file there is little to nothing to
  177. change.
  178. - (npm) If you accessed a sub-resource like `forge/js/pki` you should either
  179. switch to just using the main `forge` and access `forge.pki` or update to
  180. `forge/lib/pki`.
  181. - (bower) If you used a sub-resource like `forge/js/pki` you should switch to
  182. just using `forge` and access `forge.pki`. The bower release bundles
  183. everything in one minified file.
  184. - (bower) A configured workerScript like
  185. `/bower_components/forge/js/prime.worker.js` will need to change to
  186. `/bower_components/forge/dist/prime.worker.min.js`.
  187. - (all) If you used the networking support or flash socket support, you will
  188. need to use a custom build and/or adjust where files are loaded from. This
  189. functionality is not included in the bower distribution by default and is
  190. also now in a different directory.
  191. - (all) The library should now directly support building custom bundles with
  192. webpack, browserify, or similar.
  193. - (all) If building a custom bundle ensure the correct dependencies are
  194. included. In particular, note there is now a `md.all.js` file to include all
  195. digest algorithms. Individual files limit what they include by default to
  196. allow smaller custom builds. For instance, `pbdkf2.js` has a `sha1` default
  197. but does not include any algorithm files by default. This allows the
  198. possibility to include only `sha256` without the overhead of `sha1` and
  199. `sha512`.
  200. ### Notes
  201. - This major update requires updating the version to 0.7.x. The existing
  202. work-in-progress "0.7.x" branch will be painfully rebased on top of this new
  203. 0.7.x and moved forward to 0.8.x or later as needed.
  204. - 0.7.x is a start of simplifying forge based on common issues and what has
  205. appeared to be the most common usage. Please file issues with feedback if the
  206. changes are problematic for your use cases.
  207. ## 0.6.x - 2016 and earlier
  208. - See Git commit log or https://github.com/digitalbazaar/forge.