Has there been new naming rules introduced for fun...
# prisma-whats-new
m
Has there been new naming rules introduced for functions? I’m forced to change my function names 😞 … It doesn’t say what the rules are, but after lots of trial and error, it seems to me that only
[a-zA-Z-_]
are allowed?
n
yes! the rules are only enforced when updating an existing function or creating a new one, so old functions are not affected if you don't touch them
your regex seems about right 😛
m
It also affects existing functions when working with graphcool-cli. I know, it’s Beta, guess I’m moving a little too fast 😄
Is there a security reason behind the changes?
n
no, but controlling names is always a good idea 😉 so far, function names have been completely free form.
m
I really wanted to have a separator other than
-
and
_
in my names. The two aren’t distinctive enough for me 😄, something like
+
would work well 😛
Yep, they were indeed freeform, which is why I’ve been spoiled.
n
think of the function names as file names, would you then need
+
? 🤔
m
I do have
+
in file names 😂 (well, folder names)
😄 1
Angular conventions 🙂
n
let me see what I can do 🙂
m
Thanks, for now I’ve gone with
__
as my new special separator 😄