Skip to content

Commit

Permalink
Merge commit 'b12131c47527588629f7d233c8b1325417f36075' into remove-l…
Browse files Browse the repository at this point in the history
…ongtask
  • Loading branch information
cwli24 committed Sep 16, 2024
2 parents c246038 + b12131c commit 079b696
Show file tree
Hide file tree
Showing 232 changed files with 9,097 additions and 6,052 deletions.
7 changes: 1 addition & 6 deletions .browserslistrc
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,4 @@ last 10 Safari versions
last 10 Firefox versions
last 10 Edge versions
last 10 ChromeAndroid versions

# last 10 iOS versions
# SauceLabs does not support testing iOS 15.6 or 15.7. Until the browserslist query
# of `last 10 iOS versions` no longer returns 15.6 and 15.7, we will pin our testing
# to `iOS >= 15.5`
iOS >= 15.5
last 10 iOS versions
8 changes: 2 additions & 6 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,7 @@ module.exports = {
],
parser: '@babel/eslint-parser',
parserOptions: {
requireConfigFile: false,
babelOptions: {
plugins: [
'@babel/plugin-syntax-import-assertions'
]
}
requireConfigFile: false
},
env: {
es2022: true
Expand Down Expand Up @@ -54,6 +49,7 @@ module.exports = {
sourceType: 'module'
},
rules: {
'no-console': ['error'],
'n/no-callback-literal': 'off' // This is not NodeJS code and should not be forced to adhere to NodeJS callback parameter pattern
}
},
Expand Down
5 changes: 2 additions & 3 deletions .github/actions/build-ab/templates/postamble.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,14 @@ window.NREUM.init.session_trace.enabled = true
try {
var xhr = new XMLHttpRequest()
xhr.open('POST', '/graphql')
xhr.setRequestHeader('authority', '${entitlementsEndpoints[environment]}')
xhr.setRequestHeader('cache-control','no-cache')
xhr.setRequestHeader('content-type', 'application/json; charset=utf-8')
xhr.setRequestHeader('newrelic-requesting-services','platform|nr1-ui')
xhr.setRequestHeader('newrelic-requesting-services','browser-agent')
xhr.setRequestHeader('pragma','no-cache')

xhr.send(
JSON.stringify({
'query': 'query PlatformEntitlementsQuery($names: [String]!) { currentUser { id authorizedAccounts { id entitlements(filter: {names: $names}) { name __typename } __typename } __typename } }',
'query': 'query BrowserSessionReplayUserEntitlementsQuery($names: [String]!) { currentUser { id authorizedAccounts { id entitlements(filter: {names: $names}) { name __typename } __typename } __typename } }',
'variables': {
'names': [
'hipaa',
Expand Down
2 changes: 1 addition & 1 deletion .github/actions/docs-pr/templates/release-notes.handlebars
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,4 @@ New Relic recommends that you upgrade the agent regularly to ensure that you're

New browser agent releases are rolled out to customers in small stages over a period of time. Because of this, the date the release becomes accessible to your account may not match the original publish date. Please see this [status dashboard](https://newrelic.github.io/newrelic-browser-agent-release/) for more information.

Consistent with our [browser support policy](https://docs.newrelic.com/docs/browser/new-relic-browser/getting-started/compatibility-requirements-browser-monitoring/#browser-types), {{bodyContent.version}} of the Browser agent was built for and tested against these browsers and version ranges: Chrome {{bodyContent.browserVersions.min.chrome}}-{{bodyContent.browserVersions.max.chrome}}, Edge {{bodyContent.browserVersions.min.edge}}-{{bodyContent.browserVersions.max.edge}}, Safari {{bodyContent.browserVersions.min.safari}}-{{bodyContent.browserVersions.max.safari}}, and Firefox {{bodyContent.browserVersions.min.firefox}}-{{bodyContent.browserVersions.max.firefox}}. For mobile devices, {{bodyContent.version}} was built and tested for Android OS {{bodyContent.browserVersions.min.android}}-{{bodyContent.browserVersions.max.android}} and iOS Safari {{bodyContent.browserVersions.min.ios}}-{{bodyContent.browserVersions.max.ios}}.
Consistent with our [browser support policy](https://docs.newrelic.com/docs/browser/new-relic-browser/getting-started/compatibility-requirements-browser-monitoring/#browser-types), {{bodyContent.version}} of the Browser agent was built for and tested against these browsers and version ranges: Chrome {{bodyContent.browserVersions.min.chrome}}-{{bodyContent.browserVersions.max.chrome}}, Edge {{bodyContent.browserVersions.min.edge}}-{{bodyContent.browserVersions.max.edge}}, Safari {{bodyContent.browserVersions.min.safari}}-{{bodyContent.browserVersions.max.safari}}, and Firefox {{bodyContent.browserVersions.min.firefox}}-{{bodyContent.browserVersions.max.firefox}}. For mobile devices, {{bodyContent.version}} was built and tested for Android OS {{bodyContent.browserVersions.max.android}} and iOS Safari {{bodyContent.browserVersions.min.ios}}-{{bodyContent.browserVersions.max.ios}}.
2 changes: 1 addition & 1 deletion .github/actions/docs-pr/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export async function getBrowserVersions () {
for (let mobile in mobileVersions) {
const specsArray = mobileVersions[mobile]
max[mobile] = Number(specsArray[0].version)
min[mobile] = Number(specsArray[1].version)
min[mobile] = specsArray[1] ? Number(specsArray[1].version) : max[mobile]
}

return { min, max }
Expand Down
10 changes: 2 additions & 8 deletions .github/workflows/wdio-all-browsers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,23 +52,17 @@ jobs:
with:
ref: ${{ inputs.ref || github.ref }}
browser-target: ${{ inputs.latest-only == true && 'ios@latest' || 'ios@*' }}
additional-flags: --timeout 120000 --session-timeout 240000
secrets: inherit

android:
uses: ./.github/workflows/wdio-single-browser.yml
with:
ref: ${{ inputs.ref || github.ref }}
browser-target: ${{ inputs.latest-only == true && 'android@latest' || 'android@*' }}
additional-flags: --timeout 120000 --session-timeout 240000
secrets: inherit

# ie:
# uses: ./.github/workflows/wdio-single-browser.yml
# with:
# ref: ${{ inputs.ref || github.ref }}
# browser-target: ie@11
# additional-flags: -P
# secrets: inherit

ios-webview:
uses: ./.github/workflows/wdio-single-browser.yml
with:
Expand Down
12 changes: 12 additions & 0 deletions .github/workflows/wdio-single-browser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -108,3 +108,15 @@ jobs:
with:
name: integration-code-coverage-report
path: coverage-e2e/
- name: Generate wdio tunnel log archive name
if: ${{ always() }}
id: wdio-tunnel-log-archive-name
run: |
browser=${{ inputs.browser-target }}
echo "results=${browser/\*/all}${{ inputs.coverage && '-coverage' || '' }}${{ contains(inputs.additional-flags, '--webview') && '-webview' || '' }}-wdio-tunnel-logs" >> "$GITHUB_OUTPUT"
- name: Archive wdio tunnel logs
if: ${{ always() }}
uses: actions/upload-artifact@v4
with:
name: ${{ steps.wdio-tunnel-log-archive-name.outputs.results }}
path: .lambdatest
31 changes: 31 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,37 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## [1.265.1](https://github.com/newrelic/newrelic-browser-agent/compare/v1.265.0...v1.265.1) (2024-09-06)


### Bug Fixes

* Disable websocket wrapping ([#1176](https://github.com/newrelic/newrelic-browser-agent/issues/1176)) ([5f8a0c4](https://github.com/newrelic/newrelic-browser-agent/commit/5f8a0c42fbade8f6f81471439ecc8999b1556290))

## [1.265.0](https://github.com/newrelic/newrelic-browser-agent/compare/v1.264.0...v1.265.0) (2024-08-30)


### Features

* add payload size evaluation to generic events feature ([#1152](https://github.com/newrelic/newrelic-browser-agent/issues/1152)) ([65d9d11](https://github.com/newrelic/newrelic-browser-agent/commit/65d9d11172df4a3abe750c3d110b53ad65ae4319))
* Add WebSocket wrapper and supportability metrics ([#1159](https://github.com/newrelic/newrelic-browser-agent/issues/1159)) ([7b4ab87](https://github.com/newrelic/newrelic-browser-agent/commit/7b4ab87ae28450cc97f6a84f3176e0c9f8698d76))
* Configure Session Replay to wait for DOMContentLoaded ([#1164](https://github.com/newrelic/newrelic-browser-agent/issues/1164)) ([84bd299](https://github.com/newrelic/newrelic-browser-agent/commit/84bd29981675660d8f47a0f49235005e7be11947))
* removing internal barrel exports ([#1158](https://github.com/newrelic/newrelic-browser-agent/issues/1158)) ([2e29a6e](https://github.com/newrelic/newrelic-browser-agent/commit/2e29a6e3c9d7a6a099b73aff59682a1e38008072))
* Standardize Feature Buffering Behavior ([#1155](https://github.com/newrelic/newrelic-browser-agent/issues/1155)) ([d070a43](https://github.com/newrelic/newrelic-browser-agent/commit/d070a4315df35ace82e20b8b2c69044bf8504c92))


### Bug Fixes

* Ensure drain target is a valid event emitter before subscribing ([#1167](https://github.com/newrelic/newrelic-browser-agent/issues/1167)) ([187d31f](https://github.com/newrelic/newrelic-browser-agent/commit/187d31fe0fd95e75907742a7c49779683a6b040c))
* fix duplicative log payloads on unload ([#1166](https://github.com/newrelic/newrelic-browser-agent/issues/1166)) ([52bb088](https://github.com/newrelic/newrelic-browser-agent/commit/52bb08880215c40abf080a2bf1c80a29c7ad3324))
* relative timestamps in session trace ([#1142](https://github.com/newrelic/newrelic-browser-agent/issues/1142)) ([378b1fb](https://github.com/newrelic/newrelic-browser-agent/commit/378b1fb49ca5732e0c1b704920143b966102cfb6))
* Updated Logging API function ([#1147](https://github.com/newrelic/newrelic-browser-agent/issues/1147)) ([bf2e980](https://github.com/newrelic/newrelic-browser-agent/commit/bf2e98056c2ad214421918fb4938a08b6213590e))


### Security Fixes

* apply obfuscation rules to session trace ([#1149](https://github.com/newrelic/newrelic-browser-agent/issues/1149)) ([fbc6f9d](https://github.com/newrelic/newrelic-browser-agent/commit/fbc6f9d31a33515e05d70e190c9c8da198fa4415))

## [1.264.0](https://github.com/newrelic/newrelic-browser-agent/compare/v1.263.0...v1.264.0) (2024-08-06)


Expand Down
Loading

0 comments on commit 079b696

Please sign in to comment.