Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update for CF2023 #1643

Merged
merged 4 commits into from
Mar 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions assets/code-editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ angular.module('code.editor', [])
' <option value="lucee5">Lucee 5.LATEST</option>'+
' <option value="lucee">Lucee 4.5.LATEST</option>'+
' <option value="railo">Railo 4.2</option>'+
' <option value="acf2023">Adobe ColdFusion 2023</option>'+
' <option value="acf2021">Adobe ColdFusion 2021</option>'+
' <option value="acf2018">Adobe ColdFusion 2018</option>'+
' <option value="acf2016">Adobe ColdFusion 2016</option>'+
Expand Down Expand Up @@ -175,7 +176,7 @@ angular.module('code.editor', [])
scope.setupCodeGist = attrs.setupCodeGist;
scope.asserts = attrs.asserts;
scope.fullscreen = attrs.fullscreen;
scope.engines = {'acf2021':'Adobe ColdFusion 2021','acf2018':'Adobe ColdFusion 2018','acf2016':'Adobe ColdFusion 2016','acf11':'Adobe ColdFusion 11', 'acf':'Adobe ColdFusion 10', 'railo':'Railo 4.2', 'lucee':'Lucee 4.5', 'lucee5':'Lucee 5', 'lucee5.0.0.45':'Lucee 5.0.0.45'};
scope.engines = {'acf2023':'Adobe ColdFusion 2023','acf2021':'Adobe ColdFusion 2021','acf2018':'Adobe ColdFusion 2018','acf2016':'Adobe ColdFusion 2016','acf11':'Adobe ColdFusion 11', 'acf':'Adobe ColdFusion 10', 'railo':'Railo 4.2', 'lucee':'Lucee 4.5', 'lucee5':'Lucee 5', 'lucee5.0.0.45':'Lucee 5.0.0.45'};
scope.engine = attrs.engine || 'lucee';
scope.basepath = attrs.basepath || '/gist/';

Expand Down Expand Up @@ -215,7 +216,8 @@ angular.module('code.editor', [])
"acf11" : [ "https://acf11-sbx.trycf.com/cfusion/getremote.cfm" ],
"acf2016" : [ "https://acf12-sbx.trycf.com/getremote.cfm" ],
"acf2018" : [ "https://acf13-sbx.trycf.com/getremote.cfm" ],
"acf2021" : [ "https://acf14-sbx.trycf.com/getremote.cfm" ]
"acf2021" : [ "https://acf14-sbx.trycf.com/getremote.cfm" ],
"acf2023" : [ "https://acf2023-sbx.trycf.com/getremote.cfm" ]
},
url = attrs.url || urlPool[scope.engine][Math.floor(Math.random()*urlPool[scope.engine].length)];

