Skip to content

Commit 25a2c27

Browse files
committed
Merge upstream
2 parents 28298bd + 5288d88 commit 25a2c27

File tree

272 files changed

+25497
-115839
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

272 files changed

+25497
-115839
lines changed

.github/dependabot.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Basic dependabot.yml file
2+
# https://docs.github.com/en/free-pro-team@latest/github/administering-a-repository/enabling-and-disabling-version-updates
3+
4+
version: 2
5+
updates:
6+
# Enable version updates for npm
7+
- package-ecosystem: "npm"
8+
# Look for `package.json` and `lock` files in the `root` directory
9+
directory: "/"
10+
# Check the npm registry for updates every month
11+
schedule:
12+
interval: "monthly"
13+
# Bump versions in package.json
14+
# https://github.com/dependabot/dependabot-core/issues/3103
15+
# https://docs.github.com/en/github/administering-a-repository/configuration-options-for-dependency-updates#versioning-strategy
16+
versioning-strategy: "increase"

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@ jobs:
1111
with:
1212
node-version: '15'
1313

14-
- run: npm install
14+
- run: npm ci
1515
- run: npm run build
1616
- run: npm test
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Update core dependencies
2+
on:
3+
workflow_dispatch:
4+
schedule:
5+
# https://crontab.guru/#5_8_*_*_*
6+
- cron: "5 8 * * *"
7+
8+
# Conditional runs
9+
# https://stackoverflow.com/a/61832535/2460034
10+
jobs:
11+
update-webref:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v2
15+
- uses: actions/setup-node@v1
16+
with:
17+
node-version: '15'
18+
19+
- run: npm i -g npm-check-updates
20+
- run: ncu -u
21+
- run: npm i
22+
- run: npm run build && npm run baseline-accept
23+
- id: git-diff
24+
run: git diff --quiet HEAD baselines
25+
continue-on-error: true
26+
- uses: peter-evans/create-pull-request@v3
27+
if: ${{ steps.git-diff.outcome == 'failure' }}
28+
with:
29+
commit-message: "chore(package): update core dependencies"
30+
title: "chore(package): update core dependencies"
31+
branch: update-core-deps
32+
token: ${{ secrets.PAT }}
33+

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,6 @@ lib/
283283
inputfiles/browser.webidl.json
284284
.vscode/*
285285
!.vscode/launch.template.json
286-
package-lock.json
287286
yarn.lock
288287
TypeScript
289288
deploy/generated

.npmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
package-lock=false
1+
message="chore(package): bump version number to v%s"

CODEOWNERS

Lines changed: 0 additions & 1 deletion
This file was deleted.

README.md

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
# TypeScript and JavaScript lib generator
22

3-
Travis CI Status: [![Build Status](https://travis-ci.org/Microsoft/TSJS-lib-generator.svg?branch=master)](https://travis-ci.org/Microsoft/TSJS-lib-generator)
3+
This tool is used to generate the web-based `*.d.ts` files which are included with TypeScript releases, and as `@types/x` packages.
44

5-
This tool is used to generate `dom.generated.d.ts`, `webworker.generated.d.ts` and `dom.iterable.generated.d.ts` for TypeScript.
6-
The input file is the JSON webidl file generated by the Microsoft Edge browser.
5+
## Why is my fancy API still not available here?
6+
7+
A feature needs to be supported by more than two major browser engines to be included here, to make sure there is a good consensus among vendors: __Gecko__ (Firefox), __Blink__ (Chrome/Edge), and __WebKit__ (Safari).
8+
9+
If the condition is met but still is not available here, please [file an issue](hthttps://github.com/microsoft/TypeScript-DOM-lib-generator/issues/new).
710

811
## Build Instructions
912

@@ -53,11 +56,10 @@ The format of each file can be inferred from their existing content.
5356

5457
The common steps to send a pull request are:
5558

56-
0. Open or refer to an issue in the [TypeScript repo](https://github.com/Microsoft/TypeScript).
57-
1. Add missing elements to `inputfiles/addedTypes.json`, overriding elements to `inputfiles/overridingTypes.json`, or elements to remove to `inputfiles/removedTypes.json`.
59+
0. Open or refer to an issue in the [TypeScript repo](https://github.com/Microsoft/TypeScript) which might get moved back to this repo.
60+
1. Update an IDL or add missing elements to `inputfiles/addedTypes.json`, overriding elements to `inputfiles/overridingTypes.json`, or elements to remove to `inputfiles/removedTypes.json`.
5861
2. Run the build script locally to obtain new `dom.generated.d.ts` and `webworker.generated.d.ts`.
59-
3. Update the files in the `baselines` folder using the newly generated files
60-
under `generated` folder (`npm run baseline-accept`).
62+
3. Update the files in the `baselines` folder using the newly generated files under `generated` folder (`npm run baseline-accept`).
6163

6264
### What are the TypeScript team's heuristics for PRs to the DOM APIs
6365

@@ -95,6 +97,8 @@ To give you a sense of whether we will accept changes, you can use these heurist
9597
- Does an internet search for the fields show results in blogs/recommendations?
9698
- When was the deprecation (this can be hard to find) but was it at least 2 years ago if so?
9799

100+
## Build Instructions
101+
98102
# This repo
99103

100104
## Code Structure

0 commit comments

Comments
 (0)