Dave Merrill
05/31/2023, 2:31 PMcfscript support for script-based CFCs, such as query and storedproc
What does that mean exactly?Evil Ware
05/31/2023, 2:38 PMaliaspooryorik
new Query()
has been deprecated for a while. I raised tickets about it as it has scoping issues and was told "won't fix" as it's deprecated.aliaspooryorik
aliaspooryorik
aliaspooryorik
Its a valid bug but there is no active development on these CFCs and we recommend to use QueryExecute function. So closing this issue.
aliaspooryorik
aliaspooryorik
Dave Merrill
05/31/2023, 2:45 PMEvil Ware
05/31/2023, 2:46 PMaliaspooryorik
Evil Ware
05/31/2023, 2:51 PMaliaspooryorik
Evil Ware
05/31/2023, 2:52 PMDave Merrill
05/31/2023, 3:11 PMMark Takata (Adobe)
05/31/2023, 3:46 PMDave Merrill
05/31/2023, 4:13 PMMark Takata (Adobe)
05/31/2023, 4:40 PMseancorfield
cf<tag> { }
syntax!) and then the CFCs stopped getting updates and the guidance was "don't use them -- switch to the "native" cfscript stuff instead.
The community guidance has pretty much always been "don't use them -- they're buggy!" š
The "deprecated" code in question is stuff like new Query(...)
, new Mail(...)
, `new Http(...)
(I forget the exact names of those CFCs -- I never used them because they were buggy! -- but you should be able to find Query.cfc
etc in your CF install somewhere and that will tell you the full list.seancorfield
seancorfield
seancorfield
createObject("component",<script-as-CFC>)
as well as new <script-as-CFC>(...)
in your code.Dave Merrill
05/31/2023, 7:11 PMseancorfield
aliaspooryorik
aliaspooryorik
Dave Merrill
06/01/2023, 12:56 PMaliaspooryorik
new Query
in it - didn't flag it. So Seems the " Code Analyzer" does not flag all deprecated features šDave Merrill
06/01/2023, 1:16 PMDave Merrill
06/01/2023, 1:52 PMEvil Ware
06/01/2023, 6:42 PMseancorfield
reFindNoCase("<cf" & feature, fileContent)
but the strings in deprecatedFeatures
already include the CF
prefix so it won't match anything (and, as @Dave Merrill said, it doesn't address the original question here at all, looking for new <deprecatedCFC>
or createObject("component","<deprecatedCFC>")
etc).seancorfield
seancorfield
Evil Ware
06/01/2023, 7:09 PMseancorfield
find
command is going to have so many false positives that it is useless -- and still doesn't address the OP's question.seancorfield
find
command doesn't actually work at all)seancorfield
Evil Ware
06/01/2023, 7:18 PMDave Merrill
06/01/2023, 8:10 PM