Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove outdated polyfills #4009

Merged
merged 14 commits into from
May 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions LICENSE-3rdparty.csv
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,14 @@ require,dc-polyfill,MIT,Copyright 2023 Datadog Inc.
require,ignore,MIT,Copyright 2013 Kael Zhang and contributors
require,import-in-the-middle,Apache license 2.0,Copyright 2021 Datadog Inc.
require,int64-buffer,MIT,Copyright 2015-2016 Yusuke Kawasaki
require,ipaddr.js,MIT,Copyright 2011-2017 whitequark
require,istanbul-lib-coverage,BSD-3-Clause,Copyright 2012-2015 Yahoo! Inc.
require,jest-docblock,MIT,Copyright Meta Platforms, Inc. and affiliates.
require,koalas,MIT,Copyright 2013-2017 Brian Woodward
require,limiter,MIT,Copyright 2011 John Hurliman
require,lodash.sortby,MIT,Copyright JS Foundation and other contributors
require,lru-cache,ISC,Copyright (c) 2010-2022 Isaac Z. Schlueter and Contributors
require,methods,MIT,Copyright 2013-2014 TJ Holowaychuk
require,module-details-from-path,MIT,Copyright 2016 Thomas Watson Steen
require,msgpack-lite,MIT,Copyright 2015 Yusuke Kawasaki
require,node-abort-controller,MIT,Copyright (c) 2019 Steve Faulkner
require,opentracing,MIT,Copyright 2016 Resonance Labs Inc
require,path-to-regexp,MIT,Copyright 2014 Blake Embrey
require,pprof-format,MIT,Copyright 2022 Stephen Belanger
Expand Down
3 changes: 0 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -83,17 +83,14 @@
"ignore": "^5.2.4",
"import-in-the-middle": "^1.7.4",
"int64-buffer": "^0.1.9",
"ipaddr.js": "^2.1.0",
"istanbul-lib-coverage": "3.2.0",
"jest-docblock": "^29.7.0",
"koalas": "^1.0.2",
"limiter": "1.1.5",
"lodash.sortby": "^4.7.0",
"lru-cache": "^7.14.0",
"methods": "^1.1.2",
"module-details-from-path": "^1.0.3",
"msgpack-lite": "^0.1.26",
"node-abort-controller": "^3.1.1",
"opentracing": ">=0.12.1",
"path-to-regexp": "^0.1.2",
"pprof-format": "^2.1.0",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
'use strict'

const { AbortController } = require('node-abort-controller')
const { addHook } = require('./helpers/instrument')
const shimmer = require('../../datadog-shimmer')
const dc = require('dc-polyfill')
Expand Down
1 change: 0 additions & 1 deletion packages/datadog-instrumentations/src/apollo-server.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
'use strict'

const { AbortController } = require('node-abort-controller')
const dc = require('dc-polyfill')

const { addHook } = require('./helpers/instrument')
Expand Down
1 change: 0 additions & 1 deletion packages/datadog-instrumentations/src/body-parser.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
'use strict'

const { AbortController } = require('node-abort-controller') // AbortController is not available in node <15
const shimmer = require('../../datadog-shimmer')
const { channel, addHook } = require('./helpers/instrument')

Expand Down
1 change: 0 additions & 1 deletion packages/datadog-instrumentations/src/cookie-parser.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
'use strict'

const { AbortController } = require('node-abort-controller') // AbortController is not available in node <15
const shimmer = require('../../datadog-shimmer')
const { channel, addHook } = require('./helpers/instrument')

Expand Down
1 change: 0 additions & 1 deletion packages/datadog-instrumentations/src/express.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
const { createWrapRouterMethod } = require('./router')
const shimmer = require('../../datadog-shimmer')
const { addHook, channel } = require('./helpers/instrument')
const { AbortController } = require('node-abort-controller')

const handleChannel = channel('apm:express:request:handle')

Expand Down
2 changes: 0 additions & 2 deletions packages/datadog-instrumentations/src/graphql.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
'use strict'

const { AbortController } = require('node-abort-controller')

