Skip to content

Commit 5b3da08

Browse files
authored
Merge pull request #36 from rudderlabs/release/4.0.2
chore(release): pull release/4.0.2 into main
2 parents 36294cd + 608aa41 commit 5b3da08

24 files changed

+4719
-3423
lines changed

.eslintrc.json

+6-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,12 @@
44
"es2020": true,
55
"jest": true
66
},
7-
"extends": ["airbnb-base", "plugin:sonarjs/recommended", "prettier", "plugin:compat/recommended"],
7+
"extends": [
8+
"airbnb-base",
9+
"plugin:sonarjs/recommended-legacy",
10+
"prettier",
11+
"plugin:compat/recommended"
12+
],
813
"plugins": ["unicorn", "compat"],
914
"parser": "@babel/eslint-parser",
1015
"globals": {},

.github/ISSUE_TEMPLATE/bug_report.md

+10-9
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
---
22
name: Bug report
33
about: Create a report to help us improve
4-
title: "[ISSUE]"
4+
title: '[ISSUE]'
55
labels: bug
66
assignees: ''
7-
87
---
98

109
**Describe the issue**
@@ -25,15 +24,17 @@ A clear and concise description of what you expected to happen.
2524
If applicable, add screenshots to help explain your problem.
2625

2726
**Desktop (please complete the following information):**
28-
- OS: [e.g. iOS]
29-
- Browser [e.g. chrome, safari]
30-
- Version [e.g. 22]
27+
28+
- OS: [e.g. iOS]
29+
- Browser [e.g. chrome, safari]
30+
- Version [e.g. 22]
3131

3232
**Smartphone (please complete the following information):**
33-
- Device: [e.g. iPhone6]
34-
- OS: [e.g. iOS8.1]
35-
- Browser [e.g. stock browser, safari]
36-
- Version [e.g. 22]
33+
34+
- Device: [e.g. iPhone6]
35+
- OS: [e.g. iOS8.1]
36+
- Browser [e.g. stock browser, safari]
37+
- Version [e.g. 22]
3738

3839
**Additional context**
3940
Add any other context about the problem here.

.github/ISSUE_TEMPLATE/feature-request.md

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
---
22
name: Feature Request
33
about: Suggest an idea for this project
4-
title: "[ENHANCEMENT]"
4+
title: '[ENHANCEMENT]'
55
labels: enhancement
66
assignees: ''
7-
87
---
98

109
**Is your feature request related to a problem? Please describe.**

.github/dependabot.yml

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: 'github-actions'
4+
directory: '/'
5+
schedule:
6+
interval: 'weekly'

.github/pull_request_template.md

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
1-
**Fixes** # (*issue*)
1+
**Fixes** # (_issue_)
22

