Skip to content

Commit

Permalink
New Upstash Redis implementation (#8350)
Browse files Browse the repository at this point in the history
* New Upstash Redis implementation

* Update packages/cache/upstash-redis/src/index.ts

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>

* Update packages/cache/upstash-redis/src/index.ts

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>

* Fix tests

* Fix tests

* Lets go

* Go

* Better testing

* Lets go

* ..

---------

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
  • Loading branch information
ardatan and coderabbitai[bot] authored Feb 11, 2025
1 parent fc44a1e commit 40673d5
Show file tree
Hide file tree
Showing 11 changed files with 793 additions and 255 deletions.
5 changes: 5 additions & 0 deletions .changeset/sixty-rivers-shave.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@graphql-mesh/cache-upstash-redis': patch
---

New Upstash Redis implementation
21 changes: 21 additions & 0 deletions .yarn/patches/jest-message-util-npm-29.7.0-7f88b6e8d1.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
diff --git a/build/index.js b/build/index.js
index d1cff260e9c9c17b57efde19268d563c35542682..a5c8543f3aa21f5a031f204e9f4c4a6d264cdabc 100644
--- a/build/index.js
+++ b/build/index.js
@@ -339,9 +339,13 @@ const getTopFrame = lines => {
const parsedFrame = stackUtils.parseLine(line.trim());
if (parsedFrame && parsedFrame.file) {
if (parsedFrame.file.startsWith('file://')) {
- parsedFrame.file = (0, _slash.default)(
- (0, _url.fileURLToPath)(parsedFrame.file)
- );
+ try {
+ parsedFrame.file = (0, _slash.default)(
+ (0, _url.fileURLToPath)(parsedFrame.file)
+ );
+ } catch(e) {
+ console.error(e);
+ }
}
return parsedFrame;
}
4 changes: 2 additions & 2 deletions e2e/cache-control/__snapshots__/cache-control.test.ts.snap
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`Cache Control Apollo Rover composes 1`] = `
exports[`Cache Control Composition via Apollo Rover composes 1`] = `
"schema
@link(url: "https://specs.apollo.dev/link/v1.0")
@link(url: "https://specs.apollo.dev/join/v0.3", for: EXECUTION)
Expand Down Expand Up @@ -98,7 +98,7 @@ type Query
}"
`;

exports[`Cache Control Mesh Compose composes 1`] = `
exports[`Cache Control Composition via Mesh Compose composes 1`] = `
"
schema
@link(url: "https://specs.apollo.dev/link/v1.0")
Expand Down
Loading

0 comments on commit 40673d5

Please sign in to comment.