gatsby-plugin-newrelic 2.0.0 → 2.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/workflows/release.yml +3 -3
- package/CONTRIBUTING.md +13 -0
- package/README.md +5 -6
- package/THIRD_PARTY_NOTICES.md +4 -4
- package/docs/CHANGELOG.md +41 -0
- package/package.json +5 -5
- package/third_party_manifest.json +32 -29
|
@@ -49,7 +49,7 @@ jobs:
|
|
|
49
49
|
- name: Setup Node.js
|
|
50
50
|
uses: actions/setup-node@v1
|
|
51
51
|
with:
|
|
52
|
-
node-version:
|
|
52
|
+
node-version: 16.x
|
|
53
53
|
|
|
54
54
|
- name: Cache node_modules
|
|
55
55
|
id: cache-node-modules
|
|
@@ -90,7 +90,7 @@ jobs:
|
|
|
90
90
|
- name: Setup Node.js
|
|
91
91
|
uses: actions/setup-node@v1
|
|
92
92
|
with:
|
|
93
|
-
node-version:
|
|
93
|
+
node-version: 16.x
|
|
94
94
|
|
|
95
95
|
- name: Download Cached Deps
|
|
96
96
|
id: cache-node-modules
|
|
@@ -211,7 +211,7 @@ jobs:
|
|
|
211
211
|
- name: Setup Node.js
|
|
212
212
|
uses: actions/setup-node@v1
|
|
213
213
|
with:
|
|
214
|
-
node-version:
|
|
214
|
+
node-version: 16.x
|
|
215
215
|
|
|
216
216
|
- name: Download Cached Deps
|
|
217
217
|
id: cache-node-modules
|
package/CONTRIBUTING.md
CHANGED
|
@@ -18,6 +18,19 @@ Before submitting an Issue, please search for similar ones in the
|
|
|
18
18
|
2. Increase the version numbers in any examples files and the README.md to the new version that this Pull Request would represent. The versioning scheme we use is [SemVer](http://semver.org/).
|
|
19
19
|
3. You may merge the Pull Request in once you have the sign-off of two other developers, or if you do not have permission to do that, you may request the second reviewer to merge it for you.
|
|
20
20
|
|
|
21
|
+
## Publishing next versions to NPM
|
|
22
|
+
|
|
23
|
+
A [Github workflow](https://github.com/newrelic/gatsby-plugin-newrelic/blob/main/.github/workflows/release.yml) which uses NPX [semantic-release](https://semantic-release.gitbook.io/semantic-release/usage/configuration#branches) exists to assist in publishing next versions of this plugin to NPM.
|
|
24
|
+
|
|
25
|
+
> If you wish to publish a next version to NPM follow these steps.
|
|
26
|
+
|
|
27
|
+
1. Make your changes on a local branch from main.
|
|
28
|
+
2. After pulling down the code, run `git fetch && git pull` to ensure you have the latest code for main.
|
|
29
|
+
3. Commit your changes and submit a PR to the `next` branch.
|
|
30
|
+
4. Ensure that you [bump the version of the package](https://cloudfour.com/thinks/how-to-publish-an-updated-version-of-an-npm-package/#the-standard-release-process) by using semantic versioning using the `NPM version` command.
|
|
31
|
+
5. This will kick off the workflow to publish a next version to NPM.
|
|
32
|
+
6. Go to [NPM](https://www.npmjs.com/package/gatsby-plugin-newrelic) to view the next branch.
|
|
33
|
+
|
|
21
34
|
## Contributor License Agreement
|
|
22
35
|
|
|
23
36
|
Keep in mind that when you submit your Pull Request, you'll need to sign the CLA via the click-through using CLA-Assistant. If you'd like to execute our corporate CLA, or if you have any questions, please drop us an email at opensource@newrelic.com.
|
package/README.md
CHANGED
|
@@ -8,12 +8,12 @@ The New Relic Gatsby Plugin provides a simple to use configuration option for in
|
|
|
8
8
|
|
|
9
9
|
## Installation
|
|
10
10
|
|
|
11
|
-
1. If you don't already have a New Relic account, [sign-up for our free forever tier - no credit-card required!](https://
|
|
12
|
-
1. Go to [https://
|
|
13
|
-
1.
|
|
14
|
-
1.
|
|
11
|
+
1. If you don't already have a New Relic account, [sign-up for our free forever tier - no credit-card required!](https://trynewrelic.com/gatsby)
|
|
12
|
+
1. Go to [https://one.newrelic.com](https://one.newrelic.com)
|
|
13
|
+
1. Click on "Add more data" to add your website
|
|
14
|
+
1. In the "Browser metrics" section, select "New Relic Browser"
|
|
15
15
|
1. Select "Copy/Paste Javascript code" and copy the code
|
|
16
|
-
1.
|
|
16
|
+
1. Follow the steps to configure your instrumentation
|
|
17
17
|
1. Enter your app name
|
|
18
18
|
1. Click "Enable"
|
|
19
19
|
1. Paste the JS snippet provided into a text editor
|
|
@@ -87,7 +87,6 @@ The New Relic Gatsby Plugin provides a simple to use configuration option for in
|
|
|
87
87
|
}
|
|
88
88
|
```
|
|
89
89
|
|
|
90
|
-
Note - `instrumentationType` can be `lite`, `pro`, `proAndSPA`, corresponding with levels of our browser agent.
|
|
91
90
|
|
|
92
91
|
1. Set the `GATSBY_NEWRELIC_ENV` to point at the appropriate config. For local dev you would add `GATSBY_NEWRELIC_ENV=dev` to the front of your "develop" script in your project's `package.json`. For "production" you would add `GATSBY_NEWRELIC_ENV=production` to the front of the Gatsby "build" command.
|
|
93
92
|
Ex. `package.json`:
|
package/THIRD_PARTY_NOTICES.md
CHANGED
|
@@ -32,7 +32,7 @@ code, the source code can be found at [https://github.com/newrelic/gatsby-plugin
|
|
|
32
32
|
|
|
33
33
|
### @babel/runtime
|
|
34
34
|
|
|
35
|
-
This product includes source derived from [@babel/runtime](https://github.com/babel/babel) ([v7.
|
|
35
|
+
This product includes source derived from [@babel/runtime](https://github.com/babel/babel) ([v7.16.7](https://github.com/babel/babel/tree/v7.16.7)), distributed under the [MIT License](https://github.com/babel/babel/blob/v7.16.7/LICENSE):
|
|
36
36
|
|
|
37
37
|
```
|
|
38
38
|
MIT License
|
|
@@ -65,7 +65,7 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
|
65
65
|
|
|
66
66
|
### @babel/cli
|
|
67
67
|
|
|
68
|
-
This product includes source derived from [@babel/cli](https://github.com/babel/babel
|
|
68
|
+
This product includes source derived from [@babel/cli](https://github.com/babel/babel) ([v7.14.8](https://github.com/babel/babel/tree/v7.14.8)), distributed under the [MIT License](https://github.com/babel/babel/blob/v7.14.8/LICENSE):
|
|
69
69
|
|
|
70
70
|
```
|
|
71
71
|
MIT License
|
|
@@ -95,7 +95,7 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
|
95
95
|
|
|
96
96
|
### @babel/core
|
|
97
97
|
|
|
98
|
-
This product includes source derived from [@babel/core](https://github.com/babel/babel
|
|
98
|
+
This product includes source derived from [@babel/core](https://github.com/babel/babel) ([v7.16.7](https://github.com/babel/babel/tree/v7.16.7)), distributed under the [MIT License](https://github.com/babel/babel/blob/v7.16.7/LICENSE):
|
|
99
99
|
|
|
100
100
|
```
|
|
101
101
|
MIT License
|
|
@@ -125,7 +125,7 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
|
125
125
|
|
|
126
126
|
### @babel/plugin-proposal-private-methods
|
|
127
127
|
|
|
128
|
-
This product includes source derived from [@babel/plugin-proposal-private-methods](https://github.com/babel/babel
|
|
128
|
+
This product includes source derived from [@babel/plugin-proposal-private-methods](https://github.com/babel/babel) ([v7.16.7](https://github.com/babel/babel/tree/v7.16.7)), distributed under the [MIT License](https://github.com/babel/babel/blob/v7.16.7/LICENSE):
|
|
129
129
|
|
|
130
130
|
```
|
|
131
131
|
MIT License
|
package/docs/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,44 @@
|
|
|
1
|
+
# [2.2.0](https://github.com/newrelic/gatsby-plugin-newrelic/compare/v2.1.1...v2.2.0) (2022-01-14)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* Update package.json ([055d741](https://github.com/newrelic/gatsby-plugin-newrelic/commit/055d741013585b1cec6d6f5441104cfca8170ff5))
|
|
7
|
+
|
|
8
|
+
## [2.1.1](https://github.com/newrelic/gatsby-plugin-newrelic/compare/v2.1.0...v2.1.1) (2022-01-10)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* updated contributing guide ([af6aa1c](https://github.com/newrelic/gatsby-plugin-newrelic/commit/af6aa1c48603a36641099b7ab6c2612e31fa11bc))
|
|
14
|
+
|
|
15
|
+
# [2.1.0](https://github.com/newrelic/gatsby-plugin-newrelic/compare/v2.0.2...v2.1.0) (2022-01-06)
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
### Bug Fixes
|
|
19
|
+
|
|
20
|
+
* bumped the node version ([bc7f7ee](https://github.com/newrelic/gatsby-plugin-newrelic/commit/bc7f7ee43f68a07a6381fded83195786783399a6))
|
|
21
|
+
* update ci node version ([7fec128](https://github.com/newrelic/gatsby-plugin-newrelic/commit/7fec128c63852a78f8be23a3bb06cb65c7322c65))
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
### Features
|
|
25
|
+
|
|
26
|
+
* adds support for gatsby 4 ([a7b5ba3](https://github.com/newrelic/gatsby-plugin-newrelic/commit/a7b5ba3c21aa772e7c300af167f894cf5019dd45))
|
|
27
|
+
|
|
28
|
+
## [2.0.2](https://github.com/newrelic/gatsby-plugin-newrelic/compare/v2.0.1...v2.0.2) (2021-08-06)
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
### Bug Fixes
|
|
32
|
+
|
|
33
|
+
* update default release tag to be latest ([a6fef1e](https://github.com/newrelic/gatsby-plugin-newrelic/commit/a6fef1ec5b981d6b82ef3e44bdf756c303ce9ce0))
|
|
34
|
+
|
|
35
|
+
## [2.0.1](https://github.com/newrelic/gatsby-plugin-newrelic/compare/v2.0.0...v2.0.1) (2021-08-06)
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
### Bug Fixes
|
|
39
|
+
|
|
40
|
+
* update critical dependencies ([626bb55](https://github.com/newrelic/gatsby-plugin-newrelic/commit/626bb555dfe37995682e7c6f884abfefb109573f))
|
|
41
|
+
|
|
1
42
|
# [2.0.0](https://github.com/newrelic/gatsby-plugin-newrelic/compare/v1.0.6...v2.0.0) (2021-04-20)
|
|
2
43
|
|
|
3
44
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "gatsby-plugin-newrelic",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.2.0",
|
|
4
4
|
"description": "Gatsby plugin for implementing the New Relic Browser agent",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
},
|
|
20
20
|
"homepage": "https://opensource.newrelic.com/projects/newrelic/gatsby-plugin-newrelic",
|
|
21
21
|
"peerDependencies": {
|
|
22
|
-
"gatsby": "
|
|
22
|
+
"gatsby": "3.x || 4.x",
|
|
23
23
|
"react": "^17.0.0",
|
|
24
24
|
"react-dom": "^17.0.0"
|
|
25
25
|
},
|
|
@@ -29,10 +29,10 @@
|
|
|
29
29
|
},
|
|
30
30
|
"license": "Apache-2",
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@babel/runtime": "^7.
|
|
32
|
+
"@babel/runtime": "^7.12.5"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
|
-
"@babel/cli": "^7.
|
|
35
|
+
"@babel/cli": "^7.14.8",
|
|
36
36
|
"@babel/core": "^7.0.0",
|
|
37
37
|
"@babel/plugin-proposal-private-methods": "^7.8.3",
|
|
38
38
|
"@semantic-release/changelog": "^5.0.1",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"cross-env": "^5.2.1"
|
|
43
43
|
},
|
|
44
44
|
"engines": {
|
|
45
|
-
"node": ">=
|
|
45
|
+
"node": ">=16.3.1"
|
|
46
46
|
},
|
|
47
47
|
"private": false,
|
|
48
48
|
"publishConfig": {
|
|
@@ -1,60 +1,63 @@
|
|
|
1
1
|
{
|
|
2
|
-
"lastUpdated": "
|
|
2
|
+
"lastUpdated": "Fri Jan 14 2022 22:34:47 GMT+0000 (Coordinated Universal Time)",
|
|
3
3
|
"projectName": "gatsby-plugin-newrelic",
|
|
4
4
|
"projectUrl": "https://github.com/newrelic/gatsby-plugin-newrelic",
|
|
5
|
+
"includeOptDeps": false,
|
|
5
6
|
"includeDev": true,
|
|
6
7
|
"dependencies": {
|
|
7
|
-
"@babel/runtime@7.
|
|
8
|
+
"@babel/runtime@7.16.7": {
|
|
8
9
|
"name": "@babel/runtime",
|
|
9
|
-
"version": "7.
|
|
10
|
-
"range": "^7.
|
|
10
|
+
"version": "7.16.7",
|
|
11
|
+
"range": "^7.12.5",
|
|
11
12
|
"licenses": "MIT",
|
|
12
13
|
"repoUrl": "https://github.com/babel/babel",
|
|
13
|
-
"versionedRepoUrl": "https://github.com/babel/babel/tree/v7.
|
|
14
|
+
"versionedRepoUrl": "https://github.com/babel/babel/tree/v7.16.7",
|
|
14
15
|
"licenseFile": "node_modules/@babel/runtime/LICENSE",
|
|
15
|
-
"licenseUrl": "https://github.com/babel/babel/blob/v7.
|
|
16
|
+
"licenseUrl": "https://github.com/babel/babel/blob/v7.16.7/LICENSE",
|
|
16
17
|
"licenseTextSource": "file",
|
|
17
|
-
"publisher": "
|
|
18
|
-
"
|
|
18
|
+
"publisher": "The Babel Team",
|
|
19
|
+
"url": "https://babel.dev/team"
|
|
19
20
|
}
|
|
20
21
|
},
|
|
21
22
|
"devDependencies": {
|
|
22
|
-
"@babel/cli@7.
|
|
23
|
+
"@babel/cli@7.14.8": {
|
|
23
24
|
"name": "@babel/cli",
|
|
24
|
-
"version": "7.
|
|
25
|
-
"range": "^7.
|
|
25
|
+
"version": "7.14.8",
|
|
26
|
+
"range": "^7.14.8",
|
|
26
27
|
"licenses": "MIT",
|
|
27
|
-
"repoUrl": "https://github.com/babel/babel
|
|
28
|
-
"versionedRepoUrl": "https://github.com/babel/babel/tree/
|
|
28
|
+
"repoUrl": "https://github.com/babel/babel",
|
|
29
|
+
"versionedRepoUrl": "https://github.com/babel/babel/tree/v7.14.8",
|
|
29
30
|
"licenseFile": "node_modules/@babel/cli/LICENSE",
|
|
30
|
-
"licenseUrl": "https://github.com/babel/babel/
|
|
31
|
+
"licenseUrl": "https://github.com/babel/babel/blob/v7.14.8/LICENSE",
|
|
31
32
|
"licenseTextSource": "file",
|
|
32
|
-
"publisher": "
|
|
33
|
-
"
|
|
33
|
+
"publisher": "The Babel Team",
|
|
34
|
+
"url": "https://babel.dev/team"
|
|
34
35
|
},
|
|
35
|
-
"@babel/core@7.
|
|
36
|
+
"@babel/core@7.16.7": {
|
|
36
37
|
"name": "@babel/core",
|
|
37
|
-
"version": "7.
|
|
38
|
+
"version": "7.16.7",
|
|
38
39
|
"range": "^7.0.0",
|
|
39
40
|
"licenses": "MIT",
|
|
40
|
-
"repoUrl": "https://github.com/babel/babel
|
|
41
|
-
"versionedRepoUrl": "https://github.com/babel/babel/tree/
|
|
41
|
+
"repoUrl": "https://github.com/babel/babel",
|
|
42
|
+
"versionedRepoUrl": "https://github.com/babel/babel/tree/v7.16.7",
|
|
42
43
|
"licenseFile": "node_modules/@babel/core/LICENSE",
|
|
43
|
-
"licenseUrl": "https://github.com/babel/babel/
|
|
44
|
+
"licenseUrl": "https://github.com/babel/babel/blob/v7.16.7/LICENSE",
|
|
44
45
|
"licenseTextSource": "file",
|
|
45
|
-
"publisher": "
|
|
46
|
-
"
|
|
46
|
+
"publisher": "The Babel Team",
|
|
47
|
+
"url": "https://babel.dev/team"
|
|
47
48
|
},
|
|
48
|
-
"@babel/plugin-proposal-private-methods@7.
|
|
49
|
+
"@babel/plugin-proposal-private-methods@7.16.7": {
|
|
49
50
|
"name": "@babel/plugin-proposal-private-methods",
|
|
50
|
-
"version": "7.
|
|
51
|
+
"version": "7.16.7",
|
|
51
52
|
"range": "^7.8.3",
|
|
52
53
|
"licenses": "MIT",
|
|
53
|
-
"repoUrl": "https://github.com/babel/babel
|
|
54
|
-
"versionedRepoUrl": "https://github.com/babel/babel/tree/
|
|
54
|
+
"repoUrl": "https://github.com/babel/babel",
|
|
55
|
+
"versionedRepoUrl": "https://github.com/babel/babel/tree/v7.16.7",
|
|
55
56
|
"licenseFile": "node_modules/@babel/plugin-proposal-private-methods/LICENSE",
|
|
56
|
-
"licenseUrl": "https://github.com/babel/babel/
|
|
57
|
-
"licenseTextSource": "file"
|
|
57
|
+
"licenseUrl": "https://github.com/babel/babel/blob/v7.16.7/LICENSE",
|
|
58
|
+
"licenseTextSource": "file",
|
|
59
|
+
"publisher": "The Babel Team",
|
|
60
|
+
"url": "https://babel.dev/team"
|
|
58
61
|
},
|
|
59
62
|
"@semantic-release/changelog@5.0.1": {
|
|
60
63
|
"name": "@semantic-release/changelog",
|