Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v0.28 #2866

Closed
wants to merge 77 commits into from
Closed

v0.28 #2866

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
77 commits
Select commit Hold shift + click to select a range
c53e480
Add css variables for dimensions, and use svh units
phoneticallySAARTHaK Jan 18, 2025
79a9b56
Fix excess/absent margins and padding.
phoneticallySAARTHaK Jan 18, 2025
1df9967
Fix tab order of toolbar and remove unused selectors. **Breaks search**
phoneticallySAARTHaK Jan 19, 2025
3548d14
Add more search related 118n strings, and inject more strings in js s…
phoneticallySAARTHaK Jan 19, 2025
55c0576
Implement search component as combobox, with minimal functionality
phoneticallySAARTHaK Jan 19, 2025
28320e1
Add global keyboard listeners for opening modal
phoneticallySAARTHaK Jan 19, 2025
b0f75ef
rename `setCurrentResult` to `setNextResult`
phoneticallySAARTHaK Jan 19, 2025
f4d4fbd
Use semantic element `mark` for highlighting search matches
phoneticallySAARTHaK Jan 19, 2025
0b58bf5
Add exit animation for modals, using custom overlay
phoneticallySAARTHaK Jan 19, 2025
b2f79de
Remove unused keyframes. Merge `body` selectors
phoneticallySAARTHaK Jan 19, 2025
d687ef6
Adjust max-height with virtual keyboard, in mobiles
phoneticallySAARTHaK Jan 19, 2025
548df5c
fix placeholder text color on focus search input
phoneticallySAARTHaK Jan 19, 2025
a606615
Remove min-height from search dialog and set it to `.state`
phoneticallySAARTHaK Jan 20, 2025
ec6b774
fix single element edge case in `setNextResult`
phoneticallySAARTHaK Jan 20, 2025
1beacfa
Show recent searches when the search query is empty
phoneticallySAARTHaK Jan 20, 2025
4fd690e
Completely revert "recent searches" feature.
phoneticallySAARTHaK Jan 25, 2025
b49240a
Fix typo and refactor search.ts code
phoneticallySAARTHaK Jan 25, 2025
43d91d6
Fix invalid search message implementation
phoneticallySAARTHaK Jan 26, 2025
8a4b5e3
Add placeholder for no_results i18n string
phoneticallySAARTHaK Jan 26, 2025
cccf2d4
remove global button styles and add it to tsd-widget
phoneticallySAARTHaK Jan 26, 2025
28e49c6
Improve text contrast, satisfying WCAG level AA
phoneticallySAARTHaK Jan 27, 2025
8b09c47
Fix circular dependency
Gerrit0 Feb 9, 2025
d81c071
Format
Gerrit0 Feb 9, 2025
e0abc1a
WIP: Create a router for TypeDoc
Gerrit0 Dec 15, 2024
f4e3973
Fix additional merge issues
Gerrit0 Dec 15, 2024
9e5c395
Revert cache added in #2386
Gerrit0 Dec 15, 2024
52ea061
Fix warning due getting URL without checking
Gerrit0 Dec 15, 2024
374a062
Add unit tests for DefaultRouter
Gerrit0 Dec 15, 2024
91b14fc
Slightly smarter router
Gerrit0 Dec 15, 2024
95cd55e
Introduce `--router` option
Gerrit0 Dec 15, 2024
02fb0b5
Lint cleanup
Gerrit0 Dec 15, 2024
43abdfc
Split utils into node utils and common utils
Gerrit0 Dec 16, 2024
9769319
Fix build errors
Gerrit0 Feb 9, 2025
2bb2f37
Merge branch 'phoneticallySAARTHaK/master' into beta
Gerrit0 Feb 9, 2025
81e5c58
Remove jp translations
Gerrit0 Feb 9, 2025
cfef3d7
Switch to dprint
Gerrit0 Feb 9, 2025
77d6bc6
Fix CI
Gerrit0 Feb 9, 2025
772133e
Update changelog
Gerrit0 Feb 9, 2025
ab7eab6
Require input globs to have posix path sep
Gerrit0 Feb 16, 2025
6bd9d7f
Fix slow tests on Linux
Gerrit0 Feb 16, 2025
a68f30f
Fix lint command
Gerrit0 Feb 16, 2025
dd987f2
Make debugging easier, fix some Windows issues
Gerrit0 Feb 16, 2025
60f2534
Fix remaining unit tests on Linux
Gerrit0 Feb 9, 2025
de7d448
Defer conversion of aliases when possible
Gerrit0 Feb 16, 2025
d702073
WIP: Reduce usage of node APIs in models
Gerrit0 Feb 16, 2025
854a9a1
Add `@primaryExport` tag
Gerrit0 Feb 17, 2025
187688f
Merge 'typedoc/master'
phoneticallySAARTHaK Feb 17, 2025
091d07f
add label to search icon following fb0460
phoneticallySAARTHaK Feb 17, 2025
44a5d9b
Remove search results that don't match the enabled filters
phoneticallySAARTHaK Feb 17, 2025
f5e0ae3
Update Chinese translations
XeroAlpha Feb 19, 2025
027e19b
Merge pull request #2861 from XeroAlpha/i18n-zh-update-beta
Gerrit0 Feb 20, 2025
f0b38f6
Merge remote-tracking branch 'origin/master' into beta
Gerrit0 Feb 22, 2025
3b632bd
Merge branch 'beta' into phoneticallySAARTHaK/master
Gerrit0 Feb 22, 2025
58fb46d
Update filter handling in search
Gerrit0 Feb 22, 2025
2b407ab
Merge pull request #2831 from phoneticallySAARTHaK/master
Gerrit0 Feb 22, 2025
afcada2
Bump deps
Gerrit0 Feb 22, 2025
b401c9d
Disable invalid eslint warning
Gerrit0 Feb 22, 2025
3bd2df4
Attempt hacky fix for broken CI machine
Gerrit0 Feb 22, 2025
9b5736d
Attempt hacky fix for broken CI machine
Gerrit0 Feb 22, 2025
18e57b1
Grasp at more straws
Gerrit0 Feb 22, 2025
b4ef8a7
Grasp at more straws
Gerrit0 Feb 22, 2025
e1e47dd
WIP: Support a browser bundle
Gerrit0 Feb 22, 2025
5620080
WIP: Support a minimal browser bundle
Gerrit0 Feb 22, 2025
c868545
WIP: Make a browser bundle possible
Gerrit0 Feb 23, 2025
e758771
Finish moving Node references out of models
Gerrit0 Feb 23, 2025
b795ac5
TypeDoc now supports a browser bundle
Gerrit0 Feb 23, 2025
10f8419
Goodbye npm, I won't miss you
Gerrit0 Feb 16, 2025
5fb98f0
Maybe fix CI
Gerrit0 Feb 23, 2025
aec642f
Add @shikijs/types dev dep
Gerrit0 Feb 23, 2025
038b668
Remove need for @shikijs/types
Gerrit0 Feb 23, 2025
9dbfd23
More attempts to fix CI
Gerrit0 Feb 23, 2025
934281c
Fix circular dependency
Gerrit0 Feb 23, 2025
e5bfa10
Prefer placing comment on function signature
Gerrit0 Feb 23, 2025
f57e208
I18N cleanup, update changelog
Gerrit0 Feb 23, 2025
3e0cac1
Add support for TypeScript 5.8
Gerrit0 Feb 23, 2025
446e416
Bump version to 0.28.0-beta.0
Gerrit0 Feb 23, 2025
bdbfde6
Allow git changes when publishing
Gerrit0 Feb 23, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
18 changes: 0 additions & 18 deletions .config/.prettierignore

