postmate icon indicating copy to clipboard operation
postmate copied to clipboard

if (process.env.NODE_ENV !== 'production') {

Open Acrontum-Carmichael opened this issue 4 years ago • 6 comments

What Is the issue?

There are many calls to the node process global which is not present in the browser. EG: https://github.com/dollarshaveclub/postmate/blob/master/src/postmate.js#L128

I cannot see anything about this in the readme but of course it break when i try to run things.

Acrontum-Carmichael avatar Sep 16 '20 16:09 Acrontum-Carmichael

Is project still being actively maintained by the maintainers?

There are a lot of outstanding issues and PRs that are not being addressed.

@aptran @funbunch @hlfcoding

Acrontum-Carmichael avatar Oct 28 '20 17:10 Acrontum-Carmichael

@Acrontum-Carmichael I have also created an Issue of the question before on another matter, but I haven't received a response to that one. It's been 9 months since the last master merge, plus the release to npm has had no activity for over a year. I have decided that this is not healthy and I have switched to another package that provides the same functionality. https://github.com/krakenjs/post-robot

aiji42 avatar Oct 28 '20 17:10 aiji42

Thanks for the tip @aiji42 :+1:

Acrontum-Carmichael avatar Oct 28 '20 17:10 Acrontum-Carmichael

Although true @aiji42 - the size of this repo is significantly smaller that post-robot.. postmate = 4.3kb minified post-robot = 38.7kb minified

Acrontum-Carmichael avatar Oct 28 '20 19:10 Acrontum-Carmichael

https://www.npmjs.com/package/penpal

This guy seems to have a decent alternative - in the readme he give credit for inspiration to this lib.

.min version is around 6kb so still reasonably lightweight @aiji42

Acrontum-Carmichael avatar Oct 28 '20 20:10 Acrontum-Carmichael

https://www.npmjs.com/package/postmatex

until the new devs want it back.

open to anyone wanting to help keep it alive.

all outstanding prs merged in and deps updated.

j-d-carmichael avatar Oct 29 '20 15:10 j-d-carmichael