nats-io / nats.js Goto Github PK
View Code? Open in Web Editor NEWLicense: Apache License 2.0
License: Apache License 2.0
Readme states:
The core module also offers a for W3C Websocket transport (aka browser, Deno, and Node v22) via the exported wsconnect function.
However, @nats-io/nats-core
does not export wsconnect (or any other function that is relevant to connections for that matter.)
@nats-io/nats-core comes from npm. I discovered it while trying to walk around #48 as it's impossible to download any JSR modules for Deno (including transport-deno one.)
The source code seems to export wsconnect but in the final build it's not available.
wsconnect is exported
@nats-io/[email protected]
from npm
No response
No response
For nats-core, on jsr latest version is 3.0.0-25 whereas npm is at 3.0.0-17. Same for kv (-3 vs -7).
jsr and npm versions are even
(Should it really be a required field?)
No response
No response
25 delete(k: string, match = Match.Exact): void;
N/A
latest
linux
N/A
Downloading module via JSR does not work (this command was taken from Readme file)
$ deno add @nats-io/obj
error: jsr:@nats-io/obj was not found.
Also, visiting jsr.io page shows:
This package has not published a stable release yet.
Some misconfiguration maybe?
It works.
$ deno -v
deno 1.45.5
No response
No response
esbuild dev bundle
[DEBUG] Indirect calls to "require" will not be bundled [indirect-require]
../../node_modules/tweetnacl/nacl-fast.js:2378:20:
2378 │ } else if (typeof require !== 'undefined') {
╵ ~~~~~~~
nacl-fast.js as ESM module
"@nats-io/nats-core": "^3.0.0-25"
"esbuild": "^0.23.1"
No response
No response
Use strict MAJOR.MINOR.PATCH semantic versioning. Currently a -N
suffix is added to a version.
I'm not sure what's use of the suffix for this library but it causes problems in Deno when downloading most recent version of the library:
> import * as mod from "jsr:@nats-io/nats-transport-deno"
Uncaught TypeError:
Could not find version of '@nats-io/nats-transport-deno' that matches specified version constraint '*'
I think it would be beneficial for everyone to adhere to commonly used naming conventions to ensure compatibility across diverse JS ecosystem.
No response
Export StorageType
found in @nats-io/jetstream
in @nats-io/obj
Creating a bucket with custom storage uses (objm.create("myobj", { storage: StorageType.File })
) enum from jetstream requiring user to individually add both obj and jetstream packages to pkg manager.
With pleasure. Is this a change core contributors would be interested in reviwing?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.