Zum Inhalt springen

Serverless Updates & Release Notes

Einträge
26
Quellen
1
Zuletzt aktualisiert
Kategorie
Datenbanken

Folge Serverless, um die Release Notes in deinen Feed zu holen.

Serverless von Neon

Neon Serverless 0.7.2

Exportiert nun einen vollständigen ESM-Build als index.mjs, sodass das Paket entweder nur mit require oder nur mit import verwendet werden sollte, um doppelte Code-Kopien zu vermeiden.

Export a full ESM build to index.mjs -- don't just wrap the CJS code -- since no wrapping method seems reliable across bundlers and platforms. It's now important to only require or only import the package: if you mix, you'll get two copies of the code that don't share configuration changes.

Originalquelle(öffnet in neuem Tab)Problem melden

Serverless von Neon

Neon Serverless 0.7.0

Ändert die ESM-Re-Export-Technik in index.mjs, um WebPack-Probleme zu umgehen, und fügt einen Re-Export der TypeScript-Typen als index.d.mts hinzu, um die CJS-Warnung zu beheben.

Altered ESM re-export technique (in index.mjs) to work around WebPack issues. Added a re-export of TypeScript types (as index.d.mts) to fix the 'Masquerading as CJS' warning from https://arethetypeswrong.github.io/.

Originalquelle(öffnet in neuem Tab)Problem melden

Serverless von Neon

Neon-Projekte direkt aus dem Azure-Portal erstellen

Azure-Nutzer können Neon-Projekte jetzt direkt aus dem Azure-Portal erstellen und zu einer bestehenden Neon-Ressource hinzufügen; alle Neon-Pläne unterstützen das Erstellen mehrerer Projekte.

For users of Neon on Azure: you can now create Neon projects directly from the Azure Portal. Creating a project is part of Neon Serverless Postgres resource creation. You can also add Neon projects to an existing Neon resource from a new Projects page. All Neon plans, including the Free plan, support creating multiple Neon projects.

Azure project form

<details><summary>**Fixes**</summary>
  • Fixed an issue that caused the Tables page in the Neon Console to reload when the browser page regained focus.
</details><details><summary>**Neon API**</summary> </details><details><summary>**Neon Console**</summary>
  • The Computes tab on individual branch pages in the Neon Console now shows Started and Suspended labels for the primary compute, indicating when the compute was last started or suspended.

    compute started label

</details><details><summary>**Slack**</summary> …

Originalquelle(öffnet in neuem Tab)Problem melden

Serverless von Neon

Neon Serverless Driver ist jetzt allgemein verfügbar

Der Neon serverless Driver für JavaScript/TypeScript hat Version 1.0.0 erreicht und ist jetzt allgemein verfügbar, mit verbessertem Code, stärkerem SQL-Injection-Schutz und besserer Leistung bei binären Daten.

The Neon serverless driver for JavaScript/TypeScript has reached version 1.0.0 and is now generally available! Built for environments like Vercel Functions, Cloudflare Workers, and even browsers, the driver carries SQL over HTTP or WebSockets; no raw TCP required.

This GA release brings a cleaner, more maintainable codebase, stronger SQL injection safeguards, support for composable tagged-template queries, and better performance when inserting binary data over HTTP.

What you need to know about the 1.0.0 GA release:

  • It requires Node.js v19 or later.

  • It includes a breaking change but only if you're calling the HTTP query template function as a conventional function. The first usage shown below remains safe and supported. However, the second usage is an SQL injection risk (notice the parentheses) and is no longer permitted and now throws an error. You'll need to update your app if you use it.

    // this usage remains safe and supported
    const resultA = await sql`SELECT * FROM table WHERE id = ${id}`;
    // this usage is not safe and now throws an error
    const resultB = await sql(`SELECT * FROM table WHERE id = ${id}`);
    

For more about these changes and others in the 1.0.0 GA release, please see the 1.0.0 release notes or read the blog post.

Originalquelle(öffnet in neuem Tab)Problem melden