Giter Site home page Giter Site logo

Comments (9)

rmm5t avatar rmm5t commented on June 15, 2024 2

Thanks for reporting this. I documented the depencies in fd74b04 and published a new v1.6.6 release.

from jquery-timeago.

Art4 avatar Art4 commented on June 15, 2024 1

Thanks for investigating @rmm5t

Another reason for upgrading jQuery to >3.4.0: https://www.npmjs.com/advisories/796

from jquery-timeago.

Art4 avatar Art4 commented on June 15, 2024 1

@rmm5t I've testet v1.6.7 with jQuery 3.4.0 and can confirm that everything works. Thank you very much. πŸ‘

@lowwa132 You can try to update manually to jQuery 3.4.0 by running npm i -S [email protected].

from jquery-timeago.

Art4 avatar Art4 commented on June 15, 2024

I manually downgraded timeago to 1.6.5 because with 1.6.6 there is a addition dependency to jQuery 3.3.1 and timeago is not available in jQuery 3.4.0 anymore in my webpack setup.

@lowwa132

It seems this version is incompatible with timeago.js since jQuery.timeago is undefined in developper tools.

This assumption seems to be wrong. I'm using jQuery 3.4.0 with timeago v1.6.5 without problems. I think your problem lies elsewhere and this "bugfix" breaks some applications.

from jquery-timeago.

rmm5t avatar rmm5t commented on June 15, 2024

@Art4 Thanks for chiming in. I'll run the test suite against jQuery 3.4 later today to verify.

from jquery-timeago.

rmm5t avatar rmm5t commented on June 15, 2024

@Art4 You're right. The timeago test suite passes 100% under jQuery 3.4.0.

@lowwa132 It's possible the test suite is missing an edge case. Could you please include the exact errors that you ran into that made you believe timeago was incompatible with jQuery 3.4.0? Better yet, please compose a simple use-case (with jsfiddle or similar) that fails with jQuery 3.4.0.

from jquery-timeago.

rmm5t avatar rmm5t commented on June 15, 2024

Follow-up: Here's the test suite running green with jQuery 3.4.0:
http://timeago.yarp.com/test/

from jquery-timeago.

lowwa132 avatar lowwa132 commented on June 15, 2024

I'm not a Webpack pro, nor JS, but it seems that with my original package.json it produces 2 jQuery source files in my app.js . Thus, if timeago is included between the 2 jQuery sources, the reference is lost.
If I remove my "jquery": "^3.2.1", dependency everyrthing works. I don't really know how to fix this, but i'll search :) Sorry for the inconvenience.

from jquery-timeago.

rmm5t avatar rmm5t commented on June 15, 2024

Okay, I just released v1.6.7 that relaxes the jquery dependencies. I'm going to close this issue.

If anyone finds a reason where timeago doesn’t work with jQuery 3.4.0, please submit a use-case in the form of either a jsfiddle or a new failing test case.

from jquery-timeago.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.