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

Update v5 docs #384

Merged
merged 29 commits into from
May 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
e62220f
Configure API Extractor
colincasey Mar 17, 2024
11b0320
Document `getPublicSuffix`
colincasey Mar 17, 2024
b92c0e6
Document `canonicalDomain`
colincasey Mar 17, 2024
4bbf0ba
Document `pathMatch`
colincasey Mar 17, 2024
4a7d43c
Document `permuteDomain`
colincasey Mar 17, 2024
5e60a4d
Document `cookieCompare`
colincasey Mar 21, 2024
cb8576b
Document `defaultPath`
colincasey Mar 21, 2024
ab4a667
Document `domainMatch`
colincasey Mar 22, 2024
f5d163d
Document `formatDate`
colincasey Mar 23, 2024
bb3705c
Document `parseDate`
colincasey Mar 23, 2024
f951911
Document `version`
colincasey Mar 23, 2024
0ead8dc
Document `permutePath`
colincasey Mar 24, 2024
a39dcd9
Document `ParameterError`
colincasey Mar 25, 2024
780a92e
Document `CookieJar`
colincasey Mar 27, 2024
a4961f4
Update readme with examples and links to API
colincasey Apr 11, 2024
67a5039
Fix error message test
colincasey Apr 12, 2024
95bf733
Document `Store` and `MemoryStore`
colincasey Mar 29, 2024
9dc4d12
Update lib/memstore.ts
colincasey Apr 12, 2024
54da1dc
Add primary landing page
colincasey Apr 12, 2024
106ca28
Document `PrefixSecurity`
colincasey Mar 24, 2024
17b97b1
Revert `enum` type change for `PrefixSecurityEnum`
colincasey Apr 15, 2024
82d583b
Revert `enum` type change for `PrefixSecurityEnum`
colincasey Apr 15, 2024
668f058
Document `Cookie`
colincasey Mar 26, 2024
42b6466
Replace derived `CreateCookieOptions` with explicit type
colincasey Apr 22, 2024
cc5b199
Fix warnings and un-ignore the docs folder
colincasey Apr 22, 2024
412b955
GitHub Action changes for API and docs
colincasey Apr 11, 2024
ceeb9d7
Don't stop the unit test matrix on fail
colincasey Apr 23, 2024
eda7c11
Update README.md
colincasey May 3, 2024
7de2c49
Update lockfile
colincasey May 3, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@
"reportUnusedDisableDirectives": true,
"rules": {
"@typescript-eslint/explicit-function-return-type": "error",
"max-lines": ["warn", 500]
"max-lines": ["warn", 2000]
}
}
80 changes: 67 additions & 13 deletions .github/workflows/integration.yaml
Original file line number Diff line number Diff line change
@@ -1,28 +1,82 @@
name: Actions-CI
name: CI

on:
push:
branches: [master, v5]
branches: [master]
pull_request:
branches: [master, v5]

permissions:
contents: read

jobs:
build:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: lts/*
cache: npm
- name: Install dependencies
run: npm ci
- name: Run Linter
run: npm run eslint
- name: Run Formatter
run: npm run prettier

test:
name: Test - ${{ matrix.node-version }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
node-version: [latest, lts/*, lts/-1]

steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node.js (${{ matrix.node-version }})
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: npm
- name: Install dependencies and test
run: npm install
- run: npm test
- run: npm run eslint
- run: npm run prettier
- name: Install dependencies
run: npm ci
- name: Run tests
run: npm test

api:
name: API & Doc Validation
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: lts/*
cache: npm
- name: Install dependencies
run: npm ci
- name: Build
run: npm run build
- name: Extract API
run: npm run api:extract
- name: Generate docs
run: npm run api:docs
- name: Ensure API and doc changes have been committed
run: |
git add --renormalize .
if (( "$(git diff --ignore-space-at-eol --ignore-cr-at-eol | wc -l)" != 0 )); then
cat << EOF >> $GITHUB_STEP_SUMMARY
### Detected uncommitted changes

\`\`\`shell
$(git diff)
\`\`\`
EOF
git diff
exit 1
fi
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ coverage
.config
.bash_history
dist/
tmp/