{"id":154084,"date":"2026-01-18T17:11:55","date_gmt":"2026-01-18T15:11:55","guid":{"rendered":"https:\/\/prohoster.info\/blog\/novosti-interneta\/vypusk-javascript-biblioteki-jquery-4-0-2"},"modified":"2026-01-18T17:11:55","modified_gmt":"2026-01-18T15:11:55","slug":"vypusk-javascript-biblioteki-jquery-4-0-2","status":"publish","type":"post","link":"https:\/\/prohoster.info\/lv\/blog\/news\/vypusk-javascript-biblioteki-jquery-4-0-2","title":{"rendered":"JavaScript bibliot\u0113kas jQuery 4.0 izn\u0101kums","gt_translate_keys":[{"key":"rendered","format":"text"}]},"content":{"rendered":"<p>P\u0113c gandr\u012bz 10 gadiem kop\u0161 3.0 versijas publik\u0101cijas un 20 gadus p\u0113c projekta dibin\u0101\u0161anas, ir izlaista JavaScript bibliot\u0113ka jQuery 4.0, kuru, saska\u0146\u0101 ar W3Techs datiem, izmanto 70.9% no 10 miljoniem visvair\u0101k apmekl\u0113taj\u0101m t\u012bmek\u013ca vietn\u0113m. jQuery kods tiek izplat\u012bts saska\u0146\u0101 ar MIT licenci.       <\/p>\n<p> jQuery 4.0 izdo\u0161ana ietver atpaka\u013cnesader\u012bgas izmai\u0146as, tom\u0113r izstr\u0101d\u0101t\u0101ji apgalvo, ka vairums lietot\u0101ju sp\u0113s bezs\u0101p\u012bgi p\u0101riet uz jauno versiju ar minim\u0101l\u0101m izmai\u0146\u0101m sav\u0101 kod\u0101. Lai atvieglotu migr\u0101ciju, var izmantot speci\u0101lu papildin\u0101jumu. Atpaka\u013cnesader\u012bbas p\u0101rk\u0101pumi ir saist\u012bti ar novecoju\u0161a koda dz\u0113\u0161anu, da\u017e\u0101du iek\u0161\u0113jo nedokument\u0113to parametru no\u0146em\u0161anu, p\u0101rm\u0113r\u012bgi sare\u017e\u0123\u012btas uzved\u012bbas p\u0101rtrauk\u0161anu un novecoju\u0161o API atbalsta p\u0101rtrauk\u0161anu. Novecoju\u0161o API un p\u0101rl\u016bkprogrammu no\u0146em\u0161ana \u013c\u0101va samazin\u0101t gzip arh\u012bva lielumu ar bibliot\u0113ku par 3 KB (slim versija tagad aiz\u0146em 19.5 KB, bet pilna \u2014 27.5 KB).       <\/p>\n<p>Starp izmai\u0146\u0101m:  <\/p>\n<ul>\n<li class=\"l\"> Atbalsts p\u0101rl\u016bkam IE 10 un vec\u0101k\u0101m versij\u0101m ir p\u0101rtraukts (IE 11 atbalsts paliek, bet tiks iz\u0146emts jQuery 5.0), k\u0101 ar\u012b citiem vec\u0101kiem p\u0101rl\u016bkiem, piem\u0113ram, Edge Legacy, Android Browser un Firefox l\u012bdz 115 versijai.\n<li class=\"l\"> Ieb\u016bv\u0113ta atbalsta funkcija API Trusted Types, kas tiek att\u012bst\u012bta, lai aizsarg\u0101tu pret DOM manipul\u0101cij\u0101m, kas var novest pie m\u0101jas lapu skriptu uzbrukumiem (DOM XSS), piem\u0113ram, nepareizi apstr\u0101d\u0101jot lietot\u0101ju sniegtos datus eval() blokos vai atk\u0101rtojot '.innerHTML', kas var novest pie JavaScript kodu izpildes noteiktas lapas kontekst\u0101. jQuery metod\u0113m tagad var tikt nodots HTML kods TrustedHTML objektu form\u0101.\n<li class=\"l\"> jQuery kods p\u0101rg\u0101jis uz JavaScript ESM (ECMAScript Module) modu\u013ciem un var tikt pieg\u0101d\u0101ts un import\u0113ts k\u0101 modulis.\n<li class=\"l\"> Iz\u0146emti iepriek\u0161 novecoju\u0161ie funkcijas: jQuery.isArray, jQuery.parseJSON, jQuery.trim, jQuery.type, jQuery.now, jQuery.isNumeric, jQuery.isFunction, jQuery.isWindow, jQuery.camelCase, jQuery.nodeName, jQuery.cssNumber, jQuery.cssProps un jQuery.fx.interval. T\u0101 viet\u0101 ieteicams izmantot standarta JavaScript funkcijas Array.isArray(), JSON.parse(), String.prototype.trim() un Date.now().\n<li class=\"l\"> No\u0146emti nedokument\u0113tie iek\u0161\u0113jie metodes objekta Array \u2014 push, sort un splice.\n<li class=\"l\"> Notikumu apstr\u0101des k\u0101rt\u012bba fokusa mai\u0146ai ir piel\u0101gota W3C specifik\u0101cijai \u2014 blur, focusout, focus un focusin.\n<li class=\"l\"> Sabr\u012b vsistema (slim), kas nesatur ajax un effects modu\u013cus, ir samazin\u0101ts l\u012bdz 19.5k, atsakoties no Deferred objektiem (ieteicams izmantot standarta Promises) un Callbacks.  <\/ul>\n<p>Avots: <a content=\"nofollow\" rel=\"nofollow\" href=\"https:\/\/www.opennet.ru\/opennews\/art.shtml?num=64637\">opennet.lv<\/a> <\/p>","protected":false,"gt_translate_keys":[{"key":"rendered","format":"html"}]},"excerpt":{"rendered":"<p>\u041f\u043e\u0441\u043b\u0435 \u043f\u043e\u0447\u0442\u0438 10 \u043b\u0435\u0442 \u0441 \u043c\u043e\u043c\u0435\u043d\u0442\u0430 \u043f\u0443\u0431\u043b\u0438\u043a\u0430\u0446\u0438\u0438 \u0432\u0435\u0442\u043a\u0438 3.0 \u0438 \u0441\u043f\u0443\u0441\u0442\u044f 20 \u043b\u0435\u0442 \u043f\u043e\u0441\u043b\u0435 \u043e\u0441\u043d\u043e\u0432\u0430\u043d\u0438\u044f \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u0441\u043e\u0441\u0442\u043e\u044f\u043b\u0441\u044f \u0440\u0435\u043b\u0438\u0437 JavaScript-\u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438 jQuery 4.0, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u043e\u0439 \u043f\u043e \u0434\u0430\u043d\u043d\u044b\u043c \u043e\u0440\u0433\u0430\u043d\u0438\u0437\u0430\u0446\u0438\u0438 W3Techs \u043d\u0430 70.9% \u0438\u0437 10 \u043c\u043b\u043d \u043d\u0430\u0438\u0431\u043e\u043b\u0435\u0435 \u043f\u043e\u0441\u0435\u0449\u0430\u0435\u043c\u044b\u0445 \u0441\u0430\u0439\u0442\u043e\u0432 \u0432 \u0441\u0435\u0442\u0438. \u041a\u043e\u0434 jQuery \u0440\u0430\u0441\u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u044f\u0435\u0442\u0441\u044f \u043f\u043e\u0434 \u043b\u0438\u0446\u0435\u043d\u0437\u0438\u0435\u0439 MIT. \u0412\u044b\u043f\u0443\u0441\u043a jQuery 4.0 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f, \u043d\u0430\u0440\u0443\u0448\u0430\u044e\u0449\u0438\u0435 \u043e\u0431\u0440\u0430\u0442\u043d\u0443\u044e \u0441\u043e\u0432\u043c\u0435\u0441\u0442\u0438\u043c\u043e\u0441\u0442\u044c, \u043d\u043e \u043f\u043e \u0437\u0430\u0432\u0435\u0440\u0435\u043d\u0438\u044e \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u043e\u0432 \u0431\u043e\u043b\u044c\u0448\u0438\u043d\u0441\u0442\u0432\u043e [&hellip;]<\/p>\n","protected":false,"gt_translate_keys":[{"key":"rendered","format":"html"}]},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[702],"tags":[],"class_list":["post-154084","post","type-post","status-publish","format-standard","hentry","category-news"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.5.1 - aioseo.com -->\n\t<meta name=\"description\" content=\"\u041f\u043e\u0441\u043b\u0435 \u043f\u043e\u0447\u0442\u0438 10 \u043b\u0435\u0442 \u0441 \u043c\u043e\u043c\u0435\u043d\u0442\u0430 \u043f\u0443\u0431\u043b\u0438\u043a\u0430\u0446\u0438\u0438 \u0432\u0435\u0442\u043a\u0438 3.0 \u0438 \u0441\u043f\u0443\u0441\u0442\u044f 20 \u043b\u0435\u0442 \u043f\u043e\u0441\u043b\u0435 \u043e\u0441\u043d\u043e\u0432\u0430\u043d\u0438\u044f \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u0441\u043e\u0441\u0442\u043e\u044f\u043b\u0441\u044f \u0440\u0435\u043b\u0438\u0437 JavaScript-\u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438 jQuery 4.0, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u043e\u0439 \u043f\u043e \u0434\u0430\u043d\u043d\u044b\u043c \u043e\u0440\u0433\u0430\u043d\u0438\u0437\u0430\u0446\u0438\u0438 W3Techs \u043d\u0430 70.9% \u0438\u0437 10 \u043c\u043b\u043d \u043d\u0430\u0438\u0431\u043e\u043b\u0435\u0435.\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Yuri Gagarin\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/prohoster.info\/lv\/blog\/news\/vypusk-javascript-biblioteki-jquery-4-0-2\" \/>\n\t\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.5.1\" \/>\n\t\t<meta property=\"og:locale\" content=\"lv_LV\" \/>\n\t\t<meta property=\"og:site_name\" content=\"ProHoster | \u041a\u0443\u043f\u0438\u0442\u044c \u043d\u0430\u0434\u0435\u0436\u043d\u044b\u0439 \u0445\u043e\u0441\u0442\u0438\u043d\u0433 \u0434\u043b\u044f \u0441\u0430\u0439\u0442\u043e\u0432 \u0441 \u0437\u0430\u0449\u0438\u0442\u043e\u0439 \u043e\u0442 DDoS, VPS VDS \u0441\u0435\u0440\u0432\u0435\u0440\u044b\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"\ud83e\udd47\u0412\u044b\u043f\u0443\u0441\u043a JavaScript-\u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438 jQuery 4.0 | ProHoster\" \/>\n\t\t<meta property=\"og:description\" content=\"\u041f\u043e\u0441\u043b\u0435 \u043f\u043e\u0447\u0442\u0438 10 \u043b\u0435\u0442 \u0441 \u043c\u043e\u043c\u0435\u043d\u0442\u0430 \u043f\u0443\u0431\u043b\u0438\u043a\u0430\u0446\u0438\u0438 \u0432\u0435\u0442\u043a\u0438 3.0 \u0438 \u0441\u043f\u0443\u0441\u0442\u044f 20 \u043b\u0435\u0442 \u043f\u043e\u0441\u043b\u0435 \u043e\u0441\u043d\u043e\u0432\u0430\u043d\u0438\u044f \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u0441\u043e\u0441\u0442\u043e\u044f\u043b\u0441\u044f \u0440\u0435\u043b\u0438\u0437 JavaScript-\u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438 jQuery 4.0, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u043e\u0439 \u043f\u043e \u0434\u0430\u043d\u043d\u044b\u043c \u043e\u0440\u0433\u0430\u043d\u0438\u0437\u0430\u0446\u0438\u0438 W3Techs \u043d\u0430 70.9% \u0438\u0437 10 \u043c\u043b\u043d \u043d\u0430\u0438\u0431\u043e\u043b\u0435\u0435.\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/prohoster.info\/lv\/blog\/news\/vypusk-javascript-biblioteki-jquery-4-0-2\" \/>\n\t\t<meta property=\"og:image\" content=\"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg\" \/>\n\t\t<meta property=\"og:image:secure_url\" content=\"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg\" \/>\n\t\t<meta property=\"og:image:width\" content=\"350\" \/>\n\t\t<meta property=\"og:image:height\" content=\"350\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2026-01-18T15:11:55+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2026-01-18T15:11:55+00:00\" \/>\n\t\t<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/prohoster\" \/>\n\t\t<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/prohoster\" \/>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"\ud83e\udd47JavaScript bibliot\u0113kas jQuery 4.0 izn\u0101kums | ProHoster","description":"P\u0113c gandr\u012bz 10 gadiem kop\u0161 3.0 versijas izn\u0101k\u0161anas un 20 gadiem kop\u0161 projekta dibin\u0101\u0161anas, notika JavaScript bibliot\u0113kas jQuery 4.0 izlai\u0161ana, ko, saska\u0146\u0101 ar W3Techs datiem, izmanto 70.9% no 10 miljoniem popul\u0101r\u0101kajiem.","canonical_url":"https:\/\/prohoster.info\/lv\/blog\/news\/vypusk-javascript-biblioteki-jquery-4-0-2","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":null,"og:locale":"lv_LV","og:site_name":"ProHoster | \u041a\u0443\u043f\u0438\u0442\u044c \u043d\u0430\u0434\u0435\u0436\u043d\u044b\u0439 \u0445\u043e\u0441\u0442\u0438\u043d\u0433 \u0434\u043b\u044f \u0441\u0430\u0439\u0442\u043e\u0432 \u0441 \u0437\u0430\u0449\u0438\u0442\u043e\u0439 \u043e\u0442 DDoS, VPS VDS \u0441\u0435\u0440\u0432\u0435\u0440\u044b","og:type":"article","og:title":"\ud83e\udd47\u0412\u044b\u043f\u0443\u0441\u043a JavaScript-\u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438 jQuery 4.0 | ProHoster","og:description":"\u041f\u043e\u0441\u043b\u0435 \u043f\u043e\u0447\u0442\u0438 10 \u043b\u0435\u0442 \u0441 \u043c\u043e\u043c\u0435\u043d\u0442\u0430 \u043f\u0443\u0431\u043b\u0438\u043a\u0430\u0446\u0438\u0438 \u0432\u0435\u0442\u043a\u0438 3.0 \u0438 \u0441\u043f\u0443\u0441\u0442\u044f 20 \u043b\u0435\u0442 \u043f\u043e\u0441\u043b\u0435 \u043e\u0441\u043d\u043e\u0432\u0430\u043d\u0438\u044f \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u0441\u043e\u0441\u0442\u043e\u044f\u043b\u0441\u044f \u0440\u0435\u043b\u0438\u0437 JavaScript-\u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438 jQuery 4.0, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u043e\u0439 \u043f\u043e \u0434\u0430\u043d\u043d\u044b\u043c \u043e\u0440\u0433\u0430\u043d\u0438\u0437\u0430\u0446\u0438\u0438 W3Techs \u043d\u0430 70.9% \u0438\u0437 10 \u043c\u043b\u043d \u043d\u0430\u0438\u0431\u043e\u043b\u0435\u0435.","og:url":"https:\/\/prohoster.info\/lv\/blog\/news\/vypusk-javascript-biblioteki-jquery-4-0-2","og:image":"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg","og:image:secure_url":"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg","og:image:width":350,"og:image:height":350,"article:published_time":"2026-01-18T15:11:55+00:00","article:modified_time":"2026-01-18T15:11:55+00:00","article:publisher":"https:\/\/www.facebook.com\/prohoster","article:author":"https:\/\/www.facebook.com\/prohoster"},"aioseo_meta_data":{"post_id":"154084","title":null,"description":null,"keywords":null,"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"","isEnabled":true},"graphs":[]},"schema_type":"default","schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"seo_analyzer_scan_date":"2026-01-20 14:14:29","breadcrumb_settings":null,"limit_modified_date":false,"reviewed_by":null,"ai":null,"created":"2026-01-20 14:14:29","updated":"2026-01-20 14:14:29","focus_keyword":null,"additional_keywords":null,"truseo_locale":null},"gt_translate_keys":[{"key":"link","format":"url"}],"_links":{"self":[{"href":"https:\/\/prohoster.info\/lv\/wp-json\/wp\/v2\/posts\/154084","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/prohoster.info\/lv\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/prohoster.info\/lv\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/prohoster.info\/lv\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/prohoster.info\/lv\/wp-json\/wp\/v2\/comments?post=154084"}],"version-history":[{"count":0,"href":"https:\/\/prohoster.info\/lv\/wp-json\/wp\/v2\/posts\/154084\/revisions"}],"wp:attachment":[{"href":"https:\/\/prohoster.info\/lv\/wp-json\/wp\/v2\/media?parent=154084"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/prohoster.info\/lv\/wp-json\/wp\/v2\/categories?post=154084"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/prohoster.info\/lv\/wp-json\/wp\/v2\/tags?post=154084"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}