Expand Down
2 changes: 1 addition & 1 deletion data/en/all.json

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions data/en/cf2023.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"related":["createEncryptedJWT","createSignedJWT","deserializeAvro","deserializeProtobuf","generateGraphQLModels","getGraphQLClient","serializeAvro","serializeProtobuf","verifyEncryptedJWT","verifySignedJWT","xmlClear","xmlDeleteAt","xmlHasChild","xmlUpdate"],
"name":"ColdFusion 2023 New Functions and Tags","type":"listing","description":"List of tags and functions added in ColdFusion 2023"
}
45 changes: 45 additions & 0 deletions data/en/createencryptedjwt.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
{
"name": "createEncryptedJWT",
"type": "function",
"syntax": "createEncryptedJWT(payload, encryptOptions, config)",
"returns": "string",
"related": [ "verifyEncryptedJWT", "createSignedJWT" ],
"description": "Create an encrypted JWT (JSON Web Encryption - JWE)",
"params": [
{
"name": "payload",
"description": "The payload as a string or struct.",
"required": true,
"default": "",
"type": "any",
"values": []
},
{
"name": "encryptOptions",
"description": "Encrypt using the key information from given struct",
"required": true,
"default": "",
"type": "struct",
"values": []
},
{
"name": "config",
"description": "A struct with the following values:\n- algorithm : algorithm used for signing.\n- encryption : algorithm used for encrypting the payload.\n- generateIssuedAt : boolean to indicate whether to generate \"iat\" field\n- generateJti : boolean to indicate whether to generate \"jti\" field",
"required": true,
"default": "",
"type": "struct",
"values": []
}
],
"engines": {
"coldfusion": {"minimum_version":"2023", "notes":"", "docs":"https://helpx.adobe.com/coldfusion/cfml-reference/coldfusion-functions/functions-c-d/createencryptedjwt.html"}
},
"links": [
{
"title": "JSON Web Tokens in ColdFusion",
"description": "Overview of JSON Web Tokens (JWT), including how to use them in ColdFusion",
"url": "https://helpx.adobe.com/coldfusion/using/coldfusion-json-web-tokens.html"
}
],
"examples": []
}
45 changes: 45 additions & 0 deletions data/en/createsignedjwt.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
{
"name": "createSignedJWT",
"type": "function",
"syntax": "createSignedJWT(payload, signOptions, config)",
"returns": "string",
"related": [ "verifySignedJWT", "createEncryptedJWT" ],
"description": "Create a signed JWT (JSON Web Signature - JWS)",
"params": [
{
"name": "payload",
"description": "The payload as a string or struct.",
"required": true,
"default": "",
"type": "any",
"values": []
},
{
"name": "signOptions",
"description": "Create the signature using the key information from the given struct",
"required": true,
"default": "",
"type": "struct",
"values": []
},
{
"name": "config",
"description": "A struct with the following values:\n- algorithm : algorithm used for signing.\n- generateIssuedAt : boolean to indicate whether to generate \"iat\" field\n- generateJti : boolean to indicate whether to generate \"jti\" field",
"required": true,
"default": "",
"type": "struct",
"values": []
}
],
"engines": {
"coldfusion": {"minimum_version":"2023", "notes":"", "docs":"https://helpx.adobe.com/coldfusion/cfml-reference/coldfusion-functions/functions-c-d/createsignedjwt.html"}
},
"links": [
{
"title": "JSON Web Tokens in ColdFusion",
"description": "Overview of JSON Web Tokens (JWT), including how to use them in ColdFusion",
"url": "https://helpx.adobe.com/coldfusion/using/coldfusion-json-web-tokens.html"
}
],
"examples": []
}
61 changes: 61 additions & 0 deletions data/en/deserializeavro.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
{
"name": "deserializeAvro",
"type": "function",
"syntax": "deserializeAvro(data, readerSchema [, strictMapping, useCustomSerialization])",
"returns": "any",
"related": [ "serializeAvro" ],
"description": "Converts an Avro data representation into CFML data.",
"params": [
{
"name": "data",
"description": "Avro serialized data",
"required": true,
"default": "",
"type": "any",
"values": []
},
{
"name": "readerSchema",
"description": "The Avro schema as a string or the absolute path to the schema",
"required": true,
"default": "",
"type": "string",
"values": []
},
{
"name": "strictMapping",
"description": "Specifies whether to convert the Avro strictly. If true, converts the Avro binary to matching ColdFusion data types.",
"required": false,
"default": true,
"type": "boolean",
"values": []
},
{
"name": "useCustomSerialization",
"description": "Whether to use the customSerializer",
"required": false,
"default": true,
"type": "boolean",
"values": []
}
],
"engines": {
"coldfusion": {"minimum_version":"2023", "notes":"", "docs":"https://helpx.adobe.com/coldfusion/cfml-reference/coldfusion-functions/functions-c-d/deserializeavro.html"}
},
"links": [
{
"title": "Avro and Protocol Buffer in ColdFusion",
"description": "Overview of Avro and Protobuf, including how to use them in ColdFusion",
"url": "https://helpx.adobe.com/coldfusion/using/avro-protobuf-coldfusion.html"
}
],
"examples": [
{
"title": "Deserialize an Avro serialized query (Script syntax)",
"description": "",
"code": "news = queryNew(\"id,title\",\n \"integer,varchar\",\n [ {\"id\":1,\"title\":\"Dewey defeats Truman\"}, {\"id\":2,\"title\":\"Man walks on Moon\"} ]);\nnewsSchema = '{ \n \"namespace\": \"my.example\",\n \"type\": \"record\",\n \"name\": \"News\",\n \"fields\": [ {\"name\":\"id\",\"type\":\"int\"}, {\"name\":\"title\",\"type\":\"string\"} ]\n}';\navro = serializeAvro(news, newsSchema);\nwriteDump(deserializeAvro(avro, newsSchema));",
"runnable": false,
"result": ""
}
]
}
77 changes: 77 additions & 0 deletions data/en/deserializeprotobuf.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
{
"name": "deserializeProtobuf",
"type": "function",
"syntax": "serializeProtobuf(data, schema [, messageType, queryFormat, useCustomSerialization, protoPath])",
"returns": "any",
"related": [ "serializeProtobuf" ],
"description": "Converts a Protobuf data representation into CFML data.",
"params": [
{
"name": "data",
"description": "Protobuf serialized data",
"required": true,
"default": "",
"type": "any",
"values": []
},
{
"name": "schema",
"description": "The Protobuf schema as a string or the absolute path to the schema",
"required": true,
"default": "",
"type": "string",
"values": []
},
{
"name": "messageType",
"description": "A message type from given schema as string. This is optional if schema contains one and only one message type.",
"required": false,
"default": "",
"type": "string",
"values": []
},
{
"name": "strictMapping",
"description": "Specifies whether to convert the Protobuf strictly. If true, converts the Protobuf binary to matching ColdFusion data types.",
"required": false,
"default": true,
"type": "boolean",
"values": []
},
{
"name": "useCustomSerialization",
"description": "Whether to use the customSerializer",
"required": false,
"default": true,
"type": "boolean",
"values": []
},
{
"name": "protoPath",
"description": "Specifies a directory in which the compiler looks for imported files defined in the schema. By default, it will be the current schema's parent path.",
"required": false,
"default": "",
"type": "string",
"values": []
}
],
"engines": {
"coldfusion": {"minimum_version":"2023", "notes":"", "docs":"https://helpx.adobe.com/coldfusion/cfml-reference/coldfusion-functions/functions-c-d/deserializeprotobuf.html"}
},
"links": [
{
"title": "Avro and Protocol Buffer in ColdFusion",
"description": "Overview of Avro and Protobuf, including how to use them in ColdFusion",
"url": "https://helpx.adobe.com/coldfusion/using/avro-protobuf-coldfusion.html"
}
],
"examples": [
{
"title": "Deserialize a Protobuf serialized query (Script syntax)",
"description": "",
"code": "news = queryNew(\"id,title\",\n \"integer,varchar\",\n [ {\"id\":1,\"title\":\"Dewey defeats Truman\"}, {\"id\":2,\"title\":\"Man walks on Moon\"} ]);\nnewsSchema = 'syntax = \"proto3\";\nmessage News { int32 id = 1; string title = 2; }';\nprotobuf = serializeProtobuf(news, newsSchema);\nwriteDump(deserializeProtobuf(protobuf, newsSchema));",
"runnable": false,
"result": ""
}
]
}
Loading
Loading