Sharing JavaScript Code in Lightning Aura Components and Freezing JavaScript Prototypes

Sharing JavaScript Code in Lightning Aura Components and Freezing JavaScript Prototypes

The Winter ’19 release introduces a new session setting Freeze JavaScript Prototypes for Improved Security and Stability.

In my blog post, I point out how this may affect the way you choose to securely share code between Lightning Aura Components.

Head over to my blog to read the full post, see screen shots, code snippets, and more to:

  • Learn Lightning security features to mitigate risks of malicious JavaScript code.
  • Learn about sharing JavaScript code between Aura components using shared objects and service components.
  • Learn how Winter ’19 feature “Freeze JavaScript Prototypes” influences how you choose to share JavaScript code between components.

###

I’m a Salesforce Developer and Technical Leader. Learn more about my passion for Salesforce.com solutions @DouglasCAyers and douglascayers.com.


Great article Doug. So managed packages which use shared object approaches will be affected when deployed on subscriber orgs which have the Freeze Javascript Protype feature enabled?

To view or add a comment, sign in

More articles by Doug Ayers

  • How to Send Google and Outlook Calendar Invite Links in Email Templates

    Many years ago, before the modern age of using online calendars provided by products like G-Suite and Office 365, I…

    4 Comments
  • How to Declaratively Handle with Flow When Files are Shared to Records

    Recently I was talking with Michelle Hansen who had the use case that she’d like to run a Flow when a file is shared to…

  • Seeking Examples for Mass Action Scheduler

    ❓ Do you use Mass Action Scheduler? 🔍 I'm seeking use cases to expand the examples section of the wiki 🙌 To…

    2 Comments
  • Develop Against Any Org with Visual Studio Code Tasks

    I’m a big fan of Salesforce DX, particularly Salesforce CLI and scratch orgs. As the Salesforce Extensions for Visual…

    3 Comments
  • Mass Action Scheduler 2.0

    I'm proud to ring in the new year by announcing Release 2.0 of Mass Action Scheduler 🎉 This release delivers many…

    6 Comments
  • Dependency Injection and Flows

    A few weeks ago, Andy Fawcett introduced a new open source project via his blog post, Managing Dependency Injection…

    2 Comments
  • Mass Action Scheduler 1.6

    I’m proud to announce Release 1.6 of my open source project Mass Action Scheduler! Declaratively schedule Process…

    8 Comments
  • Mass Action Scheduler

    Inspired by Marie Chandra’s idea Ability to Schedule when Process Builder Triggers, I’m excited to announce my new app…

    5 Comments
  • Convert GoogleDoc records to Salesforce Files

    Prior to April 2015, Salesforce customers who used Google Apps (later renamed to G Suite) were able to create and link…

    1 Comment
  • Resolving Compile Error: Required class relationships must be maintained

    I recently stumbled upon this error while making an update to an Apex class in one of my managed packages. I was quite…

    3 Comments

Explore content categories