-
-
Notifications
You must be signed in to change notification settings - Fork 127
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rewrite of the Redis extension #203
Conversation
OMG, nice, thanks for kicking this off! |
Could use your help here on structuring @hanspagel . This extension relies a lot on stuff in server.
In order to achieve this I think I need some sort of hook or callback when all |
Oh, you’re message got somehow lost in my notifications. I tried to load code from other packages but failed. It’s only possible with hacky workarounds. I only the two solutions: Moving something to the shared folder. Or duplicate code. We can add the concept of priorities to make sure extensions are loaded in the right order (if that’s needed). This exists in ProseMirror/tiptap and works fine. Or we could introduce a onDocmentCreated hook. What do you prefer? |
I don’t like the name. Maybe @hocuspocus/redis-scaling? Not sure. Don’t rename it yet. |
Could we use an alias in development so
I added
With some small refactoring I can make the pubsub backend pluggable, worth bearing in mind. |
I tried to have the tests understand the aliases in It would probably be easiest to remove the esm requirement. |
That would hurt. Or we’re using that symlink hack and hope to get rid of it in the future? |
With the latest TypeScript beta, users should be able to use custom loaders in order to get tsconfig-paths to support ESM without any changes on their side: dividab/tsconfig-paths#122 (comment) Would just need to handle all the annoying node.js idiosyncrasies regarding importing index.[tj]s, different file extensions, and folders. |
I think the work updating the tests to understand the modules should be done in it's own PR and this PR can be considered blocked by it, which is truly unfortunate as it's so close. |
I’ll take care of it this week ✌️ |
…ted, but only when they don’t have new connections
Made good progress, had to switch to a new branch (because I’m an idiot) though. I’d like to do or at least look into the following, before I file a new PR:
|
Looks like I have lots to catchup on 😅 – glad you're working on it! |
Closing this here in favor of #285, which is based on that branch here. Details follow. Will release very soon. |
Very much work in progress, but opened so others know work is ongoing 😄
TODO
onPersist
onChange
onCreateDocument
closes #178