Skip to content

Commit 81f94d5

Browse files
authored
Merge branch 'redis:master' into patch-1
2 parents a42b7fb + 2f10632 commit 81f94d5

File tree

1,307 files changed

+73195
-39887
lines changed

Some content is hidden

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

1,307 files changed

+73195
-39887
lines changed

.github/release-drafter/graph-config.yml renamed to .github/release-drafter-base.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
name-template: 'graph@$NEXT_PATCH_VERSION'
2-
tag-template: 'graph@$NEXT_PATCH_VERSION'
1+
name-template: 'json@$NEXT_PATCH_VERSION'
2+
tag-template: 'json@$NEXT_PATCH_VERSION'
33
autolabeler:
44
- label: 'chore'
55
files:
@@ -33,9 +33,10 @@ categories:
3333
- 'maintenance'
3434
- 'documentation'
3535
- 'docs'
36+
3637
change-template: '- $TITLE (#$NUMBER)'
3738
include-paths:
38-
- 'packages/graph'
39+
- 'packages/json'
3940
exclude-labels:
4041
- 'skip-changelog'
4142
template: |
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
name-template: 'entraid@$NEXT_PATCH_VERSION'
2+
tag-template: 'entraid@$NEXT_PATCH_VERSION'
3+
autolabeler:
4+
- label: 'chore'
5+
files:
6+
- '*.md'
7+
- '.github/*'
8+
- label: 'bug'
9+
branch:
10+
- '/bug-.+'
11+
- label: 'chore'
12+
branch:
13+
- '/chore-.+'
14+
- label: 'feature'
15+
branch:
16+
- '/feature-.+'
17+
categories:
18+
- title: 'Breaking Changes'
19+
labels:
20+
- 'breakingchange'
21+
- title: '🚀 New Features'
22+
labels:
23+
- 'feature'
24+
- 'enhancement'
25+
- title: '🐛 Bug Fixes'
26+
labels:
27+
- 'fix'
28+
- 'bugfix'
29+
- 'bug'
30+
- title: '🧰 Maintenance'
31+
label:
32+
- 'chore'
33+
- 'maintenance'
34+
- 'documentation'
35+
- 'docs'
36+
37+
change-template: '- $TITLE (#$NUMBER)'
38+
include-paths:
39+
- 'packages/entraid'
40+
exclude-labels:
41+
- 'skip-changelog'
42+
template: |
43+
## Changes
44+
45+
$CHANGES
46+
47+
## Contributors
48+
We'd like to thank all the contributors who worked on this release!
49+
50+
$CONTRIBUTORS

.github/workflows/documentation.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@ jobs:
1717
uses: actions/setup-node@v3
1818
- name: Install Packages
1919
run: npm ci
20-
- name: Build tests tools
21-
run: npm run build:tests-tools
2220
- name: Generate Documentation
2321
run: npm run documentation
2422
- name: Upload

