Skip to content

Commit

Permalink
Rename polyfill package to 'proposal-temporal'
Browse files Browse the repository at this point in the history
'tc39-temporal' sounds like something official from TC39.
'proposal-temporal' sounds like something incomplete to try out, which
is what we are aiming for.
  • Loading branch information
ptomato committed Jun 15, 2020
1 parent 951bafd commit 8c89cdb
Show file tree
Hide file tree
Showing 19 changed files with 21 additions and 21 deletions.
6 changes: 3 additions & 3 deletions polyfill/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,17 +19,17 @@ A cookbook to help you get started and learn the ins and outs of Temporal is ava
You can depend on the unstable Temporal polyfill in your personal projects:

```bash
$ npm install --save tc39-temporal
$ npm install --save proposal-temporal
```

In code:
```javascript
const { Temporal, Intl } = require('tc39-temporal');
const { Temporal, Intl } = require('proposal-temporal');
```

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

## Node REPL with Temporal
Expand Down
2 changes: 1 addition & 1 deletion polyfill/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "tc39-temporal",
"name": "proposal-temporal",
"version": "0.1.0",
"description": "Experimental polyfill for the TC39 Temporal proposal",
"type": "commonjs",
Expand Down
2 changes: 1 addition & 1 deletion polyfill/test/absolute.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const { reporter } = Pretty;
import { strict as assert } from 'assert';
const { equal, notEqual, throws } = assert;

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

describe('Absolute', () => {
Expand Down
2 changes: 1 addition & 1 deletion polyfill/test/date.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const { reporter } = Pretty;
import { strict as assert } from 'assert';
const { equal, notEqual, throws } = assert;

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

describe('Date', () => {
Expand Down
2 changes: 1 addition & 1 deletion polyfill/test/datemath.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const { reporter } = Pretty;

import { strict as assert } from 'assert';

import * as Temporal from 'tc39-temporal';
import * as Temporal from 'proposal-temporal';

describe('Date.difference(simple, simple)', () => {
build('Before Leap Day', '2020-01-03', '2020-02-15');
Expand Down
2 changes: 1 addition & 1 deletion polyfill/test/datetime.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const { reporter } = Pretty;
import { strict as assert } from 'assert';
const { equal, notEqual, throws } = assert;

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

describe('DateTime', () => {
Expand Down
2 changes: 1 addition & 1 deletion polyfill/test/duration.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const { reporter } = Pretty;
import { strict as assert } from 'assert';
const { throws, equal, notEqual } = assert;

import { Duration } from 'tc39-temporal';
import { Duration } from 'proposal-temporal';

describe('Duration', () => {
describe('Structure', () => {
Expand Down
2 changes: 1 addition & 1 deletion polyfill/test/exhaust.mjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as Temporal from 'tc39-temporal';
import * as Temporal from 'proposal-temporal';

const all = process.argv[2] === 'all';
const start = new Temporal.Date(1999, 1, 1);
Expand Down
2 changes: 1 addition & 1 deletion polyfill/test/exports.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const { reporter } = Pretty;
import { strict as assert } from 'assert';
const { equal } = assert;

import * as Temporal from 'tc39-temporal';
import * as Temporal from 'proposal-temporal';

describe('Exports', () => {
const named = Object.keys(Temporal);
Expand Down
2 changes: 1 addition & 1 deletion polyfill/test/intl.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const { deepEqual, equal, throws } = assert;

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

describe('Intl', () => {
// TODO: move these to their respective test files.
Expand Down
2 changes: 1 addition & 1 deletion polyfill/test/monthday.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const { reporter } = Pretty;
import { strict as assert } from 'assert';
const { throws, equal, notEqual } = assert;

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

describe('MonthDay', () => {
Expand Down
2 changes: 1 addition & 1 deletion polyfill/test/now.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const { reporter } = Pretty;
import { strict as assert } from 'assert';
const { equal } = assert;

import * as Temporal from 'tc39-temporal';
import * as Temporal from 'proposal-temporal';

describe('Temporal.now', () => {
describe('Structure', () => {
Expand Down
2 changes: 1 addition & 1 deletion polyfill/test/regex.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const { reporter } = Pretty;
import { strict as assert } from 'assert';
const { equal } = assert;

import * as Temporal from 'tc39-temporal';
import * as Temporal from 'proposal-temporal';

describe('fromString regex', () => {
describe('absolute', () => {
Expand Down
2 changes: 1 addition & 1 deletion polyfill/test/resolve.cookbook.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export function resolve(specifier, parent, defaultResolve) {
export async function transformSource(source, { url, format }, defaultTransformSource) {
if (typeof source === 'string' && url !== 'all.mjs' && !url.endsWith('polyfill/lib/index.mjs')) {
return {
source: "import { Temporal } from 'tc39-temporal';\nimport assert from 'assert';\n" + source
source: `import { Temporal } from '${PKG.name}';\nimport assert from 'assert';\n` + source
};
} else {
// source could be a buffer, e.g. for WASM
Expand Down
2 changes: 1 addition & 1 deletion polyfill/test/time.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const { reporter } = Pretty;
import { strict as assert } from 'assert';
const { equal, notEqual, throws } = assert;

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

describe('Time', () => {
Expand Down
2 changes: 1 addition & 1 deletion polyfill/test/timezone.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const { reporter } = Pretty;
import { strict as assert } from 'assert';
const { deepEqual, equal, throws } = assert;

import * as Temporal from 'tc39-temporal';
import * as Temporal from 'proposal-temporal';

describe('TimeZone', () => {
describe('Structure', () => {
Expand Down
2 changes: 1 addition & 1 deletion polyfill/test/usercalendar.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const { reporter } = Pretty;
import { strict as assert } from 'assert';
const { equal, throws } = assert;

import * as Temporal from 'tc39-temporal';
import * as Temporal from 'proposal-temporal';

describe('Userland calendar', () => {
describe('Trivial subclass', () => {
Expand Down
2 changes: 1 addition & 1 deletion polyfill/test/usertimezone.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const { reporter } = Pretty;
import { strict as assert } from 'assert';
const { equal, throws } = assert;

import * as Temporal from 'tc39-temporal';
import * as Temporal from 'proposal-temporal';

describe('Userland time zone', () => {
describe('Trivial subclass', () => {
Expand Down
2 changes: 1 addition & 1 deletion polyfill/test/yearmonth.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const { reporter } = Pretty;
import { strict as assert } from 'assert';
const { throws, equal, notEqual } = assert;

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

describe('YearMonth', () => {
Expand Down

0 comments on commit 8c89cdb

Please sign in to comment.