This file was deleted.

16 changes: 0 additions & 16 deletions .config/.prettierrc.json

This file was deleted.

2 changes: 1 addition & 1 deletion .config/mocha.fast.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@
"spec": ["src/test/**/*.test.ts", "src/test/**/*.test.tsx"],
"timeout": 5000,
"watch-files": ["src/**/*.ts", "src/**/*.tsx"],
"node-option": ["import=tsx"]
"node-option": ["import=tsx", "conditions=typedoc-ts"]
}
2 changes: 1 addition & 1 deletion .config/mocha.full.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
"timeout": 0,
"spec": ["src/test/**/*.test.ts", "src/test/**/*.test.tsx"],
"exclude": ["src/test/packages/**"],
"node-option": ["import=tsx"]
"node-option": ["import=tsx", "conditions=typedoc-ts"]
}
4 changes: 2 additions & 2 deletions .config/mocha.test-explorer.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"$schema": "https://json.schemastore.org/mocharc.json",
"extension": ["ts"],
"ignore": ["src/test/slow/**", "src/test/packages/**"],
"ignore": [],
"package": "./package.json",
"node-option": ["import=tsx"],
"node-option": ["import=tsx", "conditions=typedoc-ts"],
"slow": 500,
"spec": ["src/**/*.test.ts", "src/**/*.test.tsx"],
"timeout": 0,
Expand Down
3 changes: 2 additions & 1 deletion .config/typedoc.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
],

