Skip to content
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
16,821 changes: 10,029 additions & 6,792 deletions package-lock.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion packages/build/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@
"pkg-dir": "^7.0.0",
"pretty-ms": "^8.0.0",
"ps-list": "^8.0.0",
"read-package-up": "^11.0.0",
"read-pkg-up": "^9.0.0",
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

newer versions dropped support for node 14

"readdirp": "^3.4.0",
"resolve": "^2.0.0-next.5",
"rfdc": "^1.3.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/build/src/plugins/compatibility.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import _pEvery from 'p-every'
import pLocate from 'p-locate'
import { PackageJson } from 'read-package-up'
import { PackageJson } from 'read-pkg-up'
import semver from 'semver'

import { FeatureFlags } from '../core/feature_flags.js'
Expand Down
2 changes: 1 addition & 1 deletion packages/build/src/plugins/expected_version.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { PackageJson } from 'read-package-up'
import { PackageJson } from 'read-pkg-up'
import semver from 'semver'

import { FeatureFlags } from '../core/feature_flags.js'
Expand Down
2 changes: 1 addition & 1 deletion packages/build/src/plugins/manifest/main.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { PackageJson } from 'read-package-up'
import { PackageJson } from 'read-pkg-up'

import { addPluginLoadErrorStatus } from '../../status/load_error.js'

Expand Down
2 changes: 1 addition & 1 deletion packages/build/src/plugins/options.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { dirname } from 'path'

import { PackageJson } from 'read-package-up'
import { PackageJson } from 'read-pkg-up'
import semver from 'semver'

import { addErrorInfo } from '../error/info.js'
Expand Down
2 changes: 1 addition & 1 deletion packages/build/src/plugins/plugin_conditions.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { join } from 'path'

import _pEvery from 'p-every'
import { PackageJson } from 'read-package-up'
import { PackageJson } from 'read-pkg-up'
import semver from 'semver'

import { importJsonFile } from '../utils/json.js'
Expand Down
2 changes: 1 addition & 1 deletion packages/build/src/utils/json.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { readFile } from 'fs/promises'
import { fileURLToPath } from 'url'

import type { PackageJson } from 'read-package-up'
import type { PackageJson } from 'read-pkg-up'

// We know how our package.json looks like, so we can be very specific with the type
// and only add the properties we want to use
Expand Down
2 changes: 1 addition & 1 deletion packages/build/src/utils/package.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { dirname } from 'path'

import { Options, PackageJson, readPackageUp } from 'read-package-up'
import { Options, PackageJson, readPackageUp } from 'read-pkg-up'

