# New Set methods

**URL:** https://forums.creativeclouddeveloper.com/t/new-set-methods/9050
**Category:** Photoshop
**Created:** [January 15, 2025, 3:19pm UTC](https://forums.creativeclouddeveloper.com/t/new-set-methods/9050 "2025-01-15T15:19:19Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Cris](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/cris/32/3884_2.png) [@Cris](https://forums.creativeclouddeveloper.com/u/Cris)
#### Post date: [January 15, 2025, 3:19pm UTC](https://forums.creativeclouddeveloper.com/t/new-set-methods/9050/1 "2025-01-15T15:19:19Z")

</div>

Hi,

is there any chance, that the new `Set` methods like [`intersection()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set/intersection), [`difference()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set/difference), [`union()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set/union) etc… will make it into UXP any time soon?  
It would make a lot of things much easier when I think of layer filterring 🙂

---

<div class="post-metadata">

### Author: ![Jarda](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/jarda/32/1909_2.png) [@Jarda](https://forums.creativeclouddeveloper.com/u/Jarda)
#### Post date: [January 16, 2025, 1:43pm UTC](https://forums.creativeclouddeveloper.com/t/new-set-methods/9050/2 "2025-01-16T13:43:51Z")

</div>

UXP team sometimes upgrades V8 engine responsible for it. The last time it was upgraded was on October 2024

> **[Jaroslav Bereza (@uxp.bereza.cz)](https://bsky.app/profile/uxp.bereza.cz/post/3l6ckijrmxz2h)**
>
> New JS features in UXP of Photoshop 2025?
> Seems like V8 engine was upgraded in UXP v8 and now it supports ECMAScript 2025 in Photoshop 2025. Photoshop 2024 only supported ECMAScript 2022. Meaning you can use a bunch of new features in JavaScript....

> **[Jaroslav Bereza (@uxp.bereza.cz)](https://bsky.app/profile/uxp.bereza.cz/post/3l6ut3ov3co2i)**
>
> So in UXP 8.0.1 the script engine V8 was updated to version exactly "11.8.172.13" Thanks Davide Barranca for pointing it out. #UXP #Photoshop #Plugins

---

<div class="post-metadata">

### Author: ![Cris](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/cris/32/3884_2.png) [@Cris](https://forums.creativeclouddeveloper.com/u/Cris)
#### Post date: [January 17, 2025, 8:10am UTC](https://forums.creativeclouddeveloper.com/t/new-set-methods/9050/3 "2025-01-17T08:10:40Z")

</div>

Thanks a lot for the info @Jarda!

So, according to Your links it should already be integrated or did I misunderstand something?  
I’ve updated PS and the UXP Developer Tools to the latest version.  
Can I see the running UXP version somewhere?  
I tried to get more info via the ‘About’ window of ‘UXP Developer Tools’ but this only shows the Dev Tool’s version, which currently is ‘2.1.0 (2.1.0.30)’ (Mac) – and via `core.getPluginInfo()`.

Sorry, I obviously have to learn a lot more and hope to not bother You guys with basic questions like these in the future too often anymore 🙈 .

Thanks again, I appreciate Your help!

---

<div class="post-metadata">

### Author: ![Cris](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/cris/32/3884_2.png) [@Cris](https://forums.creativeclouddeveloper.com/u/Cris)
#### Post date: [January 24, 2025, 7:03am UTC](https://forums.creativeclouddeveloper.com/t/new-set-methods/9050/4 "2025-01-24T07:03:12Z")

</div>

Nevermind, I found it out.  
You can get the version via

```js
const uxp = require("uxp");
const { versions } = uxp;
console.log(versions) // logs "uxp-8.1.0-1-bcbb734"

```

Didn’t find that right away in the [docs](https://developer.adobe.com/photoshop/uxp/2022/uxp-api/reference-js/Modules/uxp/Versions/Versions/).  
But for the new `Set` methods I may need a little bit more patience.
