Socket
Socket
Sign inDemoInstall

@js-temporal/polyfill

Package Overview
Dependencies
66
Maintainers
2
Versions
9
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.1.0 to 0.2.0

6

lib/init.js

@@ -9,2 +9,8 @@ if (module.parent && module.parent.id === 'internal/preload') {

globalThis.Temporal = { ...Temporal };
Object.defineProperty(globalThis.Temporal, Symbol.toStringTag, {
value: 'Temporal',
writable: false,
enumerable: false,
configurable: true
});
Object.assign(globalThis.Intl, Intl);

@@ -11,0 +17,0 @@ Object.defineProperty(Date.prototype, 'toTemporalInstant', {

2

package.json
{
"name": "@js-temporal/polyfill",
"version": "0.1.0",
"version": "0.2.0",
"description": "Polyfill for Temporal",

@@ -5,0 +5,0 @@ "type": "commonjs",

@@ -18,7 +18,8 @@ # Temporal Polyfill

* [x] Release initial pre-alpha to NPM at [@js-temporal/polyfill](https://www.npmjs.com/package/@js-temporal/polyfill)
* [ ] Sync the code in this repo with the handful of polyfill changes that have recently been made in the [tc39/proposal-temporal](https://github.com/tc39/proposal-temporal) repo
* [ ] Release alpha version to NPM
* [ ] Deprecate all other earlier Temporal polyfills
* [x] Sync the code in this repo with the handful of polyfill changes that have recently been made in the [tc39/proposal-temporal](https://github.com/tc39/proposal-temporal) repo
* [x] Release alpha version to NPM
* [x] Deprecate all other earlier Temporal polyfills
* [x] Optimize slow operations by reducing calls to Intl.DateTimeFormat constructor (see #7, #8, #10, #12)
* [ ] Convert to TypeScript for better maintainability
* [ ] (Maybe) Optimize performance of slow operations, notably non-ISO calendar calculations
* [ ] (maybe) Optimize performance of other slow operations
* [ ] Release production version to NPM

@@ -25,0 +26,0 @@

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc