Skip to content

Commit

Permalink
Merge branch 'refactor-scratch'
Browse files Browse the repository at this point in the history
  • Loading branch information
arshaw committed Jan 7, 2024
2 parents 8ddf7a7 + 0ae560c commit 10e3ead
Show file tree
Hide file tree
Showing 387 changed files with 17,073 additions and 31,702 deletions.
21 changes: 15 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@

name: CI

on: [push]
on:
push:
branches:
- main

env:
TZ: "America/New_York"
Expand All @@ -11,29 +14,35 @@ jobs:
name: CI
runs-on: ubuntu-latest

strategy:
matrix:
node: [14.21.3, 16.20.0, 18.19.0, 20.10.0]

steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: recursive

- name: Setup PNPM
uses: pnpm/[email protected]
with:
version: 7.14.0
version: 8.6.3

- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 16.13.1
node-version: 18.19.0
cache: 'pnpm'

- name: Install dependencies
run: pnpm install

- name: Lint
run: pnpm run lint
# - name: Lint
# run: pnpm run lint

- name: Build
run: pnpm run build

- name: Test
run: pnpm run test
run: cd packages/temporal-polyfill && NODE_VERSION=${{ matrix.node }} pnpm run test
11 changes: 2 additions & 9 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,11 +1,4 @@

node_modules

/coverage
tsconfig.tsbuildinfo
dist

# see pkgExportsFix
/packages/*/*.d.ts
# hack
!/packages/temporal-spec/*.d.ts
/packages/*/dist/*
/!packages/*/dist/.npmignore
9 changes: 6 additions & 3 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
[submodule "scripts/data/moment"]
path = scripts/data/moment
path = packages/locale-data/data/moment
url = https://github.com/moment/moment.git
[submodule "scripts/data/fullcalendar"]
path = scripts/data/fullcalendar
path = packages/locale-data/data/fullcalendar
url = https://github.com/fullcalendar/fullcalendar.git
[submodule "packages/temporal-polyfill/test262"]
path = packages/temporal-polyfill/test262
path = test262
url = https://github.com/tc39/test262
[submodule "packages/temporal-test262-runner"]
path = packages/temporal-test262-runner
url = [email protected]:fullcalendar/temporal-test262-runner.git
6 changes: 1 addition & 5 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
engine-strict = true

# for some reason 16.18.0 cause sub-second tz offsets to fail
# NOTE: keep in sync with github workflow
use-node-version = 16.13.1

use-node-version = ${NODE_VERSION:-18.19.0}
prefer-workspace-packages = true
3 changes: 1 addition & 2 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"recommendations": [
"dbaeumer.vscode-eslint",
"firsttris.vscode-jest-runner"
"dbaeumer.vscode-eslint"
]
}
47 changes: 1 addition & 46 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -1,56 +1,11 @@
{
"configurations": [
{
"name": "Jest: Debug All",
"type": "node",
"request": "launch",
"runtimeArgs": [
"--inspect-brk",
"${workspaceRoot}/node_modules/jest/bin/jest.js",
"--runInBand",
// NOTE: keep following args in sync with settings.json
"--no-cache",
"--watchAll=false"
],
"console": "integratedTerminal",
"internalConsoleOptions": "neverOpen",
"sourceMaps": true
},
{
"name": "Jest: Debug File",
"type": "node",
"request": "launch",
// NOTE: keep args in sync with settings.json
"runtimeArgs": [
"--inspect-brk",
"${workspaceRoot}/node_modules/jest/bin/jest.js",
"--runInBand",
// NOTE: keep following args in sync with settings.json
"--no-cache",
"--watchAll=false",
// specific file
"${file}"
],
"console": "integratedTerminal",
"internalConsoleOptions": "neverOpen",
"sourceMaps": true
},
{
"name": "Test262: Run All",
"type": "node",
"request": "launch",
"runtimeExecutable": "pnpm",
"runtimeArgs": ["run", "test262"],
"console": "integratedTerminal",
"internalConsoleOptions": "neverOpen",
"autoAttachChildProcesses": true
},
{
"name": "Test262: Debug File",
"type": "node",
"request": "launch",
"runtimeExecutable": "pnpm",
"runtimeArgs": ["run", "test262", "--no-timeout", "${file}"],
"runtimeArgs": ["run", "test", "--no-timeout", "${file}"],
"console": "integratedTerminal",
"internalConsoleOptions": "neverOpen",
"autoAttachChildProcesses": true
Expand Down
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"editor.codeActionsOnSave": {
"source.fixAll": true
"source.fixAll": "explicit"
},
"typescript.enablePromptUseWorkspaceTsdk": true,
"jestrunner.changeDirectoryToWorkspaceRoot": false, // allows entering sub-workspace, is faster
Expand Down
18 changes: 18 additions & 0 deletions packages/temporal-polyfill/CHANGELOG.md → CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,36 @@

v0.2.0 (2024-01-07)
-------------------

- Updated with latest [test262](https://github.com/tc39/test262) conformance tests (Nov 2023) (#3).
All tests passing barring intentional deviations from spec, documented in [README](README.md).
- Breaking changes include all those [mentioned here](https://github.com/js-temporal/temporal-polyfill/blob/main/CHANGELOG.md#044)
and [normative changes](https://github.com/tc39/proposal-temporal/issues/2628) introduced between May 2023 - Nov 2023,
most notably changes to "user-visible operations".
- Size of minified+gzipped bundle increased from 17.3 kB -> 20.0 kB due to stricter compliance with latest spec.
- In NPM directory, all files are now top-level as opposed to within `dist/`. Thus, the [jsDelivr URL](https://cdn.jsdelivr.net/npm/[email protected]/global.min.js) has changed.
- Fixed bugs: #9, #12, #13, #21
- Improved README content, including comparison with @js-temporal (#22)
- Renamed github repo to fullcalendar/temporal-polyfill


v0.1.1 (2023-02-15)
-------------------

- fix: upgrade temporal-spec, which is now compatible with moduleResolution:node16 (#17 cont'd)
- fix: don't fallback to native Temporal implementation for ponyfill (#19 cont'd)


v0.1.0 (2023-02-09)
-------------------

- fix: Support TypeScript 4.7 moduleResolution:node16 (#17)
- fix: Avoiding fallback to native Temporal implementation (#19)


v0.0.8 (2022-08-24)
-------------------

- Support environments without BigInt. See browser version matrix in README.
- Fixed TypeScript syntax error in `temporal-spec/index.d.ts` (#10)
- Fixed missing .d.ts files for environments that don't support export maps.
Expand Down
Loading

0 comments on commit 10e3ead

Please sign in to comment.