GitShow/vercel/cosmosdb-server
vercel

cosmosdb-server

A Cosmos DB server implementation for testing your applications locally.

by vercel
Star on GitHubForknpm

TypeScript

178 stars34 forks15 contributorsQuiet · 5mo agoSince 20181.0.1MIT

Meet the team

See all 15 on GitHub →
nkzawa
nkzawa119 contributions
dependabot[bot]Bot
dependabot[bot]17 contributions
javivelasco
javivelasco12 contributions
mglagola
mglagola9 contributions
ofhouse
ofhouse8 contributions
dsschneidermann
dsschneidermann2 contributions
dglsparsons
dglsparsons2 contributions
craigandrews
craigandrews2 contributions

Languages

View on GitHub →
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 5mo ago
See all on GitHub →
niroboo
Using `ORDER BY` on a property that is undefined, causes the item to not be returnedOpenIssue

When a collection contains the following sample data: The server behaves normally with returning 3 correctly. When querying and using it returns all three items: When querying using it returns only the first two items, leaving out the third item:

niroboo · 3mo ago
elbasan
bump path-to-regexp to 8.4.1OpenPR

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 · 3mo ago
niroboo
ATN2 function takes the arguments reversedOpenIssue

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

Recent fixes

View closed PRs →
elprans
Strip all trailing slashes from request pathnameMergedPR

Some clients add trailing slashes to request URLs, which causes route matching to fail. Real Cosmos is ambivalent about trailing slashes, so we should be too.

elprans · 5mo ago
ofhouse
Upgrade workflow to node18MergedPR
ofhouse · 11mo ago
marc-vercel
[BREAKING CHANGE] Support PATCH operations (partial updates) and bump @azure/cosmos to v3.17.3MergedPR

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 (5mo ago). Open PRs: 8, open issues: 22. Last activity: 5mo ago. Community health: 50%. Top contributors: nkzawa, dependabot[bot], javivelasco, mglagola, ofhouse, dsschneidermann, dglsparsons, craigandrews, elprans, asleire and others.

·@ofershap

Replace github.com with gitshow.dev