{"id":367,"date":"2019-12-17T08:31:02","date_gmt":"2019-12-17T07:31:02","guid":{"rendered":"https:\/\/texei.com\/non-classe\/day-17-select-the-api-version-for-lightning-locker-texeiadventcalendar\/"},"modified":"2023-08-17T14:10:33","modified_gmt":"2023-08-17T12:10:33","slug":"day-17-select-the-api-version-for-lightning-locker-texeiadventcalendar","status":"publish","type":"post","link":"https:\/\/texei.com\/en\/advices\/day-17-select-the-api-version-for-lightning-locker-texeiadventcalendar\/","title":{"rendered":"Day 17: Select the API Version for Lightning Locker #TexeiAdventCalendar"},"content":{"rendered":"<p><em>Each day we will reveal our \u201ctip of the day\u201d regarding the #Winter20 release.<\/em><\/p>\n<h3>What\u2019s new?<\/h3>\n<p>Now you can select the API version used by Lightning Locker across your org. The default is the current API version, which includes the latest Locker security enhancements.<\/p>\n<p>Select an older API version when custom components only comply with Locker in an older version. When components become compliant with the current security enhancements, you can change the setting to the current API version.<\/p>\n<figure><img fetchpriority=\"high\" decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/texei.com\/dev\/wp-content\/uploads\/2021\/09\/fef51-1onlh1ossyamfiihuwnk1mg.png\" alt=\"Lightning Locker API\" width=\"800\" height=\"332\" data-width=\"1302\" data-height=\"541\" \/><\/figure>\n<h3>We love Lightning Locker API!<\/h3>\n<p>Yesss, we love it\u00a0!! because with this new feature, we can modify the API version for lightning Locker to give the time to our developers to update their components and comply with Locker\u2019s latest security enhancements.<\/p>\n<p>You can learn more about this feature in the Release Notes <a href=\"https:\/\/releasenotes.docs.salesforce.com\/en-us\/winter20\/release-notes\/rn_lc_locker.htm\" target=\"_blank\" rel=\"noopener\">here<\/a>.<\/p>\n<p>And in the Salesforce Help documentation<a href=\"https:\/\/developer.salesforce.com\/docs\/atlas.en-us.lightning.meta\/lightning\/security_locker_api_setting.htm\" target=\"_blank\" rel=\"noopener\"> here<\/a>.<\/p>\n<p>Want to continue learning? Check out our next article <a href=\"https:\/\/texei.com\/conseils\/day-12-local-development-server-for-lightning-web-components\/\" target=\"_blank\" rel=\"noopener\">Local development server for Lightning Web Components<\/a> and follow us on <a href=\"https:\/\/www.linkedin.com\/company\/texei\/\" target=\"_blank\" rel=\"noopener\">Linkedin<\/a>!<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Each day we will reveal our \u201ctip of the day\u201d regarding the #Winter20 release. What\u2019s new? Now you can select the API version used by Lightning Locker across your org. The default is the current API version, which includes the latest Locker security enhancements. Select an older API version when custom components only comply with [&hellip;]<\/p>\n","protected":false},"author":29,"featured_media":5280,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[300],"tags":[312,311],"class_list":["post-367","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-advices","tag-api-en","tag-lightning-locker"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v27.3 (Yoast SEO v27.3) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>Day 17: Select the API Version for Lightning Locker #TexeiAdventCalendar - Texe\u00ef<\/title>\n<meta name=\"description\" content=\"Upgrade your Lightning Locker API version for enhanced security in Salesforce Winter &#039;20 release. Adapt components gradually.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/texei.com\/en\/advices\/day-17-select-the-api-version-for-lightning-locker-texeiadventcalendar\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Day 17: Select the API Version for Lightning Locker #TexeiAdventCalendar\" \/>\n<meta property=\"og:description\" content=\"Upgrade your Lightning Locker API version for enhanced security in Salesforce Winter &#039;20 release. Adapt components gradually.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/texei.com\/en\/advices\/day-17-select-the-api-version-for-lightning-locker-texeiadventcalendar\/\" \/>\n<meta property=\"og:site_name\" content=\"Texe\u00ef\" \/>\n<meta property=\"article:published_time\" content=\"2019-12-17T07:31:02+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-08-17T12:10:33+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/texei.com\/dev\/wp-content\/uploads\/2019\/12\/Sans-titre-4.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1920\" \/>\n\t<meta property=\"og:image:height\" content=\"1080\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Oussama Labaied\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/texei.com\\\/en\\\/advices\\\/day-17-select-the-api-version-for-lightning-locker-texeiadventcalendar\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/texei.com\\\/en\\\/advices\\\/day-17-select-the-api-version-for-lightning-locker-texeiadventcalendar\\\/\"},\"author\":{\"name\":\"Oussama Labaied\",\"@id\":\"https:\\\/\\\/texei.com\\\/#\\\/schema\\\/person\\\/76aebd0100ed96071e8527974dd8f31f\"},\"headline\":\"Day 17: Select the API Version for Lightning Locker #TexeiAdventCalendar\",\"datePublished\":\"2019-12-17T07:31:02+00:00\",\"dateModified\":\"2023-08-17T12:10:33+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/texei.com\\\/en\\\/advices\\\/day-17-select-the-api-version-for-lightning-locker-texeiadventcalendar\\\/\"},\"wordCount\":172,\"publisher\":{\"@id\":\"https:\\\/\\\/texei.com\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/texei.com\\\/en\\\/advices\\\/day-17-select-the-api-version-for-lightning-locker-texeiadventcalendar\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/texei.com\\\/dev\\\/wp-content\\\/uploads\\\/2019\\\/12\\\/Sans-titre-4.png\",\"keywords\":[\"API\",\"Lightning Locker\"],\"articleSection\":[\"Advices\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/texei.com\\\/en\\\/advices\\\/day-17-select-the-api-version-for-lightning-locker-texeiadventcalendar\\\/\",\"url\":\"https:\\\/\\\/texei.com\\\/en\\\/advices\\\/day-17-select-the-api-version-for-lightning-locker-texeiadventcalendar\\\/\",\"name\":\"Day 17: Select the API Version for Lightning Locker #TexeiAdventCalendar - Texe\u00ef\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/texei.com\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/texei.com\\\/en\\\/advices\\\/day-17-select-the-api-version-for-lightning-locker-texeiadventcalendar\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/texei.com\\\/en\\\/advices\\\/day-17-select-the-api-version-for-lightning-locker-texeiadventcalendar\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/texei.com\\\/dev\\\/wp-content\\\/uploads\\\/2019\\\/12\\\/Sans-titre-4.png\",\"datePublished\":\"2019-12-17T07:31:02+00:00\",\"dateModified\":\"2023-08-17T12:10:33+00:00\",\"description\":\"Upgrade your Lightning Locker API version for enhanced security in Salesforce Winter '20 release. Adapt components gradually.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/texei.com\\\/en\\\/advices\\\/day-17-select-the-api-version-for-lightning-locker-texeiadventcalendar\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/texei.com\\\/en\\\/advices\\\/day-17-select-the-api-version-for-lightning-locker-texeiadventcalendar\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/texei.com\\\/en\\\/advices\\\/day-17-select-the-api-version-for-lightning-locker-texeiadventcalendar\\\/#primaryimage\",\"url\":\"https:\\\/\\\/texei.com\\\/dev\\\/wp-content\\\/uploads\\\/2019\\\/12\\\/Sans-titre-4.png\",\"contentUrl\":\"https:\\\/\\\/texei.com\\\/dev\\\/wp-content\\\/uploads\\\/2019\\\/12\\\/Sans-titre-4.png\",\"width\":1920,\"height\":1080},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/texei.com\\\/en\\\/advices\\\/day-17-select-the-api-version-for-lightning-locker-texeiadventcalendar\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/texei.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Advices\",\"item\":\"https:\\\/\\\/texei.com\\\/en\\\/category\\\/advices\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Day 17: Select the API Version for Lightning Locker #TexeiAdventCalendar\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/texei.com\\\/#website\",\"url\":\"https:\\\/\\\/texei.com\\\/\",\"name\":\"Texe\u00ef\",\"description\":\"Turn your IT into Business\",\"publisher\":{\"@id\":\"https:\\\/\\\/texei.com\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/texei.com\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/texei.com\\\/#organization\",\"name\":\"Texe\u00ef\",\"url\":\"https:\\\/\\\/texei.com\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/texei.com\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/texei.com\\\/dev\\\/wp-content\\\/uploads\\\/2021\\\/03\\\/logo-essai-1.jpg\",\"contentUrl\":\"https:\\\/\\\/texei.com\\\/dev\\\/wp-content\\\/uploads\\\/2021\\\/03\\\/logo-essai-1.jpg\",\"width\":2560,\"height\":1102,\"caption\":\"Texe\u00ef\"},\"image\":{\"@id\":\"https:\\\/\\\/texei.com\\\/#\\\/schema\\\/logo\\\/image\\\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/texei.com\\\/#\\\/schema\\\/person\\\/76aebd0100ed96071e8527974dd8f31f\",\"name\":\"Oussama Labaied\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/texei.com\\\/dev\\\/wp-content\\\/uploads\\\/2022\\\/01\\\/avatar_user_29_1642694544-96x96.jpeg\",\"url\":\"https:\\\/\\\/texei.com\\\/dev\\\/wp-content\\\/uploads\\\/2022\\\/01\\\/avatar_user_29_1642694544-96x96.jpeg\",\"contentUrl\":\"https:\\\/\\\/texei.com\\\/dev\\\/wp-content\\\/uploads\\\/2022\\\/01\\\/avatar_user_29_1642694544-96x96.jpeg\",\"caption\":\"Oussama Labaied\"},\"url\":\"https:\\\/\\\/texei.com\\\/en\\\/author\\\/oussamalabaied\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Day 17: Select the API Version for Lightning Locker #TexeiAdventCalendar - Texe\u00ef","description":"Upgrade your Lightning Locker API version for enhanced security in Salesforce Winter '20 release. Adapt components gradually.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/texei.com\/en\/advices\/day-17-select-the-api-version-for-lightning-locker-texeiadventcalendar\/","og_locale":"en_US","og_type":"article","og_title":"Day 17: Select the API Version for Lightning Locker #TexeiAdventCalendar","og_description":"Upgrade your Lightning Locker API version for enhanced security in Salesforce Winter '20 release. Adapt components gradually.","og_url":"https:\/\/texei.com\/en\/advices\/day-17-select-the-api-version-for-lightning-locker-texeiadventcalendar\/","og_site_name":"Texe\u00ef","article_published_time":"2019-12-17T07:31:02+00:00","article_modified_time":"2023-08-17T12:10:33+00:00","og_image":[{"width":1920,"height":1080,"url":"https:\/\/texei.com\/dev\/wp-content\/uploads\/2019\/12\/Sans-titre-4.png","type":"image\/png"}],"author":"Oussama Labaied","twitter_card":"summary_large_image","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/texei.com\/en\/advices\/day-17-select-the-api-version-for-lightning-locker-texeiadventcalendar\/#article","isPartOf":{"@id":"https:\/\/texei.com\/en\/advices\/day-17-select-the-api-version-for-lightning-locker-texeiadventcalendar\/"},"author":{"name":"Oussama Labaied","@id":"https:\/\/texei.com\/#\/schema\/person\/76aebd0100ed96071e8527974dd8f31f"},"headline":"Day 17: Select the API Version for Lightning Locker #TexeiAdventCalendar","datePublished":"2019-12-17T07:31:02+00:00","dateModified":"2023-08-17T12:10:33+00:00","mainEntityOfPage":{"@id":"https:\/\/texei.com\/en\/advices\/day-17-select-the-api-version-for-lightning-locker-texeiadventcalendar\/"},"wordCount":172,"publisher":{"@id":"https:\/\/texei.com\/#organization"},"image":{"@id":"https:\/\/texei.com\/en\/advices\/day-17-select-the-api-version-for-lightning-locker-texeiadventcalendar\/#primaryimage"},"thumbnailUrl":"https:\/\/texei.com\/dev\/wp-content\/uploads\/2019\/12\/Sans-titre-4.png","keywords":["API","Lightning Locker"],"articleSection":["Advices"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/texei.com\/en\/advices\/day-17-select-the-api-version-for-lightning-locker-texeiadventcalendar\/","url":"https:\/\/texei.com\/en\/advices\/day-17-select-the-api-version-for-lightning-locker-texeiadventcalendar\/","name":"Day 17: Select the API Version for Lightning Locker #TexeiAdventCalendar - Texe\u00ef","isPartOf":{"@id":"https:\/\/texei.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/texei.com\/en\/advices\/day-17-select-the-api-version-for-lightning-locker-texeiadventcalendar\/#primaryimage"},"image":{"@id":"https:\/\/texei.com\/en\/advices\/day-17-select-the-api-version-for-lightning-locker-texeiadventcalendar\/#primaryimage"},"thumbnailUrl":"https:\/\/texei.com\/dev\/wp-content\/uploads\/2019\/12\/Sans-titre-4.png","datePublished":"2019-12-17T07:31:02+00:00","dateModified":"2023-08-17T12:10:33+00:00","description":"Upgrade your Lightning Locker API version for enhanced security in Salesforce Winter '20 release. Adapt components gradually.","breadcrumb":{"@id":"https:\/\/texei.com\/en\/advices\/day-17-select-the-api-version-for-lightning-locker-texeiadventcalendar\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/texei.com\/en\/advices\/day-17-select-the-api-version-for-lightning-locker-texeiadventcalendar\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/texei.com\/en\/advices\/day-17-select-the-api-version-for-lightning-locker-texeiadventcalendar\/#primaryimage","url":"https:\/\/texei.com\/dev\/wp-content\/uploads\/2019\/12\/Sans-titre-4.png","contentUrl":"https:\/\/texei.com\/dev\/wp-content\/uploads\/2019\/12\/Sans-titre-4.png","width":1920,"height":1080},{"@type":"BreadcrumbList","@id":"https:\/\/texei.com\/en\/advices\/day-17-select-the-api-version-for-lightning-locker-texeiadventcalendar\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/texei.com\/"},{"@type":"ListItem","position":2,"name":"Advices","item":"https:\/\/texei.com\/en\/category\/advices\/"},{"@type":"ListItem","position":3,"name":"Day 17: Select the API Version for Lightning Locker #TexeiAdventCalendar"}]},{"@type":"WebSite","@id":"https:\/\/texei.com\/#website","url":"https:\/\/texei.com\/","name":"Texe\u00ef","description":"Turn your IT into Business","publisher":{"@id":"https:\/\/texei.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/texei.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/texei.com\/#organization","name":"Texe\u00ef","url":"https:\/\/texei.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/texei.com\/#\/schema\/logo\/image\/","url":"https:\/\/texei.com\/dev\/wp-content\/uploads\/2021\/03\/logo-essai-1.jpg","contentUrl":"https:\/\/texei.com\/dev\/wp-content\/uploads\/2021\/03\/logo-essai-1.jpg","width":2560,"height":1102,"caption":"Texe\u00ef"},"image":{"@id":"https:\/\/texei.com\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/texei.com\/#\/schema\/person\/76aebd0100ed96071e8527974dd8f31f","name":"Oussama Labaied","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/texei.com\/dev\/wp-content\/uploads\/2022\/01\/avatar_user_29_1642694544-96x96.jpeg","url":"https:\/\/texei.com\/dev\/wp-content\/uploads\/2022\/01\/avatar_user_29_1642694544-96x96.jpeg","contentUrl":"https:\/\/texei.com\/dev\/wp-content\/uploads\/2022\/01\/avatar_user_29_1642694544-96x96.jpeg","caption":"Oussama Labaied"},"url":"https:\/\/texei.com\/en\/author\/oussamalabaied\/"}]}},"_links":{"self":[{"href":"https:\/\/texei.com\/en\/wp-json\/wp\/v2\/posts\/367","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/texei.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/texei.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/texei.com\/en\/wp-json\/wp\/v2\/users\/29"}],"replies":[{"embeddable":true,"href":"https:\/\/texei.com\/en\/wp-json\/wp\/v2\/comments?post=367"}],"version-history":[{"count":0,"href":"https:\/\/texei.com\/en\/wp-json\/wp\/v2\/posts\/367\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/texei.com\/en\/wp-json\/wp\/v2\/media\/5280"}],"wp:attachment":[{"href":"https:\/\/texei.com\/en\/wp-json\/wp\/v2\/media?parent=367"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/texei.com\/en\/wp-json\/wp\/v2\/categories?post=367"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/texei.com\/en\/wp-json\/wp\/v2\/tags?post=367"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}