.github/workflows/release-drafter-graph.yml renamed to .github/workflows/release-drafter-entraid.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,6 @@ jobs:
1919
- uses: release-drafter/release-drafter@v5
2020
with:
2121
# (Optional) specify config name to use, relative to .github/. Default: release-drafter.yml
22-
config-name: release-drafter/graph-config.yml
22+
config-name: release-drafter/entraid-config.yml
2323
env:
2424
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/release.yml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
name: Release
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
version:
7+
description: 'Version to release ("major", "minor", "patch", or "pre*" version; or specify version like "5.3.3")'
8+
required: true
9+
type: string
10+
args:
11+
description: 'Additional arguments to pass to release-it (e.g. "--dry-run"). See docs: https://github.com/release-it/release-it/blob/main/docs/git.md#configuration-options'
12+
required: false
13+
type: string
14+
15+
jobs:
16+
release:
17+
runs-on: ubuntu-latest
18+
permissions:
19+
contents: write
20+
packages: write
21+
steps:
22+
- name: Checkout code
23+
uses: actions/checkout@v4
24+
with:
25+
fetch-depth: 0
26+
ssh-key: ${{ secrets.RELEASE_KEY }}
27+
28+
- name: Setup Node.js
29+
uses: actions/setup-node@v4
30+
with:
31+
node-version: '22'
32+
registry-url: 'https://registry.npmjs.org'
33+
34+
- name: Install dependencies
35+
run: npm ci
36+
37+
- name: Configure Git
38+
run: |
39+
git config --local user.email "[email protected]"
40+
git config --local user.name "GitHub Action"
41+
42+
# Build all packages
43+
- name: Build packages
44+
run: npm run build
45+
46+
# Release using the monorepo approach
47+
- name: Release packages
48+
run: npm run release -- --ci -i ${{ github.event.inputs.version }} ${{ github.event.inputs.args }}
49+
env:
50+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
51+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/stale-issues.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: "Close stale issues"
2+
on:
3+
schedule:
4+
- cron: "0 0 * * *"
5+
6+
permissions: {}
7+
jobs:
8+
stale:
9+
permissions:
10+
issues: write # to close stale issues (actions/stale)
11+
pull-requests: write # to close stale PRs (actions/stale)
12+
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/stale@v9
16+
with:
17+
repo-token: ${{ secrets.GITHUB_TOKEN }}
18+
stale-issue-message: 'This issue is marked stale. It will be closed in 30 days if it is not updated.'
19+
stale-pr-message: 'This pull request is marked stale. It will be closed in 30 days if it is not updated.'
20+
days-before-stale: 365
21+
days-before-close: 30
22+
stale-issue-label: "Stale"
23+
stale-pr-label: "Stale"
24+
operations-per-run: 10
25+
remove-stale-when-updated: true

.github/workflows/tests.yml

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,36 +5,41 @@ on:
55
branches:
66
- master
77
- v4.0
8+
- v5
9+
paths-ignore:
10+
- "**/*.md"
811
pull_request:
912
branches:
1013
- master
1114
- v4.0
12-
15+
- v5
16+
paths-ignore:
17+
- "**/*.md"
1318
jobs:
1419
tests:
1520
runs-on: ubuntu-latest
1621
strategy:
1722
fail-fast: false
1823
matrix:
19-
node-version: ['18', '20']
20-
redis-version: ['5', '6.0', '6.2', '7.0', '7.2', '7.4-rc2']
24+
node-version: ["18", "20", "22"]
25+
redis-version: ["rs-7.4.0-v1", "8.0.2", "8.2"]
2126
steps:
2227
- uses: actions/checkout@v4
2328
with:
2429
fetch-depth: 1
2530
- name: Use Node.js ${{ matrix.node-version }}
26-
uses: actions/setup-node@v3
31+
uses: actions/setup-node@v4
2732
with:
2833
node-version: ${{ matrix.node-version }}
2934
- name: Update npm
3035
run: npm i -g npm
3136
if: ${{ matrix.node-version <= 14 }}
3237
- name: Install Packages
3338
run: npm ci
34-
- name: Build tests tools
35-
run: npm run build:tests-tools
39+
- name: Build
40+
run: npm run build
3641
- name: Run Tests
37-
run: npm run test -- -- --forbid-only --redis-version=${{ matrix.redis-version }}
42+
run: npm run test -ws --if-present -- --forbid-only --redis-version=${{ matrix.redis-version }}
3843
- name: Upload to Codecov
3944
run: |
4045
curl https://keybase.io/codecovsecurity/pgp_keys.asc | gpg --no-default-keyring --keyring trustedkeys.gpg --import

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@ node_modules/
77
.DS_Store
88
dump.rdb
99
documentation/
10+
tsconfig.tsbuildinfo

.npmignore

Lines changed: 0 additions & 12 deletions
This file was deleted.

.release-it.json

Lines changed: 0 additions & 7 deletions
This file was deleted.

0 commit comments

Comments
 (0)