Js-cookie: Remove the jquery-cookie tag from npm to not confuse people

Created on 8 Jul 2018  路  9Comments  路  Source: js-cookie/js-cookie

Here is my code in html .

<head>
    <title>Youtube Time Tracker</title>
    <link href="https://fonts.googleapis.com/css?family=Montserrat:100,400,700" rel="stylesheet">
    <link rel="stylesheet" href="css/popup.css">
    <script src="js/jquery.js"></script>
    <script src="js/cookie.min.js"></script>
    <script src="js/code.js"></script>
</head>

and in code.js where i want to save cookies -

$(window).load(function(){
     $.cookie('name', 'value', { expires: 7 });
    var a = $.cookie('name');
    alert(a);
})

I eve n tried with document.ready

Here what i get in error -
image

Most helpful comment

Who told you it was a jquery plugin? The examples are clear and simple. No where mentioned $.cookie

Use Cookies.set('name', 'value'); it works beautifully.

This project is not this one! https://github.com/carhartl/jquery-cookie

All 9 comments

Who told you it was a jquery plugin? The examples are clear and simple. No where mentioned $.cookie

Use Cookies.set('name', 'value'); it works beautifully.

This project is not this one! https://github.com/carhartl/jquery-cookie

As @BitpopCoin said, this is not a jquery plugin anymore for years. See https://github.com/carhartl/jquery-cookie/issues/349#issuecomment-116822133.

You should probably remove it from the keywords, then, yeah?

No it helps find the updated version

@Erutan409 I see. So were you looking for the tag jQuery-plugin in npm and that's why you got confused? What else did you get confused to believe it still had jQuery as a dependency. Would just remove the tag fix the problem?

Thanks

I was only confused for like 90 seconds when I was looking for a solution to my [cookie] problem. Took me that long to realize it wasn't a jQuery plugin, anymore.

My point is that your repo still has remnants of when it used to be a jQuery plugin. So:

Who told you it was a jquery plugin? The examples are clear and simple. No where mentioned $.cookie

Use Cookies.set('name', 'value'); it works beautifully.

This project is not this one! https://github.com/carhartl/jquery-cookie

In a way you're alluding to it being a jQuery plugin, if not for it just serving as meta data for historical purposes. Referring to @BitpopCoin 's remark.

I'm not going to engage in a debate about it. If you don't want to remove it, that's fine. Doesn't affect me at all and I'm still going to continue to use it. I just wanted to make sure you were aware of the aforementioned in case anyone else seems to stumble upon this assumption in the future.

@Erutan409 That's a great feedback. We might as well remove the tag cause we don't want to confuse people!
@sudhir600 Did you get confused due to the jquery-cookie npm tag also?

@BitpopCoin @FagnerMartinsBrack
Yes, I was assuming that it is jquery cookie plugin. it make confusion for developers. till writing this comment, there is still "jquery-plugin" mentions in keywords. hope you will remove so it will be excluded from google search. that day i found your package using google search by "jquery cookie plugin npm".

Thanks for understanding.

Ok I apologize

Was this page helpful?
0 / 5 - 0 ratings

Related issues

hrahimi270 picture hrahimi270  路  6Comments

Daijobou picture Daijobou  路  6Comments

edwardfhsiao picture edwardfhsiao  路  8Comments

nanndemoiikara picture nanndemoiikara  路  5Comments

oninross picture oninross  路  9Comments