hden / cuid Goto Github PK
View Code? Open in Web Editor NEWCollision-resistant ids for clojure and clojurescript.
License: MIT License
Collision-resistant ids for clojure and clojurescript.
License: MIT License
Although this compiles with :target :nodejs
as project.clj :compiler option, it then fails with
ReferenceError: navigator is not defined
at /home/clojure/test-node/run/resources/public/compiled_dev/parts/cuid/core.cljc:23:24
at Object.exports.runInThisContext (vm.js:54:17)
at nodeGlobalRequire (/home/clojure/test-node/run/resources/public/compiled_dev/parts/goog/bootstrap/nodejs.js:87:6)
at global.CLOSURE_IMPORT_SCRIPT (/home/clojure/test-node/run/resources/public/compiled_dev/parts/goog/bootstrap/nodejs.js:75:3)
at Object.goog.importScript_ (/home/clojure/test-node/run/resources/public/compiled_dev/parts/goog/base.js:907:9)
at Object.goog.writeScripts_ (/home/clojure/test-node/run/resources/public/compiled_dev/parts/goog/base.js:1420:16)
at Object.goog.require (/home/clojure/test-node/run/resources/public/compiled_dev/parts/goog/base.js:673:14)
at /home/clojure/test-node/run/resources/public/compiled_dev/parts/hat_node/calendar.js:8:6
at Object.exports.runInThisContext (vm.js:54:17)
at nodeGlobalRequire (/home/clojure/test-node/run/resources/public/compiled_dev/parts/goog/bootstrap/nodejs.js:87:6)
https://github.com/hden/cuid/blob/master/src/cuid/core.cljc#L23-L25
navigator & js/window likely to be an issue. Any suggestions ?
This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.
This repository currently has no open or pending branches.
.circleci/config.yml
project.clj
org.clojure:clojure 1.11.3
lein-cloverage:lein-cloverage 1.2.4
Lines 32 to 35 in 0525e9b
According to the CUID specification, it is described as follows regarding the Counter part:
The counter will roll over if the value gets too big.
It seems like this part has been omitted in the implementation.
Due to security concerns (which also exist in database auto-increment ids, uuid/guid, and most other id standrads), the Cuid standard is now deprecated in favor of Cuid2.
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.