Skip to content

Commit 8c89cdb

Browse files
committed
Rename polyfill package to 'proposal-temporal'
'tc39-temporal' sounds like something official from TC39. 'proposal-temporal' sounds like something incomplete to try out, which is what we are aiming for.
1 parent 951bafd commit 8c89cdb

19 files changed

+21
-21
lines changed

polyfill/README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -19,17 +19,17 @@ A cookbook to help you get started and learn the ins and outs of Temporal is ava
1919
You can depend on the unstable Temporal polyfill in your personal projects:
2020

2121
```bash
22-
$ npm install --save tc39-temporal
22+
$ npm install --save proposal-temporal
2323
```
2424

2525
In code:
2626
```javascript
27-
const { Temporal, Intl } = require('tc39-temporal');
27+
const { Temporal, Intl } = require('proposal-temporal');
2828
```
2929

3030
Or, import the polyfill as an ES6 module:
3131
```javascript
32-
import { Temporal, Intl } from 'tc39-temporal/lib/index.mjs';
32+
import { Temporal, Intl } from 'proposal-temporal/lib/index.mjs';
3333
```
3434

3535
## Node REPL with Temporal

polyfill/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "tc39-temporal",
2+
"name": "proposal-temporal",
33
"version": "0.1.0",
44
"description": "Experimental polyfill for the TC39 Temporal proposal",
55
"type": "commonjs",

polyfill/test/absolute.mjs

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const { reporter } = Pretty;
1414
import { strict as assert } from 'assert';
1515
const { equal, notEqual, throws } = assert;
1616

17-
import * as Temporal from 'tc39-temporal';
17+
import * as Temporal from 'proposal-temporal';
1818
const { Absolute } = Temporal;
1919

