profile
viewpoint
If you are wondering where the data of this site comes from, please visit https://api.github.com/users/dcousens/events. GitMemory does not store any data, but only uses NGINX to cache data for a period of time. The idea behind GitMemory is simply to give users a better reading experience.

dcousens/blacklist 34

A module that shallow copies an object, ignoring keys depending on the filter object passed to it.

dcousens/ordinal.js 34

A compact module to provide the English ordinal letters following a numeral

dcousens/haversine-distance 30

Haversine formula in Javascript. In meters. Nothing more.

dcousens/is-sorted 20

A small module to check if an Array is sorted

dcousens/RayTracer 17

A Haskell implementation of Andrew Kensler's business card raytracer.

dcousens/react-maps 14

Just a bike shed - don't use

dcousens/react-sentry 6

Listen to `EventEmitters` safely with automatic cleanup onComponentWillUnmount

dcousens/fisher-yates 5

A compact module to randomly sort an Array

dcousens/boids.js 4

A boids simulation written in Javascript using two.js.

issue commentsilky/ideas

the big book of intuition

https://en.wikipedia.org/wiki/List_of_common_misconceptions

silky

comment created time in 4 days

push eventvarstruct/varstruct

Daniel Cousens

commit sha 2374e03ed479e42c8a45d9d91db28691d1175548

fix typos

view details

push time in 7 days

push eventdcousens/qup.js

Daniel Cousens

commit sha 6858d00f069020334a93b0ed3aac2163cf5141e4

update README similar to tests

view details

push time in 10 days

push eventdcousens/qup.js

Daniel Cousens

commit sha c7039c93dcf6b2984732554ab16c3fd4dae5de08

add a commonjs compliant export

view details

Daniel Cousens

commit sha 88fce2206ceafff8af60835f8f2b6de6dcc5d6ea

update README similar to tests

view details

push time in 10 days

push eventdcousens/qup.js

Daniel Cousens

commit sha c122466cad7a83339ebff05834158a5bcc36707d

use 2 spaces

view details

push time in 11 days

push eventdcousens/qup.js

Daniel Cousens

commit sha c3a99a3dd45426174c9ed249b13eecf06afc354c

parameters cannot be spread

view details

push time in 11 days

push eventdcousens/qup.js

Daniel Cousens

commit sha 4d7438453a437eba7e9daf15fe5c1c44408fb796

clarify parameters in example

view details

push time in 11 days

created tagdcousens/qup.js

tagv3.0.0

A compact async stack-based concurrent queue with batch support

created time in 11 days

release dcousens/qup.js

v3.0.0

released time in 11 days

issue closedJedWatson/classnames

Convert to ESM only

On 2021-04-30, 25 days from now, NodeJS 10 will reach end of life. From that point all NodeJS environments will support ESM. Of course module bundlers already support this.

There are two older pull requests to achieve this. Both are trying to keep backwards compatibility

  • #150
  • #194

I think it’s time to drop support for alternative module systems and bower, meaning no new devdependencies are needed.

Bower users can depend on specific git tags. It the master branch should keep working for Bower users, perhaps a new main branch should be created for further development, so the master branch can stay untouched indefinitely.

I expect this to get some backlash at first from people who don’t like breaking changes, but this is what major releases are for in semver.

closed time in 11 days

remcohaszing

startedmicrosoft/TypeScript

started time in 18 days

issue closedJedWatson/classnames

Support for Typescript

Hi,

Is Typescript support available for classnames package or not yet? I'm asking because even if I install @types/classnames as a devDependencies I'm still getting the error that is not installed and give me the recommendation to install it.
Has anyone solved this problem and how (please) or still persists?

Thanks

closed time in a month

Mihai-github

startedfacebook/zstd

started time in a month

issue commentsilky/ideas

live programming with sound overlay from gymnastics

Type 'string' is not assignable to type 'never'.(2322)

"What a disappointing result"

silky

comment created time in a month

push eventJedWatson/classnames

Josh Medeski

commit sha 94acb8701bd00c4cc4f7c30a4acea8408b0dcd30

Add description to the function TS definition (#261)

view details

push time in a month

PR merged JedWatson/classnames

Add description to the function TS definition

When hovering over the function while using TypeScript, I want to see a quick description of what the function does.

Screen Shot 2021-08-06 at 6 27 13 PM

+3 -0

0 comment

1 changed file

joshmedeski

pr closed time in a month

PullRequestReviewEvent

issue commentcrypto-browserify/sha.js

Angular 6

I'd probably check feross/buffer, https://github.com/feross/buffer/issues/175, https://github.com/feross/buffer/issues/235, et cetera

JarekSour

comment created time in a month

issue closedJedWatson/classnames

Type declaration files are not included in 3.2.1 package

I installed classnames from npm and I got this error: Could not find a declaration file for module 'classnames'. I tried installing @types/classnames and the error was still there. In this link I realized classnames has it's own type declarations. I checked node_modules/classnames and there was no type declaration files there. I tried deleting node_modules and package-lock.json and uninstalled and installed it multiple times but it didn't work.

So I install version 3.2.0 and it included type declaration files and the error was gone.

closed time in a month

erfanasbari

issue commentJedWatson/classnames

Type declaration files are not included in 3.2.1 package

Hi @erfanasbari!

Do you mean 2.3.1? I cannot reproduce the problem you have outlined when using npm install classnames@2.3.1

erfanasbari

comment created time in a month

startedmountain-pass/addressr

started time in a month

push eventJedWatson/classnames

Jon Koops

commit sha 85792156da645af7ce41a9afb9f27e8d49294572

Add correct path to browser benchmarks (#258)

view details

push time in 3 months

PR merged JedWatson/classnames

Add correct path to browser benchmarks

Also updates the contribution guidelines with the changes in running the benchmarks and adds a section to inform contributors to run tests in real browsers.

+8 -4

0 comment

2 changed files

jonkoops

pr closed time in 3 months

push eventJedWatson/classnames

Jon Koops

commit sha e68f97c41d6ed6fb52762bfb849a61898cf23d44

Update examples with modern React and JS conventions (#257)

view details

push time in 3 months

pull request commentJedWatson/classnames

Update examples with modern React and JS conventions

This is amazing @jonkoops! Thank you

jonkoops

comment created time in 3 months

PullRequestReviewEvent

PR closed JedWatson/classnames

ES Modules, but as a non-breaking change

My hope is that this represents a baby-step towards #150 that might be easier to merge, since it's not a breaking change. All of the files remain in-place, but the main module (index.js) also has an ES Modules version.

The effect this has is more visible when bundled via Webpack or Rollup, but here's the raw size improvement just looking at minified versions of master VS this PR:

Current Master After this PR Difference
339b 255b -84b / 25%

I know this seems like a small value! But for a module downloaded 3M times per month, that's quite a few bytes over the wire. It also helps ensure classnames gets concatenated effectively by Webpack and Rollup, which makes the module more likely to be moved into shared code chunks that avoid duplication.

/cc @JedWatson @Andarist

+5503 -341

5 comments

8 changed files

developit

pr closed time in 3 months

pull request commentJedWatson/classnames

ES Modules, but as a non-breaking change

Merged https://github.com/JedWatson/classnames/pull/243

developit

comment created time in 3 months

push eventJedWatson/classnames

Jon Koops

commit sha cb8c7b050930b7a5e6e2e7fd235fde8aa7c0ea7b

Drop support for Bower and reccomend NPM or Yarn instead (#253) Co-authored-by: Daniel Cousens <413395+dcousens@users.noreply.github.com>

view details

push time in 3 months