Comments (9)
Thanks for reporting this. I documented the depencies in fd74b04 and published a new v1.6.6 release.
from jquery-timeago.
Thanks for investigating @rmm5t
Another reason for upgrading jQuery to >3.4.0: https://www.npmjs.com/advisories/796
from jquery-timeago.
@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.
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.
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.
@Art4 Thanks for chiming in. I'll run the test suite against jQuery 3.4 later today to verify.
from jquery-timeago.
@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.
Follow-up: Here's the test suite running green with jQuery 3.4.0:
http://timeago.yarp.com/test/
from jquery-timeago.
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.
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)
- Typescript and no jquery HOT 1
- Support multiple time zones HOT 3
- Can't implement TimeAgo from DateTime inserted into DB
- How do you implement the cutoff feature? HOT 6
- Hindi locale HOT 1
- Refusing to work on anything except Chrome HOT 3
- $.timeago.settings.cutoff Ajax after notworking
- Uncaught TypeError: Cannot read property 'replace' of undefined
- substitute function does not work for numbers > 9 HOT 1
- jQuery.timeago is undefined when setting cutoff HOT 2
- title on abbr tag shows time, only date on time tag HOT 2
- Timeago shows 2 hours ago eventhough the time is sooner HOT 3
- Add setting to pass options for date.toLocaleString()
- not work for weeks, months and years HOT 1
- How to deal with the time zone difference HOT 6
- JQuery Deprecated Methods HOT 1
- NaN variable appear after pasing variable to timeago
- How can I add translation for months' names? HOT 6
- add time ago on google map info windows
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jquery-timeago.