Skip to content

Commit

Permalink
remove explit 12.0 and 12.1 tests for next.js
Browse files Browse the repository at this point in the history
  • Loading branch information
bengl committed Dec 13, 2024
1 parent 2fcd426 commit b5c8eb2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/appsec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ jobs:
version:
- 18
- latest
range: ['>=10.2.0 <11', '>=11.0.0 <12', '11.1.4', '>=12.2.0 <13', '>=13.0.0 <14', '13.2.0', '>=14.0.0 <=14.2.6', '>=14.2.7 <15', '>=15.0.0']
range: ['>=10.2.0 <11', '>=11.0.0 <13', '11.1.4', '>=13.0.0 <14', '13.2.0', '>=14.0.0 <=14.2.6', '>=14.2.7 <15', '>=15.0.0']
runs-on: ubuntu-latest
env:
PLUGINS: next
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/plugins.yml
Original file line number Diff line number Diff line change
Expand Up @@ -728,7 +728,7 @@ jobs:
version:
- 18
- latest
range: ['>=10.2.0 <11', '>=11.0.0 <12', '11.1.4', '>=12.2.0 <13', '>=13.0.0 <14', '13.2.0', '>=14.0.0 <=14.2.6', '>=14.2.7 <15', '>=15.0.0']
range: ['>=10.2.0 <11', '>=11.0.0 <13', '11.1.4', '>=13.0.0 <14', '13.2.0', '>=14.0.0 <=14.2.6', '>=14.2.7 <15', '>=15.0.0']
runs-on: ubuntu-latest
env:
PLUGINS: next
Expand Down
9 changes: 3 additions & 6 deletions packages/datadog-instrumentations/src/next.js
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ addHook({

addHook({
name: 'next',
versions: ['>=11.1 <12.0.0', '>=12.2.0'],
versions: ['>=11.1'],
file: 'dist/server/serve-static.js'
}, serveStatic => shimmer.wrap(serveStatic, 'serveStatic', wrapServeStatic))

Expand All @@ -224,7 +224,7 @@ addHook({
file: 'dist/next-server/server/serve-static.js'
}, serveStatic => shimmer.wrap(serveStatic, 'serveStatic', wrapServeStatic))

addHook({ name: 'next', versions: ['>=11.1 <12.0.0', '>=12.2.0'], file: 'dist/server/next-server.js' }, nextServer => {
addHook({ name: 'next', versions: ['>=11.1'], file: 'dist/server/next-server.js' }, nextServer => {
const Server = nextServer.default

shimmer.wrap(Server.prototype, 'handleRequest', wrapHandleRequest)
Expand All @@ -249,10 +249,7 @@ addHook({ name: 'next', versions: ['>=13.2'], file: 'dist/server/next-server.js'

addHook({
name: 'next',
versions: [
'>=11.1 <12.0.0',
'>=12.2.0 <13.2'
],
versions: ['>=11.1 <13.2'],
file: 'dist/server/next-server.js'
}, nextServer => {
const Server = nextServer.default
Expand Down

0 comments on commit b5c8eb2

Please sign in to comment.