vercel

cosmosdb-server

A Cosmos DB server implementation for testing your applications locally.

by vercel

TypeScript

TypeScript96.7%
Shell1.9%
JavaScript1.4%

Commit activity

Last 12 weeks · 0 commits

Full graph →

Community health

2 of 6 standards met

Community profile →
50
✓README✓License○Contributing○Code of Conduct○Issue Template○PR Template

Recent PRs & issues

Quiet · Last activity 7mo ago
See all on GitHub →
elbasan

Vulnerability in the package CVE-2026-4867 https://cvefeed.io/vuln/detail/CVE-2026-4867 https://nvd.nist.gov/vuln/detail/CVE-2026-4867 https://app.opencve.io/cve/CVE-2026-4867

elbasan · 6mo ago
niroboo

According to the documentation for the first argument is and the second argument is and should equate to arctangent of y/x. After testing I found out that cosmosdb-server has the arguments reversed. Example from documentation: A test I wrote to verify the behavior: When I flip y and x it does work:

niroboo · 1y ago
marc-vercel

Changes We are testing with v3.17.3 instead of v3.10.x. The reason for that is that we need v3.15.x to support Patch operations, and since we are already updating the library, I have bumped it to the latest 3.X version, which is maintenance mode (they are already in the version v4.5+). Bumping to version v4.X should be another PR as it is a breaking change and more risky. In this PR I am only interested in adding support for the Patch operations. Another change is supporting Node 20 and 22 in the test matrix. We are also removing support for Node 14, 16 and 18, as they have reached their EOL and the new version from does not support that. Removing this support means it is a BREAKING CHANGE. The default NodeJS version has been moved from Node 14 to Node 20. What is Patch updates? Patch (Partial) updates allow us to only modify the fields that have changed from a CosmosDB document. Otherwise, the default behavior is to delete and create the Document again, which means the RU consumption increases in proportion to the Document size and we introduce more latency. Testing I have added integration tests to support the all patch operations, even if in the end we will only use three operations: , , . The main reason is that the main tests from azure SDK try all patch operations, and we want to pass them. There is also an additional test to verify that the condition works, if used. Also, I had to update the gitsubmodule used for testing to the latest one, due to errors and issues with all the previous versions.

marc-vercel · 1y ago
Structured data for AI agents

Repository: vercel/cosmosdb-server. Description: A Cosmos DB server implementation for testing your applications locally. Stars: 178, Forks: 34. Primary language: TypeScript. Languages: TypeScript (96.7%), Shell (1.9%), JavaScript (1.4%). License: MIT. Latest release: 1.0.1 (7mo ago). Open PRs: 8, open issues: 22. Last activity: 7mo ago. Community health: 50%. Top contributors: nkzawa, dependabot[bot], javivelasco, mglagola, ofhouse, dsschneidermann, dglsparsons, craigandrews, elprans, asleire and others.