type PackageResult = {
packageJson: PackageJson
Expand Down
2 changes: 1 addition & 1 deletion packages/edge-bundler/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
"better-ajv-errors": "^1.2.0",
"common-path-prefix": "^3.0.0",
"env-paths": "^3.0.0",
"esbuild": "0.21.2",
"esbuild": "0.25.2",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👁️ I'm going to just trust you on this change?

"execa": "^7.0.0",
"find-up": "^6.3.0",
"get-package-name": "^2.2.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/framework-info/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
"locate-path": "^7.0.0",
"p-filter": "^4.0.0",
"p-locate": "^6.0.0",
"read-package-up": "^11.0.0",
"read-pkg-up": "^9.0.0",
"semver": "^7.3.8"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/framework-info/src/context.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { cwd, version as nodejsVersion } from 'process'

import { locatePath } from 'locate-path'
import { PackageJson, readPackageUp } from 'read-package-up'
import { PackageJson, readPackageUp } from 'read-pkg-up'

interface PackageJsonInfo {
packageJson?: PackageJson
Expand Down
2 changes: 1 addition & 1 deletion packages/framework-info/src/core.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import pFilter from 'p-filter'
import type { PackageJson } from 'read-package-up'
import type { PackageJson } from 'read-pkg-up'

import type { Context, PathExists } from './context.js'
import { usesFramework } from './detect.js'
Expand Down
2 changes: 1 addition & 1 deletion packages/framework-info/src/package.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { includeKeys } from 'filter-obj'
import isPlainObj from 'is-plain-obj'
import type { PackageJson } from 'read-package-up'
import type { PackageJson } from 'read-pkg-up'

export const getPackageJsonContent = function (packageJson: PackageJson | undefined) {
if (packageJson === undefined) {
Expand Down
1 change: 1 addition & 0 deletions packages/opentelemetry-sdk-setup/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
"@opentelemetry/core": "~1.24.0",
"@opentelemetry/resources": "~1.24.0",
"@opentelemetry/semantic-conventions": "~1.24.0",
"read-pkg-up": "^9",
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

newer versions dropped support for node 14

"yargs-parser": "^21.1.1"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/opentelemetry-sdk-setup/src/sdk-setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { setMultiSpanAttributes } from '@netlify/opentelemetry-utils'
import { DiagLogLevel, TraceFlags, context, diag, trace } from '@opentelemetry/api'
import { Resource } from '@opentelemetry/resources'
import { SEMRESATTRS_SERVICE_NAME, SEMRESATTRS_SERVICE_VERSION } from '@opentelemetry/semantic-conventions'
import type { PackageJson } from 'read-package-up'
import type { PackageJson } from 'read-pkg-up'

import { getDiagLogger, loadBaggageFromFile } from './util.js'

Expand Down
2 changes: 1 addition & 1 deletion packages/opentelemetry-sdk-setup/src/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { readFile, realpath } from 'node:fs/promises'

import { diag, DiagLogger } from '@opentelemetry/api'
import { parseKeyPairsIntoRecord } from '@opentelemetry/core/build/src/baggage/utils.js'
import { PackageJson, readPackageUp } from 'read-package-up'
import { PackageJson, readPackageUp } from 'read-pkg-up'

/**
* Builds a function for logging data to a provided fileDescriptor (i.e. hidden from
Expand Down
4 changes: 2 additions & 2 deletions packages/zip-it-and-ship-it/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
"@netlify/binary-info": "^1.0.0",
"@netlify/serverless-functions-api": "^1.36.0",
"@vercel/nft": "0.27.7",
"archiver": "^7.0.0",
"archiver": "^5.3.1",
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

newer versions dropped support for node 14

"common-path-prefix": "^3.0.0",
"cp-file": "^10.0.0",
"es-module-lexer": "^1.0.0",
Expand Down Expand Up @@ -92,7 +92,7 @@
"cpy": "9.0.1",
"decompress": "4.2.1",
"deepmerge": "^4.3.1",
"get-stream": "8.0.1",
"get-stream": "6.0.1",
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

newer versions dropped support for node 14

"is-ci": "4.1.0",
"lambda-local": "2.2.0",
"source-map-support": "0.5.21",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,13 @@ The binary needs to be built for Linux/Amd64, but it was built for ${Platform[bi
export const detectBinaryRuntime = async function ({ path }: { path: string }): Promise<RuntimeName | undefined> {
try {
const fileContents = await readFile(path)
const binaryInfo = detect(fileContents)
const binaryInfo = detect(
new Uint8Array(
fileContents.buffer,
fileContents.byteOffset,
fileContents.byteLength / Uint8Array.BYTES_PER_ELEMENT,
),
)

if (!isValidFunctionBinary(binaryInfo)) {
return warnIncompatibleBinary(path, binaryInfo)
Expand Down
2 changes: 1 addition & 1 deletion packages/zip-it-and-ship-it/src/zip.ts
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ export const zipFunction = async function (
runtime,
srcDir,
stat: stats,
}: FunctionSource = functions.values().next().value
}: FunctionSource = functions.values().next().value!

await fs.mkdir(destFolder, { recursive: true })

Expand Down
Loading