Skip to content

Commit ff322bd

Browse files
committed
Release 23.6
1 parent 7734e3c commit ff322bd

File tree

11 files changed

+58
-15
lines changed

11 files changed

+58
-15
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,9 @@ recommend to read our blog post on [Linting MLE JavaScript Modules in Continuous
129129
Integration Pipelines][4].
130130

131131
## Changelog
132+
- **Oracle 23.6**
133+
- improved documentation for OracleNumber
134+
[infix operators](https://oracle-samples.github.io/mle-modules/docs/mle-js-plsqltypes/23ai/classes/OracleNumber.html).
132135
- **Oracle 23.5**
133136
- support for
134137
[sql-template-tag](https://www.npmjs.com/package/sql-template-tag#oracledb)

declarations/mle-encode-base64/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"description": "MLE functions to work with base64 encoded data",
44
"types": "mle-encode-base64.d.ts",
55
"author": "Oracle",
6-
"version": "23.5.0",
6+
"version": "23.6.0",
77
"license": "UPL-1.0",
88
"homepage": "https://oracle-samples.github.io/mle-modules",
99
"repository": {

declarations/mle-js-bindings/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"description": "MLE Bindings for Oracle Database DBMS_MLE",
44
"types": "mle-js-bindings.d.ts",
55
"author": "Oracle",
6-
"version": "23.5.0",
6+
"version": "23.6.0",
77
"license": "UPL-1.0",
88
"homepage": "https://oracle-samples.github.io/mle-modules",
99
"repository": {

declarations/mle-js-encodings/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"description": "MLE text encoding API",
44
"types": "index.d.ts",
55
"author": "Oracle",
6-
"version": "23.5.0",
6+
"version": "23.6.0",
77
"license": "UPL-1.0",
88
"homepage": "https://oracle-samples.github.io/mle-modules",
99
"repository": {

declarations/mle-js-fetch/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"description": "MLE Fetch API polyfill",
44
"types": "index.d.ts",
55
"author": "Oracle",
6-
"version": "23.5.0",
6+
"version": "23.6.0",
77
"license": "UPL-1.0",
88
"homepage": "https://oracle-samples.github.io/mle-modules",
99
"repository": {

declarations/mle-js-oracledb/api.d.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -478,8 +478,6 @@ export declare abstract class IConnection {
478478
* it conforms to the {@link IExecuteArgs} interface
479479
* and contains the SQL statement to be executed and the bind values.
480480
*
481-
* This object exposes the SQL statement and values properties to retrieve the SQL string and bind values
482-
* The statement may contain bind parameters.
483481
* @param bindParams needed if there are bind parameters in the SQL
484482
* statement, see {@link BindParameters}.
485483
* @param options an optional parameter to execute() that may be used to

declarations/mle-js-oracledb/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"description": "MLE SQL Driver",
44
"types": "index.d.ts",
55
"author": "Oracle",
6-
"version": "23.5.0",
6+
"version": "23.6.0",
77
"license": "UPL-1.0",
88
"homepage": "https://oracle-samples.github.io/mle-modules",
99
"repository": {

declarations/mle-js-plsqltypes/mle-js-plsqltypes.d.ts

Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
3636
SOFTWARE.
3737
*/
3838
/**
39-
* declare Operators object
39+
* Class which implements infix operators for Oracle Number
40+
* arithmetics: +, -, /, *, etc.
4041
*
4142
* @since Oracle 23.5
4243
*/
@@ -66,7 +67,8 @@ export declare const OracleClob: IOracleClob;
6667
*/
6768
export declare const OracleDate: IOracleDate;
6869
/**
69-
* JavaScript API for Oracle type NUMBER.
70+
* JavaScript API for Oracle type NUMBER. Since Oracle 23.5, this class also
71+
* supports infix operator arithmetics: +, -, /, *, etc.
7072
*/
7173
export declare class OracleNumber extends OracleNumberOperators {
7274
private impl;
@@ -117,30 +119,40 @@ export declare class OracleNumber extends OracleNumberOperators {
117119
* Adds an Oracle number to another Oracle number
118120
* @param other - the other Oracle number
119121
* @returns returns the sum of the two Oracle NUMBERs
122+
*
123+
* Note: since Oracle 23.5, `this + other` can be used instead.
120124
*/
121125
add(other: OracleNumber): OracleNumber;
122126
/**
123127
* Subtracts an Oracle number from the Oracle number and returns the resulting Oracle number
124128
* @param other - the other number to be subtracted from the OracleNumber
125129
* @returns the result of the subtraction as OracleNumber
130+
*
131+
* Note: since Oracle 23.5, `this - other` can be used instead.
126132
*/
127133
sub(other: OracleNumber): OracleNumber;
128134
/**
129135
* Multiplies the Oracle number with another Oracle number
130136
* @param other - the other Oracle number
131137
* @returns the result of the multiplication as Oracle number
138+
*
139+
* Note: since Oracle 23.5, `this * other` can be used instead.
132140
*/
133141
mul(other: OracleNumber): OracleNumber;
134142
/**
135143
* Divides two Oracle numbers
136144
* @param other - divisor
137145
* @returns the result of the division as Oracle number
146+
*
147+
* Note: since Oracle 23.5, `this / other` can be used instead.
138148
*/
139149
div(other: OracleNumber): OracleNumber;
140150
/**
141151
* Computes the modulus of two Oracle numbers.
142152
* @param other - the other Oracle number
143153
* @returns this number modulo the other number
154+
*
155+
* Note: since Oracle 23.5, `this % other` can be used instead.
144156
*/
145157
mod(other: OracleNumber): OracleNumber;
146158
/**
@@ -198,12 +210,16 @@ export declare class OracleNumber extends OracleNumberOperators {
198210
* Compares two Oracle numbers.
199211
* Returns -1 if this < other, 0 if they are equal, and 1 if this > other.
200212
* @returns the result of the comparison as a number between -1 and +1.
213+
*
214+
* Note: since Oracle 23.5, `<, <=, >=, >` can be used instead.
201215
*/
202216
compare(other: OracleNumber): number;
203217
/**
204218
* Checks if the Oracle number is equal to another Oracle number
205219
* @param other - the other Oracle number
206220
* @returns true if both Oracle numbers are equal, otherwise false
221+
*
222+
* Note: since Oracle 23.5, `==` or `!=` can be used instead.
207223
*/
208224
equals(other: OracleNumber): boolean;
209225
/**
@@ -214,6 +230,8 @@ export declare class OracleNumber extends OracleNumberOperators {
214230
/**
215231
* Raises this Oracle number to the given exponent
216232
* @returns the result of the exponentiation
233+
*
234+
* Note: since Oracle 23.5, `this ** other` can be used instead.
217235
*/
218236
power(exp: OracleNumber | number): OracleNumber;
219237
/**
@@ -250,6 +268,8 @@ export declare class OracleNumber extends OracleNumberOperators {
250268
/**
251269
* Negates the number
252270
* @returns the negated Oracle number
271+
*
272+
* Note: since Oracle 23.5, `-this` can be used instead.
253273
*/
254274
neg(): OracleNumber;
255275
/**
@@ -278,6 +298,8 @@ export declare class OracleNumber extends OracleNumberOperators {
278298
* Shifts the number by the specified number of decimal places
279299
* @param digits - number of decimal places to shift. It can be negative. Positive values shift the decimal place to the right and negative values to the left. For example, if NUMBER corresponds to 1234.5 and digits == -1, the new NUMBER object will correspond to 123.45.
280300
* @returns an Oracle number containing the shifted result
301+
*
302+
* Note: since Oracle 23.5, `this >> other` or `this << -other` can be used instead.
281303
*/
282304
shift(digits: OracleNumber | number): OracleNumber;
283305
/**

declarations/mle-js-plsqltypes/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"description": "MLE PL/SQL Types",
44
"types": "mle-js-plsqltypes.d.ts",
55
"author": "Oracle",
6-
"version": "23.5.0",
6+
"version": "23.6.0",
77
"license": "UPL-1.0",
88
"homepage": "https://oracle-samples.github.io/mle-modules",
99
"repository": {

declarations/mle-js/mle-js.d.ts

Lines changed: 24 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -135,14 +135,16 @@ declare namespace __mle_js_plsqltypes {
135135

136136

137137
/**
138-
* declare Operators object
138+
* Class which implements infix operators for Oracle Number
139+
* arithmetics: +, -, /, *, etc.
139140
*
140141
* @since Oracle 23.5
141142
*/
142143
const OracleNumberOperators: any;
143144

144145
/**
145-
* JavaScript API for Oracle type NUMBER.
146+
* JavaScript API for Oracle type NUMBER. Since Oracle 23.5, this class also
147+
* supports infix operator arithmetics: +, -, /, *, etc.
146148
*/
147149
export class OracleNumber extends OracleNumberOperators {
148150
private impl;
@@ -193,30 +195,40 @@ export class OracleNumber extends OracleNumberOperators {
193195
* Adds an Oracle number to another Oracle number
194196
* @param other - the other Oracle number
195197
* @returns returns the sum of the two Oracle NUMBERs
198+
*
199+
* Note: since Oracle 23.5, `this + other` can be used instead.
196200
*/
197201
add(other: OracleNumber): OracleNumber;
198202
/**
199203
* Subtracts an Oracle number from the Oracle number and returns the resulting Oracle number
200204
* @param other - the other number to be subtracted from the OracleNumber
201205
* @returns the result of the subtraction as OracleNumber
206+
*
207+
* Note: since Oracle 23.5, `this - other` can be used instead.
202208
*/
203209
sub(other: OracleNumber): OracleNumber;
204210
/**
205211
* Multiplies the Oracle number with another Oracle number
206212
* @param other - the other Oracle number
207213
* @returns the result of the multiplication as Oracle number
214+
*
215+
* Note: since Oracle 23.5, `this * other` can be used instead.
208216
*/
209217
mul(other: OracleNumber): OracleNumber;
210218
/**
211219
* Divides two Oracle numbers
212220
* @param other - divisor
213221
* @returns the result of the division as Oracle number
222+
*
223+
* Note: since Oracle 23.5, `this / other` can be used instead.
214224
*/
215225
div(other: OracleNumber): OracleNumber;
216226
/**
217227
* Computes the modulus of two Oracle numbers.
218228
* @param other - the other Oracle number
219229
* @returns this number modulo the other number
230+
*
231+
* Note: since Oracle 23.5, `this % other` can be used instead.
220232
*/
221233
mod(other: OracleNumber): OracleNumber;
222234
/**
@@ -274,12 +286,16 @@ export class OracleNumber extends OracleNumberOperators {
274286
* Compares two Oracle numbers.
275287
* Returns -1 if this < other, 0 if they are equal, and 1 if this > other.
276288
* @returns the result of the comparison as a number between -1 and +1.
289+
*
290+
* Note: since Oracle 23.5, `<, <=, >=, >` can be used instead.
277291
*/
278292
compare(other: OracleNumber): number;
279293
/**
280294
* Checks if the Oracle number is equal to another Oracle number
281295
* @param other - the other Oracle number
282296
* @returns true if both Oracle numbers are equal, otherwise false
297+
*
298+
* Note: since Oracle 23.5, `==` or `!=` can be used instead.
283299
*/
284300
equals(other: OracleNumber): boolean;
285301
/**
@@ -290,6 +306,8 @@ export class OracleNumber extends OracleNumberOperators {
290306
/**
291307
* Raises this Oracle number to the given exponent
292308
* @returns the result of the exponentiation
309+
*
310+
* Note: since Oracle 23.5, `this ** other` can be used instead.
293311
*/
294312
power(exp: OracleNumber | number): OracleNumber;
295313
/**
@@ -326,6 +344,8 @@ export class OracleNumber extends OracleNumberOperators {
326344
/**
327345
* Negates the number
328346
* @returns the negated Oracle number
347+
*
348+
* Note: since Oracle 23.5, `-this` can be used instead.
329349
*/
330350
neg(): OracleNumber;
331351
/**
@@ -354,6 +374,8 @@ export class OracleNumber extends OracleNumberOperators {
354374
* Shifts the number by the specified number of decimal places
355375
* @param digits - number of decimal places to shift. It can be negative. Positive values shift the decimal place to the right and negative values to the left. For example, if NUMBER corresponds to 1234.5 and digits == -1, the new NUMBER object will correspond to 123.45.
356376
* @returns an Oracle number containing the shifted result
377+
*
378+
* Note: since Oracle 23.5, `this >> other` or `this << -other` can be used instead.
357379
*/
358380
shift(digits: OracleNumber | number): OracleNumber;
359381
/**
@@ -2286,8 +2308,6 @@ export abstract class IConnection {
22862308
* it conforms to the {@link IExecuteArgs} interface
22872309
* and contains the SQL statement to be executed and the bind values.
22882310
*
2289-
* This object exposes the SQL statement and values properties to retrieve the SQL string and bind values
2290-
* The statement may contain bind parameters.
22912311
* @param bindParams needed if there are bind parameters in the SQL
22922312
* statement, see {@link BindParameters}.
22932313
* @param options an optional parameter to execute() that may be used to

0 commit comments

Comments
 (0)