2020
describe('Absolute', () => {

polyfill/test/date.mjs

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const { reporter } = Pretty;
1414
import { strict as assert } from 'assert';
1515
const { equal, notEqual, throws } = assert;
1616

17-
import * as Temporal from 'tc39-temporal';
17+
import * as Temporal from 'proposal-temporal';
1818
const { Date } = Temporal;
1919

2020
describe('Date', () => {

polyfill/test/datemath.mjs

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ const { reporter } = Pretty;
1313

1414
import { strict as assert } from 'assert';
1515

16-
import * as Temporal from 'tc39-temporal';
16+
import * as Temporal from 'proposal-temporal';
1717

1818
describe('Date.difference(simple, simple)', () => {
1919
build('Before Leap Day', '2020-01-03', '2020-02-15');

polyfill/test/datetime.mjs

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const { reporter } = Pretty;
1414
import { strict as assert } from 'assert';
1515
const { equal, notEqual, throws } = assert;
1616

17-
import * as Temporal from 'tc39-temporal';
17+
import * as Temporal from 'proposal-temporal';
1818
const { DateTime } = Temporal;
1919

2020
describe('DateTime', () => {

polyfill/test/duration.mjs

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const { reporter } = Pretty;
77
import { strict as assert } from 'assert';
88
const { throws, equal, notEqual } = assert;
99

10-
import { Duration } from 'tc39-temporal';
10+
import { Duration } from 'proposal-temporal';
1111

1212
describe('Duration', () => {
1313
describe('Structure', () => {

polyfill/test/exhaust.mjs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import * as Temporal from 'tc39-temporal';
1+
import * as Temporal from 'proposal-temporal';
22

33
const all = process.argv[2] === 'all';
44
const start = new Temporal.Date(1999, 1, 1);

polyfill/test/exports.mjs

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const { reporter } = Pretty;
1414
import { strict as assert } from 'assert';
1515
const { equal } = assert;
1616

17-
import * as Temporal from 'tc39-temporal';
17+
import * as Temporal from 'proposal-temporal';
1818

1919
describe('Exports', () => {
2020
const named = Object.keys(Temporal);

polyfill/test/intl.mjs

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const { deepEqual, equal, throws } = assert;
99

1010
import { DateTimeFormat } from '../lib/intl.mjs';
1111
Intl.DateTimeFormat = DateTimeFormat;
12-
import * as Temporal from 'tc39-temporal';
12+
import * as Temporal from 'proposal-temporal';
1313

1414
describe('Intl', () => {
1515
// TODO: move these to their respective test files.

polyfill/test/monthday.mjs

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const { reporter } = Pretty;
77
import { strict as assert } from 'assert';
88
const { throws, equal, notEqual } = assert;
99

10-
import * as Temporal from 'tc39-temporal';
10+
import * as Temporal from 'proposal-temporal';
1111
const { MonthDay } = Temporal;
1212

1313
describe('MonthDay', () => {

polyfill/test/now.mjs

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const { reporter } = Pretty;
1414
import { strict as assert } from 'assert';
1515
const { equal } = assert;
1616

17-
import * as Temporal from 'tc39-temporal';
17+
import * as Temporal from 'proposal-temporal';
1818

1919
describe('Temporal.now', () => {
2020
describe('Structure', () => {

polyfill/test/regex.mjs

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const { reporter } = Pretty;
77
import { strict as assert } from 'assert';
88
const { equal } = assert;
99

10-
import * as Temporal from 'tc39-temporal';
10+
import * as Temporal from 'proposal-temporal';
1111

1212
describe('fromString regex', () => {
1313
describe('absolute', () => {

polyfill/test/resolve.cookbook.mjs

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export function resolve(specifier, parent, defaultResolve) {
1515
export async function transformSource(source, { url, format }, defaultTransformSource) {
1616
if (typeof source === 'string' && url !== 'all.mjs' && !url.endsWith('polyfill/lib/index.mjs')) {
1717
return {
18-
source: "import { Temporal } from 'tc39-temporal';\nimport assert from 'assert';\n" + source
18+
source: `import { Temporal } from '${PKG.name}';\nimport assert from 'assert';\n` + source
1919
};
2020
} else {
2121
// source could be a buffer, e.g. for WASM

polyfill/test/time.mjs

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const { reporter } = Pretty;
1414
import { strict as assert } from 'assert';
1515
const { equal, notEqual, throws } = assert;
1616

17-
import * as Temporal from 'tc39-temporal';
17+
import * as Temporal from 'proposal-temporal';
1818
const { Time } = Temporal;
1919

2020
describe('Time', () => {

polyfill/test/timezone.mjs

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const { reporter } = Pretty;
1414
import { strict as assert } from 'assert';
1515
const { deepEqual, equal, throws } = assert;
1616

17-
import * as Temporal from 'tc39-temporal';
17+
import * as Temporal from 'proposal-temporal';
1818

1919
describe('TimeZone', () => {
2020
describe('Structure', () => {

polyfill/test/usercalendar.mjs

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ const { reporter } = Pretty;
1212
import { strict as assert } from 'assert';
1313
const { equal, throws } = assert;
1414

15-
import * as Temporal from 'tc39-temporal';
15+
import * as Temporal from 'proposal-temporal';
1616

1717
describe('Userland calendar', () => {
1818
describe('Trivial subclass', () => {

polyfill/test/usertimezone.mjs

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ const { reporter } = Pretty;
1212
import { strict as assert } from 'assert';
1313
const { equal, throws } = assert;
1414

15-
import * as Temporal from 'tc39-temporal';
15+
import * as Temporal from 'proposal-temporal';
1616

1717
describe('Userland time zone', () => {
1818
describe('Trivial subclass', () => {

polyfill/test/yearmonth.mjs

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const { reporter } = Pretty;
77
import { strict as assert } from 'assert';
88
const { throws, equal, notEqual } = assert;
99

10-
import * as Temporal from 'tc39-temporal';
10+
import * as Temporal from 'proposal-temporal';
1111
const { YearMonth } = Temporal;
1212

1313
describe('YearMonth', () => {

0 commit comments

Comments
 (0)