Skip to content

Commit

Permalink
[ci] release
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Mar 14, 2024
1 parent 238f047 commit d28f1a0
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 12 deletions.
5 changes: 0 additions & 5 deletions .changeset/few-teachers-impress.md

This file was deleted.

6 changes: 6 additions & 0 deletions packages/db/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @astrojs/db

## 0.8.4

### Patch Changes

- [#10443](https://github.com/withastro/astro/pull/10443) [`238f047b9d1ebc407f53d61ee61574b380a76ac9`](https://github.com/withastro/astro/commit/238f047b9d1ebc407f53d61ee61574b380a76ac9) Thanks [@lilnasy](https://github.com/lilnasy)! - Fixes an issue where `astro:db` could not be used in serverless environments.

## 0.8.3

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/db/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@astrojs/db",
"version": "0.8.3",
"version": "0.8.4",
"description": "",
"license": "MIT",
"type": "module",
Expand Down
2 changes: 1 addition & 1 deletion packages/db/src/core/cli/commands/link/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ import { slug } from 'github-slugger';
import { bgRed, cyan } from 'kleur/colors';
import ora from 'ora';
import prompts from 'prompts';
import { safeFetch } from '../../../../runtime/utils.js';
import { MISSING_SESSION_ID_ERROR } from '../../../errors.js';
import { PROJECT_ID_FILE, getSessionIdFromFile } from '../../../tokens.js';
import { type Result, getAstroStudioUrl } from '../../../utils.js';
import { safeFetch } from '../../../../runtime/utils.js';

export async function cmd() {
const sessionToken = await getSessionIdFromFile();
Expand Down
2 changes: 1 addition & 1 deletion packages/db/src/core/cli/commands/push/index.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import type { AstroConfig } from 'astro';
import type { Arguments } from 'yargs-parser';
import { safeFetch } from '../../../../runtime/utils.js';
import { MIGRATION_VERSION } from '../../../consts.js';
import { getManagedAppTokenOrExit } from '../../../tokens.js';
import { type DBConfig, type DBSnapshot } from '../../../types.js';
import { type Result, getRemoteDatabaseUrl } from '../../../utils.js';
import { safeFetch } from '../../../../runtime/utils.js';
import {
createCurrentSnapshot,
createEmptySnapshot,
Expand Down
3 changes: 1 addition & 2 deletions packages/db/src/core/cli/migration-queries.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import {
schemaTypeToSqlType,
} from '../../runtime/queries.js';
import { isSerializedSQL } from '../../runtime/types.js';
import { safeFetch } from '../../runtime/utils.js';
import { MIGRATION_VERSION } from '../consts.js';
import { RENAME_COLUMN_ERROR, RENAME_TABLE_ERROR } from '../errors.js';
import { columnSchema } from '../schemas.js';
Expand All @@ -33,8 +34,6 @@ import {
type TextColumn,
} from '../types.js';
import { type Result, getRemoteDatabaseUrl } from '../utils.js';
import { safeFetch } from '../../runtime/utils.js';


const sqlite = new SQLiteAsyncDialect();
const genTempTableName = customAlphabet('abcdefghijklmnopqrstuvwxyz', 10);
Expand Down
2 changes: 1 addition & 1 deletion packages/db/src/core/tokens.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import { join } from 'node:path';
import { pathToFileURL } from 'node:url';
import { green } from 'kleur/colors';
import ora from 'ora';
import { safeFetch } from '../runtime/utils.js';
import { MISSING_PROJECT_ID_ERROR, MISSING_SESSION_ID_ERROR } from './errors.js';
import { getAstroStudioEnv, getAstroStudioUrl } from './utils.js';
import { safeFetch } from '../runtime/utils.js';

export const SESSION_LOGIN_FILE = pathToFileURL(join(homedir(), '.astro', 'session-token'));
export const PROJECT_ID_FILE = pathToFileURL(join(process.cwd(), '.astro', 'link'));
Expand Down
2 changes: 1 addition & 1 deletion packages/db/src/runtime/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ export async function safeFetch(
}

return response;
}
}

0 comments on commit d28f1a0

Please sign in to comment.