"excludeExternals": true,
"externalPattern": ["**/node_modules/**", "../src/lib/types/**"],
"excludeInternal": false,
"excludePrivate": true,
// "excludeReferences": true,
Expand Down Expand Up @@ -59,7 +60,7 @@
"searchInComments": true,
"searchInDocuments": true,
"searchGroupBoosts": {
"Classes": 2.0,
"Classes": 5.0,
"Interfaces": 2.0,
"Enumerations": 2.0,
"Type Aliases": 2.0
Expand Down
30 changes: 15 additions & 15 deletions .github/CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,24 +17,24 @@ diverse, inclusive, and healthy community.
Examples of behavior that contributes to a positive environment for our
community include:

- Demonstrating empathy and kindness toward other people
- Being respectful of differing opinions, viewpoints, and experiences
- Giving and gracefully accepting constructive feedback
- Accepting responsibility and apologizing to those affected by our mistakes,
and learning from the experience
- Focusing on what is best not just for us as individuals, but for the
overall community
- Demonstrating empathy and kindness toward other people
- Being respectful of differing opinions, viewpoints, and experiences
- Giving and gracefully accepting constructive feedback
- Accepting responsibility and apologizing to those affected by our mistakes,
and learning from the experience
- Focusing on what is best not just for us as individuals, but for the
overall community

Examples of unacceptable behavior include:

- The use of sexualized language or imagery, and sexual attention or
advances of any kind
- Trolling, insulting or derogatory comments, and personal or political attacks
- Public or private harassment
- Publishing others' private information, such as a physical or email
address, without their explicit permission
- Other conduct which could reasonably be considered inappropriate in a
professional setting
- The use of sexualized language or imagery, and sexual attention or
advances of any kind
- Trolling, insulting or derogatory comments, and personal or political attacks
- Public or private harassment
- Publishing others' private information, such as a physical or email
address, without their explicit permission
- Other conduct which could reasonably be considered inappropriate in a
professional setting

## Enforcement Responsibilities

Expand Down
90 changes: 45 additions & 45 deletions .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,21 +6,21 @@ This document includes a set of guidelines for contributing to TypeDoc. These ar

## Table of Contents

- [Contributing to TypeDoc](#contributing-to-typedoc)
- [Table of Contents](#table-of-contents)
- [How Can I Contribute?](#how-can-i-contribute)
- [Bug Reports](#bug-reports)
- [Suggestions](#suggestions)
- [Documentation](#documentation)
- [Code](#code)
- [Setup - Git, GitHub, and Node](#setup---git-github-and-node)
- [Installation](#installation)
- [Linting, Building, and Testing](#linting-building-and-testing)
- [Linting](#linting)
- [Building](#building)
- [Testing](#testing)
- [Pull Requests](#pull-requests)
- [Updating Your Branch](#updating-your-branch)
- [Contributing to TypeDoc](#contributing-to-typedoc)
- [Table of Contents](#table-of-contents)
- [How Can I Contribute?](#how-can-i-contribute)
- [Bug Reports](#bug-reports)
- [Suggestions](#suggestions)
- [Documentation](#documentation)
- [Code](#code)
- [Setup - Git, GitHub, and Node](#setup---git-github-and-node)
- [Installation](#installation)
- [Linting, Building, and Testing](#linting-building-and-testing)
- [Linting](#linting)
- [Building](#building)
- [Testing](#testing)
- [Pull Requests](#pull-requests)
- [Updating Your Branch](#updating-your-branch)

## How Can I Contribute?

Expand All @@ -32,9 +32,9 @@ Before creating a bug report please check [this list][bugs] to see if it has alr

When creating a bug report, explain the problem and include as much additional information as necessary to help maintainers to reproduce it. Ideally, provide an example project which highlights the problem.

- **Use a clear and descriptive title** for the issue to identify the problem
- **Describe your project setup**. The easier it is for maintainers to reproduce your problem, the more likely it is to be quickly fixed.
- **Explain what you expected to see instead and why**
- **Use a clear and descriptive title** for the issue to identify the problem
- **Describe your project setup**. The easier it is for maintainers to reproduce your problem, the more likely it is to be quickly fixed.
- **Explain what you expected to see instead and why**

### Suggestions

Expand All @@ -44,18 +44,18 @@ Before creating a feature request, please check [this list][suggestions] to see

When creating an enhancement request, explain your use case and ultimate goal. This will make it possible for contributors to suggest existing alternatives which may already meet your requirements.

- **Use a clear and descriptive title** for the issue to identify the suggestion.
- **Provide an example where this enhancement would improve TypeDoc**
- **If possible, list another documentation generator where this feature exists**
- **Use a clear and descriptive title** for the issue to identify the suggestion.
- **Provide an example where this enhancement would improve TypeDoc**
- **If possible, list another documentation generator where this feature exists**

### Documentation

TypeDoc is documented in 4 primary areas.

- This repo's [README.md](https://github.com/TypeStrong/typedoc/blob/master/README.md)
- The website guides hosted at [TypeStrong/typedoc-site](https://github.com/TypeStrong/typedoc-site/)
- Doc comments of source files which are rendered in the [api docs](https://typedoc.org/api/)
- The [option descriptions](https://github.com/TypeStrong/typedoc/blob/ce0654295698e2bb2badf5f93d388bd977da3c46/src/lib/application.ts#L66) used by the `--help` command
- This repo's [README.md](https://github.com/TypeStrong/typedoc/blob/master/README.md)
- The website guides hosted at [TypeStrong/typedoc-site](https://github.com/TypeStrong/typedoc-site/)
- Doc comments of source files which are rendered in the [api docs](https://typedoc.org/api/)
- The [option descriptions](https://github.com/TypeStrong/typedoc/blob/ce0654295698e2bb2badf5f93d388bd977da3c46/src/lib/application.ts#L66) used by the `--help` command

If you would like to improve the documentation in any of these areas, please open an issue if there isn't one already to discuss what you would like to improve. Then submit a [Pull Request](#pull-requests) to this repo, (or to [TypeStrong/typedoc-site](https://github.com/TypeStrong/typedoc-site/) in the case of guides).

Expand All @@ -70,29 +70,29 @@ If you have started work on an issue and get stuck or want a second opinion on y

## Setup - Git, GitHub, and Node

If you don't already have [Git] installed, install it first. You will need it to contribute to TypeDoc. You will also need to install [Node]. TypeDoc requires at least npm 4, so if you are running Node 7.3.0 or older you will need to upgrade npm using `npm install --global npm@^4`.
If you don't already have [Git] installed, install it first. You will need it to contribute to TypeDoc. You will also need to install [Node] and pnpm.

#### Installation

1. Fork the TypeDoc repository - https://github.com/TypeStrong/typedoc/fork
1. Open a terminal, or "Git Bash" on Windows.
1. Use `cd` to move to the directory that you want to work in.
1. Clone your repository, replace USER with your GitHub username:
```bash
git clone https://github.com/USER/typedoc
```
```bash
git clone https://github.com/USER/typedoc
```
1. Add the TypeDoc repo as a remote repository
```bash
git remote add typedoc https://github.com/TypeStrong/typedoc
```
```bash
git remote add typedoc https://github.com/TypeStrong/typedoc
```
1. Install dependencies:
```bash
npm install
```
```bash
pnpm install
```
1. Build:
```bash
npm run build
```
```bash
pnpm build
```
1. Open the typedoc folder in your favorite editor. If you don't have one, try [Visual Studio Code][vscode]

## Linting, Building, and Testing
Expand All @@ -101,21 +101,21 @@ Once you have cloned TypeDoc, you can lint, build, and test the code from your t

#### Linting

To lint the TypeDoc code, run `npm run lint`. This will start eslint and check all files for stylistic problems. You can also install an eslint plugin for your editor to show most style problems as you type.
To lint the TypeDoc code, run `pnpm run lint`. This will start eslint and check all files for stylistic problems. You can also install an eslint plugin for your editor to show most style problems as you type.

You can automatically fix some style problems by running `npm run lint -- --write`.
You can automatically fix some style problems by running `pnpx dprint fmt`.

#### Building

To compile the TypeDoc source, run `npm run build`. This will start the TypeScript compiler and output the compiled JavaScript to the `dist` folder.
To compile the TypeDoc source, run `pnpm build`. This will start the TypeScript compiler and output the compiled JavaScript to the `dist` folder.

#### Testing

TypeDoc includes an extensive set of tests that describe its output. To validate any changes you have made run `npm test`.
TypeDoc includes an extensive set of tests that describe its output. To validate any changes you have made run `pnpm test`.
This will run a subset of TypeDoc's tests intended for quick development checks.
Tests which take more than half a second are located in `src/test/slow`, and will only be run if you run `npm run test:full`.
Tests which take more than half a second are located in `src/test/slow`, and will only be run if you run `pnpm run test:full`.

If you have changed the TypeDoc output, it will cause tests to fail. Once you have validated that the introduced changes were intended, run `npm run rebuild_specs` to update the spec files for the new output.
If you have changed the TypeDoc output, it will cause tests to fail. Once you have validated that the introduced changes were intended, run `pnpm run rebuild_specs` to update the spec files for the new output.

Additional tests are contained within the `converter2` directory that look for specific issues with previous
builds and may be more appropriate for adding a test for a bugfix.
Expand All @@ -128,7 +128,7 @@ There is also a script to visually compare the differences between changes. To s

Once you have finished working on an issue, you can submit a pull request to have your changes merged into the TypeDoc repository and included in the next release.

Before submitting a pull request, make sure that there are no linting problems (`npm run lint`), all tests pass (`npm test`), and your branch is up to date. Its also a good idea to join the TypeScript [discord] and visit the `#typedoc` channel to discuss how best to implement changes.
Before submitting a pull request, make sure that there are no linting problems (`pnpm run lint`), all tests pass (`pnpm test`), and your branch is up to date. Its also a good idea to join the TypeScript [discord] and visit the `#typedoc` channel to discuss how best to implement changes.

If your change is user facing, consider updating `CHANGELOG.md` to describe the change you have made. If you don't, the maintainer who merges your pull request will do it for you.

Expand Down
8 changes: 4 additions & 4 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ If this is not possible, include at least:

## Environment

- Typedoc version:
- TypeScript version:
- Node.js version:
- OS:
- Typedoc version:
- TypeScript version:
- Node.js version:
- OS:
6 changes: 4 additions & 2 deletions .github/workflows/build-site.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,12 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: 20
- name: Set up pnpm
run: npm i -g pnpm@10
- name: Install
run: npm ci
run: pnpm install
- name: Build
run: npm run build
run: pnpm run build
- name: Build Site
run: ./scripts/build_site.sh
- name: Upload static files as artifact
Expand Down
32 changes: 18 additions & 14 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,20 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
- name: Set up pnpm
run: npm i -g pnpm@10
- name: Install
run: npm ci
run: pnpm install
- name: Build
run: npm run build
run: pnpm run build
- name: Test
run: |
if node -e "process.exit(Number(+process.versions.node.slice(0, 2) < 23))"; then
export NODE_OPTIONS="--no-experimental-strip-types"
fi
npm run test:full
pnpm run test:full
- name: Lint
run: npm run lint
run: pnpm run lint
- name: Circular dependency check
uses: gerrit0/[email protected]
with:
Expand All @@ -40,16 +42,18 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: 22.4.1
- name: Set up pnpm
run: npm i -g pnpm@10
- name: Install
run: npm ci
run: pnpm install
- name: Build
run: |
node scripts/set_strict.js false
npm run build
pnpm run build
- name: Test
run: npm run test:full
run: pnpm run test:full
- name: Lint
run: npm run lint -- --max-warnings 0
run: pnpm run lint
build-windows:
runs-on: windows-latest
name: Node 18 Windows
Expand All @@ -60,13 +64,13 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: 18
- name: Upgrade npm
run: npm i -g npm@10
- name: Set up pnpm
run: npm i -g pnpm@10
- name: Install
run: npm ci
run: pnpm install
- name: Build
run: npm run build
run: pnpm run build
- name: Test
run: npm run test:full
run: pnpm run test:full
- name: Lint
run: npm run lint -- --max-warnings 0
run: pnpm run lint
10 changes: 5 additions & 5 deletions .github/workflows/publish-beta.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,20 +19,20 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: "18"
- name: Upgrade npm
- name: Setup pnpm
if: steps.check.outputs.changed == 'true' && contains(steps.check.outputs.version, 'beta')
run: npm i -g npm@latest
run: npm i -g pnpm@10
- name: Install
if: steps.check.outputs.changed == 'true' && contains(steps.check.outputs.version, 'beta')
run: npm ci
run: pnpm install
- name: Test
if: steps.check.outputs.changed == 'true' && contains(steps.check.outputs.version, 'beta')
run: npm test
run: pnpm test
- name: Setup publish token
if: steps.check.outputs.changed == 'true' && contains(steps.check.outputs.version, 'beta')
run: echo "//registry.npmjs.org/:_authToken=${NPM_AUTH_TOKEN}" > .npmrc
env:
NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
- name: Publish
if: steps.check.outputs.changed == 'true' && contains(steps.check.outputs.version, 'beta')
run: npm publish --tag beta
run: pnpm publish --tag beta --no-git-checks
Loading