Skip to content

Commit c5bb007

Browse files
committed
feat!: awaitable api
Signed-off-by: Lexus Drumgold <[email protected]>
1 parent dc11345 commit c5bb007

File tree

214 files changed

+10773
-9729
lines changed

Some content is hidden

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

214 files changed

+10773
-9729
lines changed

.codecov.yml

Lines changed: 26 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@
44
---
55
codecov:
66
notify:
7-
after_n_builds: 2
7+
after_n_builds: 7
88
wait_for_ci: true
99
require_ci_to_pass: true
1010

1111
comment:
12-
after_n_builds: 2
12+
after_n_builds: 7
1313
behavior: default
1414
layout: header,diff,flags,components,tree,footer
1515
require_base: false
@@ -24,6 +24,10 @@ component_management:
2424
- type: project
2525
target: 100%
2626
individual_components:
27+
- component_id: internal
28+
name: internal
29+
paths:
30+
- src/internal/*.mts
2731
- component_id: lib
2832
name: lib
2933
paths:
@@ -76,6 +80,18 @@ coverage:
7680
threshold: 0%
7781

7882
flags:
83+
bun-canary:
84+
carryforward: false
85+
paths:
86+
- src/
87+
bun-latest:
88+
carryforward: false
89+
paths:
90+
- src/
91+
node24:
92+
carryforward: false
93+
paths:
94+
- src/
7995
node23:
8096
carryforward: false
8197
paths:
@@ -84,6 +100,14 @@ flags:
84100
carryforward: false
85101
paths:
86102
- src/
103+
node21:
104+
carryforward: false
105+
paths:
106+
- src/
107+
node20:
108+
carryforward: false
109+
paths:
110+
- src/
87111

88112
github_checks:
89113
annotations: true

.dictionary.txt

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,19 @@
11
attw
22
cefc
3-
codecov
43
commitlintrc
54
dedupe
6-
dessant
75
devlop
8-
docast
9-
dohm
10-
dprint
6+
dirents
117
fbca
12-
ggshield
8+
fldv
139
gpgsign
1410
hmarr
1511
jchen
1612
kaisugi
1713
ksort
18-
lcov
1914
mkbuild
2015
nocase
2116
nvmrc
22-
pkgs
23-
preid
24-
remarkrc
25-
sarif
2617
shfmt
2718
unstub
2819
vates

.dprint.jsonc

Lines changed: 24 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"$schema": "https://dprint.dev/schemas/v0.json",
33
"excludes": [
4+
"!*.scratch.*",
45
"!scratch.*",
56
"**/*.patch",
67
"**/*.snap",
@@ -10,21 +11,19 @@
1011
".git/",
1112
".husky/_/",
1213
".yarn/",
14+
"node_modules/",
1315
"yarn.lock"
1416
],
1517
"exec": {
1618
"commands": [
1719
{
18-
"command": "node --experimental-strip-types --experimental-transform-types ./dprint/prettier.mts {{file_path}}",
19-
"exts": ["css", "html", "json5", "scss", "yaml", "yml"],
20-
"stdin": true
21-
},
22-
{
20+
"cacheKeyFiles": ["package.json"],
2321
"command": "node --experimental-strip-types --experimental-transform-types ./dprint/remark.mts {{file_path}}",
2422
"exts": ["md", "mdx"],
2523
"stdin": true
2624
},
2725
{
26+
"cacheKeyFiles": [".editorconfig"],
2827
"command": "node --experimental-strip-types --experimental-transform-types ./dprint/shfmt.mts {{file_path}}",
2928
"exts": ["sh", "zsh"],
3029
"fileNames": [
@@ -61,9 +60,10 @@
6160
"lineWidth": 80,
6261
"newLineKind": "lf",
6362
"plugins": [
64-
"https://plugins.dprint.dev/typescript-0.91.6.wasm",
65-
"https://plugins.dprint.dev/json-0.19.3.wasm",
66-
"https://plugins.dprint.dev/exec-0.5.0.json@8d9972eee71fa1590e04873540421f3eda7674d0f1aae3d7c788615e7b7413d0"
63+
"https://plugins.dprint.dev/typescript-0.95.12.wasm",
64+
"https://plugins.dprint.dev/json-0.21.0.wasm",
65+
"https://plugins.dprint.dev/g-plane/pretty_yaml-v0.5.1.wasm",
66+
"https://plugins.dprint.dev/exec-0.6.0.json@a054130d458f124f9b5c91484833828950723a5af3f8ff2bd1523bd47b83b364"
6767
],
6868
"typescript": {
6969
"arrowFunction.useParentheses": "preferNone",
@@ -129,5 +129,20 @@
129129
"useBraces": "maintain",
130130
"whileStatement.spaceAfterWhileKeyword": true
131131
},
132-
"useTabs": false
132+
"useTabs": false,
133+
"yaml": {
134+
"braceSpacing": false,
135+
"bracketSpacing": false,
136+
"flowMap.preferSingleLine": false,
137+
"flowSequence.preferSingleLine": false,
138+
"formatComments": true,
139+
"ignoreCommentDirective": "dprint-ignore",
140+
"indentBlockSequenceInMap": true,
141+
"lineBreak": "lf",
142+
"printWidth": 100,
143+
"quotes": "preferSingle",
144+
"trailingComma": false,
145+
"trimTrailingWhitespaces": true,
146+
"trimTrailingZero": false
147+
}
133148
}

.env.zsh

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,3 @@
88
[ -f $PWD/.env.repo ] && source $PWD/.env.repo
99
[ -f $PWD/.env.vars ] && source $PWD/.env.vars
1010
HOMEBREW_BREWFILE=./Brewfile
11-
NODE_NO_WARNINGS=1
12-
NODE_OPTIONS='--experimental-strip-types --experimental-transform-types'

.gitattributes

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,22 +18,15 @@
1818
# ------------------------------------------------------------------------------
1919
# TEXT FILE ATTRIBUTES
2020
# ------------------------------------------------------------------------------
21-
*.cjs text eol=lf
22-
*.cts text eol=lf
23-
*.gql text eol=lf
24-
*.html text eol=lf diff=html
25-
*.js text eol=lf
2621
*.json text eol=lf linguist-language=JSON-with-Comments
2722
*.json5 text eol=lf
28-
*.jsonc text eol=lf
29-
*.jsx text eol=lf
23+
*.jsonc text eol=lf linguist-language=JSON-with-Comments
3024
*.md text eol=lf diff=markdown
3125
*.mjs text eol=lf
3226
*.mts text eol=lf
3327
*.sh text eol=lf
3428
*.snap text eol=lf
3529
*.ts text eol=lf
36-
*.tsx text eol=lf
3730
*.txt text eol=lf
3831
*.yml text eol=lf
3932

.github/dependabot.yml

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,6 @@
66

77
---
88
version: 2
9-
registries:
10-
github:
11-
token: ${{ secrets.GH_REGISTRY_TOKEN }}
12-
type: npm-registry
13-
url: https://npm.pkg.github.com
149
updates:
1510
- package-ecosystem: github-actions
1611
commit-message:
@@ -31,31 +26,19 @@ updates:
3126
commitlint:
3227
patterns:
3328
- '@commitlint/*'
34-
eslint:
35-
patterns:
36-
- '@eslint/js'
37-
- '@types/eslint'
38-
- '@types/eslint__js'
39-
- eslint
4029
flex-development:
4130
patterns:
4231
- '@flex-development/*'
4332
remark:
4433
patterns:
4534
- 'remark-*'
4635
- remark
47-
typescript-eslint:
48-
patterns:
49-
- '@typescript-eslint/*'
50-
- typescript-eslint
5136
vitest:
5237
patterns:
5338
- '@vitest/*'
5439
- vitest
5540
labels:
5641
- scope:dependencies
5742
- type:build
58-
registries:
59-
- github
6043
schedule:
6144
interval: daily

.github/infrastructure.yml

Lines changed: 24 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -22,20 +22,27 @@ branches:
2222
required_status_checks:
2323
checks:
2424
- context: add-to-project
25+
- context: artifacts
2526
- context: auto-merge
2627
- context: auto-review
27-
- context: build
28-
- context: changelog
28+
- context: codecov/changes
29+
- context: codecov/patch
30+
- context: codecov/project
31+
- context: codecov/project/internal
32+
- context: codecov/project/lib
2933
- context: commitlint
3034
- context: dependabot-dedupe
3135
- context: format
32-
- context: gitguardian
3336
- context: lint
3437
- context: spelling
35-
- context: test (22)
38+
- context: test (24)
3639
- context: test (23)
37-
- context: typescript (5.6.3)
38-
- context: typescript (5.7.2)
40+
- context: test (22)
41+
- context: test (21)
42+
- context: test (20)
43+
- context: test-bun (canary)
44+
- context: test-bun (latest)
45+
- context: typescript
3946
strict: true
4047
restrictions: null
4148
environments:
@@ -136,11 +143,17 @@ labels:
136143
- name: type:docs
137144
description: documentation improvements
138145
color: 0052cc
146+
- name: type:bug
147+
description: bug reports
148+
color: 0052cc
149+
- name: type:epic
150+
description: epics
151+
color: 0052cc
139152
- name: type:feat
140-
description: new features and improvements
153+
description: new features
141154
color: 0052cc
142155
- name: type:fix
143-
description: bug reports and fixes
156+
description: bug fixes
144157
color: 0052cc
145158
- name: type:perf
146159
description: performance updates
@@ -151,6 +164,9 @@ labels:
151164
- name: type:refactor
152165
description: code improvements
153166
color: 0052cc
167+
- name: type:story
168+
description: user stories
169+
color: 0052cc
154170
- name: type:task
155171
description: project tasks
156172
color: 0052cc
@@ -171,11 +187,6 @@ repository:
171187
homepage: https://github.com/flex-development/tsconfig-utils
172188
is_template: false
173189
private: false
174-
security_and_analysis:
175-
secret_scanning:
176-
status: enabled
177-
secret_scanning_push_protection:
178-
status: disabled
179190
squash_merge_commit_message: BLANK
180191
squash_merge_commit_title: PR_TITLE
181192
topics:

.github/workflows/add-to-project.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,13 @@ jobs:
3737
with:
3838
app-id: ${{ secrets.BOT_APP_ID }}
3939
private-key: ${{ secrets.BOT_PRIVATE_KEY }}
40+
- id: url
41+
name: Get project url
42+
run: |
43+
echo "result=$(echo "${{ github.server_url }}/orgs/${{ github.repository_owner }}/projects/${{ vars.GH_PROJECT_NUMBER }}" | xargs)" >>$GITHUB_OUTPUT
4044
- id: add-item
4145
name: Add ${{ format('#{0}', github.event.number) }} to project
4246
uses: actions/[email protected]
4347
with:
4448
github-token: ${{ steps.bot-token.outputs.token }}
45-
project-url: |
46-
${{ format('{0}/orgs/{1}/projects/{2}', github.server_url, github.repository_owner, vars.GH_PROJECT_NUMBER) }}
49+
project-url: ${{ steps.url.outputs.result }}

.github/workflows/auto-merge.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,16 @@
1818

1919
---
2020
name: auto-merge
21-
on: pull_request
21+
on:
22+
pull_request:
23+
types:
24+
- opened
25+
- ready_for_review
26+
- reopened
27+
- synchronize
2228
jobs:
2329
auto-merge:
24-
if: github.event.pull_request.auto_merge == null && !github.event.pull_request.draft
30+
if: ${{ !github.event.pull_request.draft }}
2531
runs-on: ubuntu-latest
2632
steps:
2733
- id: debug

.github/workflows/auto-review.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,13 @@
2020

2121
---
2222
name: auto-review
23-
on: pull_request
23+
on:
24+
pull_request:
25+
types:
26+
- opened
27+
- ready_for_review
28+
- reopened
29+
- synchronize
2430
concurrency:
2531
cancel-in-progress: true
2632
group: ${{ github.workflow }}-${{ github.ref }}
@@ -46,7 +52,8 @@ jobs:
4652
run: |
4753
GITHUB_TOKEN=
4854
49-
if [[ $GITHUB_ACTOR == 'flex-development[bot]' ]]; then
55+
if [[ $GITHUB_ACTOR == '${{ vars.BOT_NAME }}' ]]; then
56+
# bots cannot approve their own pull request.
5057
GITHUB_TOKEN=${{ secrets.GH_REPO_TOKEN }}
5158
else
5259
GITHUB_TOKEN=${{ steps.bot-token.outputs.token }}

0 commit comments

Comments
 (0)