Compare commits

...

2 Commits

Author SHA1 Message Date
Vercel Release Bot
19a373288f Version Packages (#11079)
This PR was opened by the [Changesets
release](https://github.com/changesets/action) GitHub action. When
you're ready to do a release, you can merge this and the packages will
be published to npm automatically. If you're not ready to do a release
yet, that's fine, whenever you add more changesets to main, this PR will
be updated.


# Releases
## vercel@33.3.0

### Minor Changes

- Emit "filePathMap" in `vc-config.json` for `FileFsRef` instances
([#11060](https://github.com/vercel/vercel/pull/11060))

### Patch Changes

- Update `vc dev` to support `Lambda` instances without `zipBuffer`
([#11080](https://github.com/vercel/vercel/pull/11080))

- Updated dependencies
\[[`322c88536`](322c88536d),
[`62ca2efa7`](62ca2efa73)]:
    -   @vercel/ruby@2.0.5
    -   @vercel/python@4.1.1

## @vercel/client@13.1.0

### Minor Changes

- Upload files referenced by "filePathMap" during `vc deploy --prebuilt`
([#11077](https://github.com/vercel/vercel/pull/11077))

## @vercel/python@4.1.1

### Patch Changes

- Remove deprecated `createLambda()` usage
([#11080](https://github.com/vercel/vercel/pull/11080))

## @vercel/ruby@2.0.5

### Patch Changes

- add ruby3 to path during build
([#11094](https://github.com/vercel/vercel/pull/11094))

- Remove deprecated `createLambda()` usage
([#11080](https://github.com/vercel/vercel/pull/11080))

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-01-25 14:29:57 -06:00
Sean Massa
322c88536d add ruby3 to path during build (#11094)
Add ruby to the path plus some debug code. I'll remove the debug code
after we verify this works.
2024-01-25 14:16:53 -06:00
18 changed files with 62 additions and 44 deletions

View File

@@ -1,3 +0,0 @@
---
---

View File

@@ -1,3 +0,0 @@
---
---

View File

@@ -1,6 +0,0 @@
---
'@vercel/python': patch
'@vercel/ruby': patch
---
Remove deprecated `createLambda()` usage

View File

@@ -1,5 +0,0 @@
---
'vercel': patch
---
Update `vc dev` to support `Lambda` instances without `zipBuffer`

View File

@@ -1,5 +0,0 @@
---
'vercel': minor
---
Emit "filePathMap" in `vc-config.json` for `FileFsRef` instances

View File

@@ -1,5 +0,0 @@
---
'@vercel/client': minor
---
Upload files referenced by "filePathMap" during `vc deploy --prebuilt`

View File

@@ -1,5 +1,19 @@
# vercel
## 33.3.0
### Minor Changes
- Emit "filePathMap" in `vc-config.json` for `FileFsRef` instances ([#11060](https://github.com/vercel/vercel/pull/11060))
### Patch Changes
- Update `vc dev` to support `Lambda` instances without `zipBuffer` ([#11080](https://github.com/vercel/vercel/pull/11080))
- Updated dependencies [[`322c88536`](https://github.com/vercel/vercel/commit/322c88536dfa0ba3892eb580858ee54f6b04ed3f), [`62ca2efa7`](https://github.com/vercel/vercel/commit/62ca2efa731c4df46d586b94078b2dcb1c0bb934)]:
- @vercel/ruby@2.0.5
- @vercel/python@4.1.1
## 33.2.0
### Minor Changes

View File

@@ -1,6 +1,6 @@
{
"name": "vercel",
"version": "33.2.0",
"version": "33.3.0",
"preferGlobal": true,
"license": "Apache-2.0",
"description": "The command-line interface for Vercel",
@@ -37,10 +37,10 @@
"@vercel/hydrogen": "1.0.2",
"@vercel/next": "4.1.0",
"@vercel/node": "3.0.17",
"@vercel/python": "4.1.0",
"@vercel/python": "4.1.1",
"@vercel/redwood": "2.0.6",
"@vercel/remix-builder": "2.0.18",
"@vercel/ruby": "2.0.4",
"@vercel/ruby": "2.0.5",
"@vercel/static-build": "2.1.0",
"chokidar": "3.3.1"
},
@@ -89,7 +89,7 @@
"@vercel-internals/constants": "1.0.4",
"@vercel-internals/get-package-json": "1.0.0",
"@vercel-internals/types": "1.0.21",
"@vercel/client": "13.0.14",
"@vercel/client": "13.1.0",
"@vercel/error-utils": "2.0.2",
"@vercel/frameworks": "2.0.6",
"@vercel/fs-detectors": "5.1.6",

View File

@@ -857,7 +857,7 @@ test('deploy pnpm twice using pnp and symlink=false', async () => {
page = await fetch(stdout);
text = await page.text();
expect(text).toBe('cache exists\n');
expect(text).toContain('cache exists\n');
});
test('reject deploying with wrong team .vercel config', async () => {

View File

@@ -1,5 +1,11 @@
# @vercel/client
## 13.1.0
### Minor Changes
- Upload files referenced by "filePathMap" during `vc deploy --prebuilt` ([#11077](https://github.com/vercel/vercel/pull/11077))
## 13.0.14
### Patch Changes

View File

@@ -1,6 +1,6 @@
{
"name": "@vercel/client",
"version": "13.0.14",
"version": "13.1.0",
"main": "dist/index.js",
"typings": "dist/index.d.ts",
"homepage": "https://vercel.com",

View File

@@ -1,5 +1,11 @@
# @vercel/python
## 4.1.1
### Patch Changes
- Remove deprecated `createLambda()` usage ([#11080](https://github.com/vercel/vercel/pull/11080))
## 4.1.0
### Minor Changes

View File

@@ -1,6 +1,6 @@
{
"name": "@vercel/python",
"version": "4.1.0",
"version": "4.1.1",
"main": "./dist/index.js",
"license": "Apache-2.0",
"homepage": "https://vercel.com/docs/runtimes#official-runtimes/python",

View File

@@ -1,5 +1,13 @@
# @vercel/ruby
## 2.0.5
### Patch Changes
- add ruby3 to path during build ([#11094](https://github.com/vercel/vercel/pull/11094))
- Remove deprecated `createLambda()` usage ([#11080](https://github.com/vercel/vercel/pull/11080))
## 2.0.4
### Patch Changes

View File

@@ -1,7 +1,7 @@
{
"name": "@vercel/ruby",
"author": "Nathan Cahill <nathan@nathancahill.com>",
"version": "2.0.4",
"version": "2.0.5",
"license": "Apache-2.0",
"main": "./dist/index",
"homepage": "https://vercel.com/docs/runtimes#official-runtimes/ruby",

View File

@@ -48,6 +48,7 @@ async function bundleInstall(
bundlePath: string,
bundleDir: string,
gemfilePath: string,
rubyPath: string,
runtime: string
) {
debug(`running "bundle install --deployment"...`);
@@ -76,7 +77,7 @@ async function bundleInstall(
const bundlerEnv = cloneEnv(process.env, {
// Ensure the correct version of `ruby` is in front of the $PATH
PATH: `${dirname(bundlePath)}:${process.env.PATH}`,
PATH: `${dirname(rubyPath)}:${dirname(bundlePath)}:${process.env.PATH}`,
BUNDLE_SILENCE_ROOT_WARNING: '1',
BUNDLE_APP_CONFIG: bundleAppConfig,
BUNDLE_JOBS: '4',
@@ -142,10 +143,8 @@ export const build: BuildV3 = async ({
const gemfileContents = gemfilePath
? await readFile(gemfilePath, 'utf8')
: '';
const { gemHome, bundlerPath, vendorPath, runtime } = await installBundler(
meta,
gemfileContents
);
const { gemHome, bundlerPath, vendorPath, runtime, rubyPath } =
await installBundler(meta, gemfileContents);
process.env.GEM_HOME = gemHome;
debug(`Checking existing vendor directory at "${vendorPath}"`);
const vendorDir = join(workPath, vendorPath);
@@ -189,7 +188,13 @@ export const build: BuildV3 = async ({
} else {
// try installing. this won't work if native extesions are required.
// if that's the case, gems should be vendored locally before deploying.
await bundleInstall(bundlerPath, bundleDir, gemfilePath, runtime);
await bundleInstall(
bundlerPath,
bundleDir,
gemfilePath,
rubyPath,
runtime
);
}
}
} else {

View File

@@ -81,6 +81,12 @@ def vc__handler(event:, context:)
payload = JSON.parse(event['body'])
path = payload['path']
headers = payload['headers']
if ENV['VERCEL_DEBUG']
puts 'Request Headers: '
puts headers
end
httpMethod = payload['method']
encoding = payload['encoding']
body = payload['body']

6
pnpm-lock.yaml generated
View File

@@ -328,7 +328,7 @@ importers:
specifier: 3.0.17
version: link:../node
'@vercel/python':
specifier: 4.1.0
specifier: 4.1.1
version: link:../python
'@vercel/redwood':
specifier: 2.0.6
@@ -337,7 +337,7 @@ importers:
specifier: 2.0.18
version: link:../remix
'@vercel/ruby':
specifier: 2.0.4
specifier: 2.0.5
version: link:../ruby
'@vercel/static-build':
specifier: 2.1.0
@@ -479,7 +479,7 @@ importers:
specifier: 1.0.21
version: link:../../internals/types
'@vercel/client':
specifier: 13.0.14
specifier: 13.1.0
version: link:../client
'@vercel/error-utils':
specifier: 2.0.2