foundeo / cfdocs

Repository for the cfdocs.org site.

Home Page:https://cfdocs.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CF2018 Update 5 new functions/improvements

cfvonner opened this issue · comments

Language enhancements:

New Array Functions

  • ArraySome
  • ArrayEvery
  • ArraySplice (done #1217)

New Struct Functions

  • StructSome
  • StructEvery

New Query Functions

  • QuerySome
  • QueryEvery
  • QueryAppend
  • QueryPrepend
  • QueryRowSwap
  • QuerySlice
  • QueryClear
  • QueryRecordCount
  • QueryReverse
  • QueryInsertAt

Other Language Updates:

  • GetMetaData - Changes in Array.GetMetaData struct keys.
  • New parameter includeEmptyFields in fhe following functions:
    • ListAppend
    • List Prepend
  • QueryNew - Insert rows in a query object as array of .
  • cfchart - Added attribute base64.
  • Member functions - Contains member functions for newly added functions.
  • Array Notation for Strings in ColdFusion - Access sub-strings using array notation by using positional ranges.
  • Regex changes for the following functions:
    • ReFind
    • ReFindNoCase
    • ReReplace
    • ReReplaceNoCase
    • ReMatch
    • ReMatchNoCase

Arrow functions

See https://helpx.adobe.com/coldfusion/kb/coldfusion-2018-update-5.html for more information and links to new/improved functions.

I'm going to work on some of the query functions tomorrow. Are there any issues with using comic book characters as my sample data?

I'm going to work on some of the query functions tomorrow. Are there any issues with using comic book characters as my sample data?

Sorry @alorne, didn't see this until after I did a couple. I only did queryappend and prepend, so feel free to do the others. I'll move back to the "Other Language Updates" section.

No problem @srbaxter

Is there any info on QueryClear? I can't seem to get it functioning.

Is there any info on QueryClear? I can't seem to get it functioning.

Same with queryreverse

@alorne I just went to Adobe's pages and put one of their examples in cfdocs's live pens and it worked for both.

https://helpx.adobe.com/coldfusion/kb/coldfusion-2018-update-5.html

I see, I didn't realize there were links, also i was using .queryClear() instead of .clear(). Thanks!

Looking through this ticket - is it done? looks like we have added most of these, but I didn't check them all.

@pfreitag There seem to be a couple missing, like QueryRowSwap and QueryInsertAt. I'm working on those two right now. For the other additions, not sure. I'll check those, too.

I added a new guide for using Array Notation in Strings. It may be beneficial to put a note on the RE... functions noting that the RegEx engine can be changed with the new useJavaAsRegexEngine flag in Application.cfc. I added all Member Functions missing from CF2016 and 2018. So if the guide for Arrow Functions is also already up, then this ticket should be complete now. @cfvonner See anything missing, Carl?

Awesome, I'm gonna close it, thanks @shawnoden for finishing it up, and everyone else involved in helping on this one!

If we see anything missing just open up a new ticket for that specific thing.

Added QueryRowSwap. #1428

Added QueryInsertAt #1429