const {
addHook,
channel,
Expand Down
1 change: 0 additions & 1 deletion packages/datadog-instrumentations/src/http/server.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
'use strict'

const { AbortController } = require('node-abort-controller') // AbortController is not available in node <15
const {
channel,
addHook
Expand Down
2 changes: 1 addition & 1 deletion packages/datadog-instrumentations/src/router.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict'

const METHODS = require('methods').concat('all')
const METHODS = require('http').METHODS.map(v => v.toLowerCase()).concat('all')
const pathToRegExp = require('path-to-regexp')
const shimmer = require('../../datadog-shimmer')
const { addHook, channel } = require('./helpers/instrument')
Expand Down
1 change: 0 additions & 1 deletion packages/datadog-plugin-http/test/server.spec.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
'use strict'

const { AbortController } = require('node-abort-controller') // AbortController is not available in node <15
const getPort = require('get-port')
const agent = require('../../dd-trace/test/plugins/agent')
const axios = require('axios')
Expand Down
2 changes: 1 addition & 1 deletion packages/dd-trace/src/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

const fs = require('fs')
const os = require('os')
const uuid = require('crypto-randomuuid')
const uuid = require('crypto-randomuuid') // we need to keep the old uuid dep because of cypress
const URL = require('url').URL
const log = require('./log')
const pkg = require('./pkg')
Expand Down
51 changes: 0 additions & 51 deletions packages/dd-trace/src/plugins/util/ip_blocklist.js

This file was deleted.

2 changes: 1 addition & 1 deletion packages/dd-trace/src/plugins/util/ip_extractor.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict'

const BlockList = require('./ip_blocklist')
const { BlockList } = require('net')
const net = require('net')

const ipHeaderList = [
Expand Down
2 changes: 0 additions & 2 deletions packages/dd-trace/test/appsec/blocking.spec.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
'use strict'

const { AbortController } = require('node-abort-controller')

describe('blocking', () => {
const defaultBlockedTemplate = {
html: 'block test',
Expand Down
12 changes: 1 addition & 11 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2919,11 +2919,6 @@ [email protected]:
resolved "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-1.9.1.tgz"
integrity sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g==

ipaddr.js@^2.1.0:
version "2.1.0"
resolved "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-2.1.0.tgz"
integrity sha512-LlbxQ7xKzfBusov6UMi4MFpEg0m+mAm9xyNGEduwXMEDuf4WfzB/RZwMVYEd7IKGvh4IUkEXYxtAVu9T3OelJQ==

is-arguments@^1.0.4, is-arguments@^1.1.1:
version "1.1.1"
resolved "https://registry.npmjs.org/is-arguments/-/is-arguments-1.1.1.tgz"
Expand Down Expand Up @@ -3506,7 +3501,7 @@ merge2@^1.3.0, merge2@^1.4.1:
resolved "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz"
integrity sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==

methods@^1.1.2, methods@~1.1.2:
methods@~1.1.2:
version "1.1.2"
resolved "https://registry.npmjs.org/methods/-/methods-1.1.2.tgz"
integrity sha512-iclAHeNqNm68zFtnZ0e+1L2yUIdvzNoauKU4WBA3VvH/vPFieF7qfRlwUZU+DA9P9bPXIS90ulxoUoCH23sV2w==
Expand Down Expand Up @@ -3709,11 +3704,6 @@ nock@^11.3.3:
mkdirp "^0.5.0"
propagate "^2.0.0"

node-abort-controller@^3.1.1:
version "3.1.1"
resolved "https://registry.npmjs.org/node-abort-controller/-/node-abort-controller-3.1.1.tgz"
integrity sha512-AGK2yQKIjRuqnc6VkX2Xj5d+QW8xZ87pa1UK6yA6ouUyuxfHuMP6umE5QK7UmTeOAymo+Zx1Fxiuw9rVx8taHQ==

node-addon-api@^6.1.0:
version "6.1.0"
resolved "https://registry.npmjs.org/node-addon-api/-/node-addon-api-6.1.0.tgz"
Expand Down
Loading