p5.js icon indicating copy to clipboard operation
p5.js copied to clipboard

[2.0] Deprecate `array()` method of `p5.Vector`

Open GregStanton opened this issue 3 months ago • 6 comments

Deprecate array() method of p5.Vector

Since p5.js 2.0 will offer a new way of getting and setting an array containing the components of a vector, array() may be deprecated. Note that this method has instance and static versions.

GregStanton avatar Oct 15 '25 11:10 GregStanton

Hi @GregStanton, I would like to work on this issue could you assign it to me , thanks

hxrshxz avatar Oct 15 '25 14:10 hxrshxz

hi @GregStanton i would like to work on it could please assign me

thanks for maintaining the project

ayushman1210 avatar Oct 15 '25 17:10 ayushman1210

Hi! @GregStanton , I’m interested in working on this issue. I plan to start the deprecation process for p5.Vector.array() by adding a @deprecated tag and a console warning, without changing functionality. Please assign this issue to me. Also, let me know if documentation updates should be included at this stage or handled later. Thank you!

lokesh-singhal avatar Oct 18 '25 10:10 lokesh-singhal

Hi @hxrshxz, @ayushman1210, and @lokesh-singhal! Thank you all for your offers to help.

Are you still interested in helping out @hxrshxz? You're first in line.

I think work on this issue can probably begin. We're still working out some of the new API in #8152, but it doesn't look like array() will continue to be supported. Do you think this issue is safe to assign @davepagurek?

GregStanton avatar Oct 22 '25 14:10 GregStanton

Yep go ahead!

davepagurek avatar Oct 22 '25 14:10 davepagurek

Hi everyone, thanks so much for all the lively discussion of the p5.js 2.x Vector implementation! Now that that 2.1 is released, we wanted to set up a more direct discussion space for p5.js 2.x Vector implementation bugfixes, documentation, and improvements. So, here is a Discord channel: https://discord.gg/gH3VcRKhen

As we discuss/unblock each of the vector issues, I will also follow up on those issues as a comment. So if you prefer to participate only (or primarily) on GitHub, that still also works!

ksen0 avatar Nov 14 '25 09:11 ksen0