33
## Type of change
4+
45
- [ ] Bug fix (non-breaking change which fixes an issue)
56
- [ ] New feature (non-breaking change which adds functionality)
67
- [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
78
- [ ] This change requires a documentation update
9+
810
## Checklist:
11+
912
- [ ] My code follows the style guidelines of this project
1013
- [ ] I have performed a self-review of my own code
1114
- [ ] I have commented my code, particularly in hard-to-understand areas

.github/workflows/build-and-quality-checks.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ jobs:
1212

1313
steps:
1414
- name: Checkout
15-
uses: actions/checkout@v3
15+
uses: actions/checkout@v4
1616

1717
- name: Setup Node
18-
uses: actions/setup-node@v3
18+
uses: actions/setup-node@v4
1919
with:
2020
node-version-file: '.nvmrc'
2121
cache: 'npm'

.github/workflows/check_pr_title.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
runs-on: ubuntu-latest
1212
steps:
1313
- name: Checkout source branch
14-
uses: actions/checkout@v3
14+
uses: actions/checkout@v4
1515

1616
- name: Check PR title
17-
uses: rudderlabs/[email protected].7
17+
uses: rudderlabs/[email protected].11

.github/workflows/codeql-analysis.yml

-70
This file was deleted.

.github/workflows/create-hotfix-branch.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
if: github.ref == 'refs/heads/main'
1515
steps:
1616
- name: Create branch
17-
uses: peterjgrainger/action-create-branch@v2.4.0
17+
uses: peterjgrainger/action-create-branch@v3.0.0
1818
env:
1919
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2020
with:

.github/workflows/deploy-npm.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ jobs:
1919
if: (startsWith(github.ref, 'refs/tags/v') || startsWith(github.ref, 'refs/heads/main')) || ((startsWith(github.event.pull_request.head.ref, 'release/') || startsWith(github.event.pull_request.head.ref, 'hotfix-release/')) && github.event.pull_request.merged == true) # only merged pull requests must trigger this job
2020
steps:
2121
- name: Checkout source branch
22-
uses: actions/checkout@v3
22+
uses: actions/checkout@v4
2323

2424
- name: Setup Node
25-
uses: actions/setup-node@v3
25+
uses: actions/setup-node@v4
2626
with:
2727
node-version-file: '.nvmrc'
2828
cache: 'npm'
@@ -51,11 +51,11 @@ jobs:
5151
5252
- name: Send message to Slack channel
5353
id: slack
54-
uses: slackapi/slack-github-action@v1.23.0
54+
uses: slackapi/slack-github-action@v1.27.0
5555
env:
5656
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
57-
PROJECT_NAME: 'Gatsby Plugin Rudderstack'
58-
NPM_PACKAGE_URL: 'https://www.npmjs.com/package/rudder-sdk-js'
57+
PROJECT_NAME: 'Gatsby Plugin'
58+
NPM_PACKAGE_URL: 'https://www.npmjs.com/package/gatsby-plugin-rudderstack'
5959
with:
6060
channel-id: ${{ secrets.SLACK_RELEASE_CHANNEL_ID }}
6161
payload: |

.github/workflows/draft-new-release.yml

+3-4
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@ jobs:
1010
if: startsWith(github.ref, 'refs/heads/develop') || startsWith(github.ref, 'refs/heads/hotfix/')
1111
steps:
1212
- name: Checkout source branch
13-
uses: actions/checkout@v3
13+
uses: actions/checkout@v4
1414
with:
1515
fetch-depth: 0
1616

1717
- name: Setup Node
18-
uses: actions/setup-node@v3
18+
uses: actions/setup-node@v4
1919
with:
2020
node-version-file: '.nvmrc'
2121
cache: 'npm'
@@ -81,6 +81,5 @@ jobs:
8181
source_branch: ${{ steps.create-release.outputs.branch_name }}
8282
destination_branch: 'main'
8383
github_token: ${{ secrets.PAT }}
84-
pr_title: 'chore(release): pulling ${{ steps.create-release.outputs.branch_name }} into main'
84+
pr_title: 'chore(release): pull ${{ steps.create-release.outputs.branch_name }} into main'
8585
pr_body: ':crown: *An automated PR*'
86-
pr_reviewer: 'rudderlabs/js-sdk'

.github/workflows/housekeeping.yaml

+5-4
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
pull-requests: write
1515

1616
steps:
17-
- uses: actions/stale@v6
17+
- uses: actions/stale@v9
1818
with:
1919
repo-token: ${{ github.token }}
2020
operations-per-run: 200
@@ -28,13 +28,14 @@ jobs:
2828
runs-on: ubuntu-latest
2929
steps:
3030
- name: Checkout repository
31-
uses: actions/checkout@v2
31+
uses: actions/checkout@v4
32+
3233
- name: Run delete-old-branches-action
33-
uses: beatlabs/[email protected].9
34+
uses: beatlabs/[email protected].10
3435
with:
3536
repo_token: ${{ github.token }}
3637
date: '2 months ago'
3738
dry_run: false
3839
delete_tags: false
39-
extra_protected_branch_regex: ^(main|master|develop)$
40+
extra_protected_branch_regex: ^(main|develop)$
4041
exclude_open_pr_branches: true

.github/workflows/publish-new-release.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,12 @@ jobs:
2323
echo "release_version=$VERSION" >> $GITHUB_OUTPUT
2424
2525
- name: Checkout
26-
uses: actions/checkout@v3
26+
uses: actions/checkout@v4
2727
with:
2828
fetch-depth: 0
2929

3030
- name: Setup Node
31-
uses: actions/setup-node@v3
31+
uses: actions/setup-node@v4
3232
with:
3333
node-version-file: '.nvmrc'
3434
cache: 'npm'
@@ -58,7 +58,7 @@ jobs:
5858
source_branch: 'main'
5959
destination_branch: 'develop'
6060
github_token: ${{ secrets.PAT }}
61-
pr_title: 'chore(release): pulling main into develop post release v${{ steps.extract-version.outputs.release_version }}'
61+
pr_title: 'chore(release): pull main into develop post release v${{ steps.extract-version.outputs.release_version }}'
6262
pr_body: ':crown: *An automated PR*'
6363
pr_reviewer: 'rudderlabs/js-sdk'
6464

@@ -80,7 +80,7 @@ jobs:
8080

8181
- name: Send message to Slack channel
8282
id: slack
83-
uses: slackapi/slack-github-action@v1.23.0
83+
uses: slackapi/slack-github-action@v1.27.0
8484
env:
8585
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
8686
PROJECT_NAME: 'Gatsby Rudderstack Plugin'

.github/workflows/test.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@ jobs:
1515

1616
steps:
1717
- name: Checkout
18-
uses: actions/checkout@v3
18+
uses: actions/checkout@v4
1919
with:
2020
fetch-depth: 0
2121

2222
- name: Setup Node
23-
uses: actions/setup-node@v3
23+
uses: actions/setup-node@v4
2424
with:
2525
node-version-file: '.nvmrc'
2626
cache: 'npm'

.husky/commit-msg

-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1 @@
1-
#!/usr/bin/env sh
2-
. "$(dirname -- "$0")/_/husky.sh"
3-
41
npm run commit-msg

.husky/pre-commit

-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1 @@
1-
#!/usr/bin/env sh
2-
. "$(dirname -- "$0")/_/husky.sh"
3-
41
npm run pre-commit

.nvmrc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
18.17.1
1+
22.9.0

CHANGELOG.md

+7
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,13 @@
22

33
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
44

5+
### [4.0.2](https://github.com/rudderlabs/gatsby-plugin-rudderstack/compare/v4.0.1...v4.0.2) (2024-10-09)
6+
7+
8+
### Bug Fixes
9+
10+
* update js sdk loading snippet to latest version ([#35](https://github.com/rudderlabs/gatsby-plugin-rudderstack/issues/35)) ([7aa3d58](https://github.com/rudderlabs/gatsby-plugin-rudderstack/commit/7aa3d586e2d9a569a9609d7025ba6f7c6e3ba266))
11+
512
## [4.0.1](https://github.com/rudderlabs/gatsby-plugin-rudderstack/compare/v4.0.0...v4.0.1) (2024-03-29)
613

714
### Bug Fixes

CODE_OF_CONDUCT.md

+13-14
Original file line numberDiff line numberDiff line change
@@ -14,22 +14,22 @@ appearance, race, religion, or sexual identity and orientation.
1414
Examples of behavior that contributes to creating a positive environment
1515
include:
1616

17-
* Using welcoming and inclusive language
18-
* Being respectful of differing viewpoints and experiences
19-
* Gracefully accepting constructive criticism
20-
* Focusing on what is best for the community
21-
* Showing empathy towards other community members
17+
- Using welcoming and inclusive language
18+
- Being respectful of differing viewpoints and experiences
19+
- Gracefully accepting constructive criticism
20+
- Focusing on what is best for the community
21+
- Showing empathy towards other community members
2222

2323
Examples of unacceptable behavior by participants include:
2424

25-
* The use of sexualized language or imagery and unwelcome sexual attention or
26-
advances
27-
* Trolling, insulting/derogatory comments, and personal or political attacks
28-
* Public or private harassment
29-
* Publishing others' private information, such as a physical or electronic
30-
address, without explicit permission
31-
* Other conduct which could reasonably be considered inappropriate in a
32-
professional setting
25+
- The use of sexualized language or imagery and unwelcome sexual attention or
26+
advances
27+
- Trolling, insulting/derogatory comments, and personal or political attacks
28+
- Public or private harassment
29+
- Publishing others' private information, such as a physical or electronic
30+
address, without explicit permission
31+
- Other conduct which could reasonably be considered inappropriate in a
32+
professional setting
3333

3434
## Our Responsibilities
3535

@@ -72,7 +72,6 @@ available at [https://www.contributor-covenant.org][contributor-covenant].
7272

7373
For answers to common questions about this code of conduct, see the [FAQs][faqs].
7474

75-
7675
<!-----variables---->
7776

7877
[homepage]: https://www.contributor-covenant.org

gatsby-node.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
exports.onPreInit = () => console.log("Loaded gatsby-plugin-rudderstack");
1+
// eslint-disable-next-line no-console
2+
exports.onPreInit = () => console.log('Loaded gatsby-plugin-rudderstack');

0 commit comments

Comments
 (0)