gatsby-plugin-newrelic 2.0.2 → 2.1.1

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.
@@ -49,7 +49,7 @@ jobs:
49
49
  - name: Setup Node.js
50
50
  uses: actions/setup-node@v1
51
51
  with:
52
- node-version: 10.x
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: 10.x
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: 10.x
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://newrelic.com/signup)
12
- 1. Go to [https://rpm.newrelic.com](https://rpm.newrelic.com)
13
- 1. Select the "Browser" product from the navigation
14
- 1. Click on "Add more" to add your website
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. Under "Choose your instrumentation" select Lite, Pro, or Pro + SPA
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/docs/CHANGELOG.md CHANGED
@@ -1,3 +1,23 @@
1
+ ## [2.1.1](https://github.com/newrelic/gatsby-plugin-newrelic/compare/v2.1.0...v2.1.1) (2022-01-10)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * updated contributing guide ([af6aa1c](https://github.com/newrelic/gatsby-plugin-newrelic/commit/af6aa1c48603a36641099b7ab6c2612e31fa11bc))
7
+
8
+ # [2.1.0](https://github.com/newrelic/gatsby-plugin-newrelic/compare/v2.0.2...v2.1.0) (2022-01-06)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * bumped the node version ([bc7f7ee](https://github.com/newrelic/gatsby-plugin-newrelic/commit/bc7f7ee43f68a07a6381fded83195786783399a6))
14
+ * update ci node version ([7fec128](https://github.com/newrelic/gatsby-plugin-newrelic/commit/7fec128c63852a78f8be23a3bb06cb65c7322c65))
15
+
16
+
17
+ ### Features
18
+
19
+ * adds support for gatsby 4 ([a7b5ba3](https://github.com/newrelic/gatsby-plugin-newrelic/commit/a7b5ba3c21aa772e7c300af167f894cf5019dd45))
20
+
1
21
  ## [2.0.2](https://github.com/newrelic/gatsby-plugin-newrelic/compare/v2.0.1...v2.0.2) (2021-08-06)
2
22
 
3
23
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gatsby-plugin-newrelic",
3
- "version": "2.0.2",
3
+ "version": "2.1.1",
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": "^3.0.0",
22
+ "gatsby": "3.x || 4.x",
23
23
  "react": "^17.0.0",
24
24
  "react-dom": "^17.0.0"
25
25
  },
@@ -42,11 +42,11 @@
42
42
  "cross-env": "^5.2.1"
43
43
  },
44
44
  "engines": {
45
- "node": ">=10.13.0"
45
+ "node": ">=16.3.1"
46
46
  },
47
47
  "private": false,
48
48
  "publishConfig": {
49
49
  "registry": "https://registry.npmjs.org/",
50
- "tag": "latest"
50
+ "tag": "next"
51
51
  }
52
52
  }