JavaScript SDK 3.12.0
Changed
- update to SpiderMonkey 123.0.1 (#744) (32bf617)
This update brings with it the below changes:
Gemfile Gemfile.lock LICENSE README.md catalog-info.yaml constants.js docs edge gatsby-browser.js gatsby-config.js gatsby-node.js gatsby-schema-customization.js gatsby-ssr.js mdx-to-markdown.js node_modules package-lock.json package.json plugins postcss.config.js scripts sections-to-translate.txt src src-ja static test-mdx-conversion.js tsconfig.json utils Performance improvements for
JSON.stringify()Gemfile Gemfile.lock LICENSE README.md catalog-info.yaml constants.js docs edge gatsby-browser.js gatsby-config.js gatsby-node.js gatsby-schema-customization.js gatsby-ssr.js mdx-to-markdown.js node_modules package-lock.json package.json plugins postcss.config.js scripts sections-to-translate.txt src src-ja static test-mdx-conversion.js tsconfig.json utils An optimisation forObject.keys()to take advantage of cached for-in iterators if available. Gemfile Gemfile.lock LICENSE README.md catalog-info.yaml constants.js docs edge gatsby-browser.js gatsby-config.js gatsby-node.js gatsby-schema-customization.js gatsby-ssr.js mdx-to-markdown.js node_modules package-lock.json package.json plugins postcss.config.js scripts sections-to-translate.txt src src-ja static test-mdx-conversion.js tsconfig.json utils Optimisations forObject.assign()Gemfile Gemfile.lock LICENSE README.md catalog-info.yaml constants.js docs edge gatsby-browser.js gatsby-config.js gatsby-node.js gatsby-schema-customization.js gatsby-ssr.js mdx-to-markdown.js node_modules package-lock.json package.json plugins postcss.config.js scripts sections-to-translate.txt src src-ja static test-mdx-conversion.js tsconfig.json utils RegExpvflag support Gemfile Gemfile.lock LICENSE README.md catalog-info.yaml constants.js docs edge gatsby-browser.js gatsby-config.js gatsby-node.js gatsby-schema-customization.js gatsby-ssr.js mdx-to-markdown.js node_modules package-lock.json package.json plugins postcss.config.js scripts sections-to-translate.txt src src-ja static test-mdx-conversion.js tsconfig.json utils Improved JSON parsing to help avoid garbage collection time when parsing very large files Gemfile Gemfile.lock LICENSE README.md catalog-info.yaml constants.js docs edge gatsby-browser.js gatsby-config.js gatsby-node.js gatsby-schema-customization.js gatsby-ssr.js mdx-to-markdown.js node_modules package-lock.json package.json plugins postcss.config.js scripts sections-to-translate.txt src src-ja static test-mdx-conversion.js tsconfig.json utils TheString.prototype.isWellFormed()andString.prototype.toWellFormed()methods respectively can be used to check if a string contains well-formed Unicode text (i.e. contains no lone surrogates) and sanitise an ill-formed string to well-formed Unicode text. Gemfile Gemfile.lock LICENSE README.md catalog-info.yaml constants.js docs edge gatsby-browser.js gatsby-config.js gatsby-node.js gatsby-schema-customization.js gatsby-ssr.js mdx-to-markdown.js node_modules package-lock.json package.json plugins postcss.config.js scripts sections-to-translate.txt src src-ja static test-mdx-conversion.js tsconfig.json utils TheObject.groupBy()andMap.groupBy()static methods for grouping the elements of an iterable are now supported Gemfile Gemfile.lock LICENSE README.md catalog-info.yaml constants.js docs edge gatsby-browser.js gatsby-config.js gatsby-node.js gatsby-schema-customization.js gatsby-ssr.js mdx-to-markdown.js node_modules package-lock.json package.json plugins postcss.config.js scripts sections-to-translate.txt src src-ja static test-mdx-conversion.js tsconfig.json utilsDate.parse()now accepts several additional date formats: Gemfile Gemfile.lock LICENSE README.md catalog-info.yaml constants.js docs edge gatsby-browser.js gatsby-config.js gatsby-node.js gatsby-schema-customization.js gatsby-ssr.js mdx-to-markdown.js node_modules package-lock.json package.json plugins postcss.config.js scripts sections-to-translate.txt src src-ja static test-mdx-conversion.js tsconfig.json utils Year > 9999 forYYYY-MMM-DDformat (e.g.19999-Jan-01) Gemfile Gemfile.lock LICENSE README.md catalog-info.yaml constants.js docs edge gatsby-browser.js gatsby-config.js gatsby-node.js gatsby-schema-customization.js gatsby-ssr.js mdx-to-markdown.js node_modules package-lock.json package.json plugins postcss.config.js scripts sections-to-translate.txt src src-ja static test-mdx-conversion.js tsconfig.json utilsMMM-DD-YYYY(e.g.Jan-01-1970) Gemfile Gemfile.lock LICENSE README.md catalog-info.yaml constants.js docs edge gatsby-browser.js gatsby-config.js gatsby-node.js gatsby-schema-customization.js gatsby-ssr.js mdx-to-markdown.js node_modules package-lock.json package.json plugins postcss.config.js scripts sections-to-translate.txt src src-ja static test-mdx-conversion.js tsconfig.json utils Milliseconds for non-ISO date formats (e.g.Jan 1 1970 10:00:00.050) Gemfile Gemfile.lock LICENSE README.md catalog-info.yaml constants.js docs edge gatsby-browser.js gatsby-config.js gatsby-node.js gatsby-schema-customization.js gatsby-ssr.js mdx-to-markdown.js node_modules package-lock.json package.json plugins postcss.config.js scripts sections-to-translate.txt src src-ja static test-mdx-conversion.js tsconfig.json utils Day of week at the beginning of formats which were being rejected, such as: Gemfile Gemfile.lock LICENSE README.md catalog-info.yaml constants.js docs edge gatsby-browser.js gatsby-config.js gatsby-node.js gatsby-schema-customization.js gatsby-ssr.js mdx-to-markdown.js node_modules package-lock.json package.json plugins postcss.config.js scripts sections-to-translate.txt src src-ja static test-mdx-conversion.js tsconfig.json utilsWed, 1970-01-01Gemfile Gemfile.lock LICENSE README.md catalog-info.yaml constants.js docs edge gatsby-browser.js gatsby-config.js gatsby-node.js gatsby-schema-customization.js gatsby-ssr.js mdx-to-markdown.js node_modules package-lock.json package.json plugins postcss.config.js scripts sections-to-translate.txt src src-ja static test-mdx-conversion.js tsconfig.json utilsWed, 1970-Jan-01Gemfile Gemfile.lock LICENSE README.md catalog-info.yaml constants.js docs edge gatsby-browser.js gatsby-config.js gatsby-node.js gatsby-schema-customization.js gatsby-ssr.js mdx-to-markdown.js node_modules package-lock.json package.json plugins postcss.config.js scripts sections-to-translate.txt src src-ja static test-mdx-conversion.js tsconfig.json utils The day of week does not need to be correct, or a day of week at all; for example,foo 1970-01-01works. Gemfile Gemfile.lock LICENSE README.md catalog-info.yaml constants.js docs edge gatsby-browser.js gatsby-config.js gatsby-node.js gatsby-schema-customization.js gatsby-ssr.js mdx-to-markdown.js node_modules package-lock.json package.json plugins postcss.config.js scripts sections-to-translate.txt src src-ja static test-mdx-conversion.js tsconfig.json utils Numeric dashed dates which do not meet the formal ISO standard are now accepted, including: Gemfile Gemfile.lock LICENSE README.md catalog-info.yaml constants.js docs edge gatsby-browser.js gatsby-config.js gatsby-node.js gatsby-schema-customization.js gatsby-ssr.js mdx-to-markdown.js node_modules package-lock.json package.json plugins postcss.config.js scripts sections-to-translate.txt src src-ja static test-mdx-conversion.js tsconfig.json utils"01-12-1999"(month first) Gemfile Gemfile.lock LICENSE README.md catalog-info.yaml constants.js docs edge gatsby-browser.js gatsby-config.js gatsby-node.js gatsby-schema-customization.js gatsby-ssr.js mdx-to-markdown.js node_modules package-lock.json package.json plugins postcss.config.js scripts sections-to-translate.txt src src-ja static test-mdx-conversion.js tsconfig.json utils"1999-1-5"(single-digit month or day) Gemfile Gemfile.lock LICENSE README.md catalog-info.yaml constants.js docs edge gatsby-browser.js gatsby-config.js gatsby-node.js gatsby-schema-customization.js gatsby-ssr.js mdx-to-markdown.js node_modules package-lock.json package.json plugins postcss.config.js scripts sections-to-translate.txt src src-ja static test-mdx-conversion.js tsconfig.json utils"10000-01-12"(year > 9999) Gemfile Gemfile.lock LICENSE README.md catalog-info.yaml constants.js docs edge gatsby-browser.js gatsby-config.js gatsby-node.js gatsby-schema-customization.js gatsby-ssr.js mdx-to-markdown.js node_modules package-lock.json package.json plugins postcss.config.js scripts sections-to-translate.txt src src-ja static test-mdx-conversion.js tsconfig.json utils"99-01-05"or"01-05-99"(2-digit year, year must be >31 if it comes first) Gemfile Gemfile.lock LICENSE README.md catalog-info.yaml constants.js docs edge gatsby-browser.js gatsby-config.js gatsby-node.js gatsby-schema-customization.js gatsby-ssr.js mdx-to-markdown.js node_modules package-lock.json package.json plugins postcss.config.js scripts sections-to-translate.txt src src-ja static test-mdx-conversion.js tsconfig.json utils"1999-01-05 10:00:00"(space between date and time). These dates will be parsed with behavior typical of other non-ISO dates, such as local time zone and month rollover (April 31 rolls over to May 1 since April 31 doesn’t exist). Gemfile Gemfile.lock LICENSE README.md catalog-info.yaml constants.js docs edge gatsby-browser.js gatsby-config.js gatsby-node.js gatsby-schema-customization.js gatsby-ssr.js mdx-to-markdown.js node_modules package-lock.json package.json plugins postcss.config.js scripts sections-to-translate.txt src src-ja static test-mdx-conversion.js tsconfig.json utils Requirements for characters directly following numbers have been loosened to accept new formats, including: Gemfile Gemfile.lock LICENSE README.md catalog-info.yaml constants.js docs edge gatsby-browser.js gatsby-config.js gatsby-node.js gatsby-schema-customization.js gatsby-ssr.js mdx-to-markdown.js node_modules package-lock.json package.json plugins postcss.config.js scripts sections-to-translate.txt src src-ja static test-mdx-conversion.js tsconfig.json utils"DDMonYYYY"Gemfile Gemfile.lock LICENSE README.md catalog-info.yaml constants.js docs edge gatsby-browser.js gatsby-config.js gatsby-node.js gatsby-schema-customization.js gatsby-ssr.js mdx-to-markdown.js node_modules package-lock.json package.json plugins postcss.config.js scripts sections-to-translate.txt src src-ja static test-mdx-conversion.js tsconfig.json utils"Mon.DD.YYYY"Gemfile Gemfile.lock LICENSE README.md catalog-info.yaml constants.js docs edge gatsby-browser.js gatsby-config.js gatsby-node.js gatsby-schema-customization.js gatsby-ssr.js mdx-to-markdown.js node_modules package-lock.json package.json plugins postcss.config.js scripts sections-to-translate.txt src src-ja static test-mdx-conversion.js tsconfig.json utils"DD.Mon.YYYY"Gemfile Gemfile.lock LICENSE README.md catalog-info.yaml constants.js docs edge gatsby-browser.js gatsby-config.js gatsby-node.js gatsby-schema-customization.js gatsby-ssr.js mdx-to-markdown.js node_modules package-lock.json package.json plugins postcss.config.js scripts sections-to-translate.txt src src-ja static test-mdx-conversion.js tsconfig.json utils"YYYY.MM.DD"Gemfile Gemfile.lock LICENSE README.md catalog-info.yaml constants.js docs edge gatsby-browser.js gatsby-config.js gatsby-node.js gatsby-schema-customization.js gatsby-ssr.js mdx-to-markdown.js node_modules package-lock.json package.json plugins postcss.config.js scripts sections-to-translate.txt src src-ja static test-mdx-conversion.js tsconfig.json utils"Mon DD YYYY hh:mmXm"(am/pmdirectly following time) Gemfile Gemfile.lock LICENSE README.md catalog-info.yaml constants.js docs edge gatsby-browser.js gatsby-config.js gatsby-node.js gatsby-schema-customization.js gatsby-ssr.js mdx-to-markdown.js node_modules package-lock.json package.json plugins postcss.config.js scripts sections-to-translate.txt src src-ja static test-mdx-conversion.js tsconfig.json utils Timezone'Z'is now accepted for non-ISO formats (e.g.Jan 1 1970 10:00Z) Gemfile Gemfile.lock LICENSE README.md catalog-info.yaml constants.js docs edge gatsby-browser.js gatsby-config.js gatsby-node.js gatsby-schema-customization.js gatsby-ssr.js mdx-to-markdown.js node_modules package-lock.json package.json plugins postcss.config.js scripts sections-to-translate.txt src src-ja static test-mdx-conversion.js tsconfig.json utils OtherDate.parse()fixes: Gemfile Gemfile.lock LICENSE README.md catalog-info.yaml constants.js docs edge gatsby-browser.js gatsby-config.js gatsby-node.js gatsby-schema-customization.js gatsby-ssr.js mdx-to-markdown.js node_modules package-lock.json package.json plugins postcss.config.js scripts sections-to-translate.txt src src-ja static test-mdx-conversion.js tsconfig.json utilsYYYY-M-DDandYYYY-MM-Dare no longer assumed GMT as an ISO dateYYYY-MM-DDwould be. Gemfile Gemfile.lock LICENSE README.md catalog-info.yaml constants.js docs edge gatsby-browser.js gatsby-config.js gatsby-node.js gatsby-schema-customization.js gatsby-ssr.js mdx-to-markdown.js node_modules package-lock.json package.json plugins postcss.config.js scripts sections-to-translate.txt src src-ja static test-mdx-conversion.js tsconfig.json utils Milliseconds for all formats are truncated after 3 digits, rather than being rounded. Gemfile Gemfile.lock LICENSE README.md catalog-info.yaml constants.js docs edge gatsby-browser.js gatsby-config.js gatsby-node.js gatsby-schema-customization.js gatsby-ssr.js mdx-to-markdown.js node_modules package-lock.json package.json plugins postcss.config.js scripts sections-to-translate.txt src src-ja static test-mdx-conversion.js tsconfig.json utils ThePromise.withResolvers()static method is now supported. This exposes theresolveandrejectcallback functions in the same scope as the returnedPromise, allowing code that resolves or rejects the promise to be defined after its construction. Gemfile Gemfile.lock LICENSE README.md catalog-info.yaml constants.js docs edge gatsby-browser.js gatsby-config.js gatsby-node.js gatsby-schema-customization.js gatsby-ssr.js mdx-to-markdown.js node_modules package-lock.json package.json plugins postcss.config.js scripts sections-to-translate.txt src src-ja static test-mdx-conversion.js tsconfig.json utils TheArrayBuffer.prototype.transfer()andArrayBuffer.prototype.transferToFixedLength()methods can now be used to transfer ownership of memory from one ArrayBuffer to another. After transfer, the original buffer is detached from its original memory and hence unusable; the state can be checked usingArrayBuffer.prototype.detached.
Prior change: JavaScript SDK 3.10.0
Following change: JavaScript SDK 3.12.1