Skip to content

Commit 3273395

Browse files
committed
lib: Update deprecation warnings to say things will be removed in 0.6.0
(instead of 0.5.0)
1 parent c9a54e3 commit 3273395

File tree

7 files changed

+16
-16
lines changed

7 files changed

+16
-16
lines changed

lib/MySQLPlus.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ const MySQLPlus = Object.assign({}, mysql, {
4949

5050
/**
5151
* A namespace that provides the column type methods used to define columns.
52-
* @deprecated since version 0.4.0 and will be removed in version 0.5.0.
52+
* @deprecated since version 0.4.0 and will be removed in version 0.6.0.
5353
* @member module:mysql-plus~Type
5454
* @see {@link module:mysql-plus~ColTypes|`mysqlPlus.ColTypes`}
5555
*/
@@ -75,7 +75,7 @@ const MySQLPlus = Object.assign({}, mysql, {
7575
Object.defineProperty(MySQLPlus, 'Type', {
7676
get: util.deprecate(
7777
() => MySQLPlus.ColTypes,
78-
'The `MySQLPlus.Type` property has been deprecated and will be removed in version 0.5.0. ' +
78+
'The `MySQLPlus.Type` property has been deprecated and will be removed in version 0.6.0. ' +
7979
'Please use the `.ColTypes` property instead.'
8080
),
8181
});

lib/MySQLTable.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class MySQLTable {
1111
constructor(name, schema, pool, trxn) {
1212
/**
1313
* The table's name (as passed to {@link PoolPlus#defineTable|`poolPlus.defineTable()`}).
14-
* @deprecated since version 0.4.0 and will be removed in version 0.5.0.
14+
* @deprecated since version 0.4.0 and will be removed in version 0.6.0.
1515
* @member {string} MySQLTable#tableName
1616
* @constant {string}
1717
*/
@@ -187,7 +187,7 @@ class MySQLTable {
187187
* __Note:__ Be aware that if the insert is ignored, the table's `AUTO_INCREMENT`
188188
* value (if there is one) may be incremented anyway due to a bug in MySQL.
189189
*
190-
* @deprecated since version 0.4.0 and will be removed in version 0.5.0.
190+
* @deprecated since version 0.4.0 and will be removed in version 0.6.0.
191191
* @param {Object} data - An object of (column name)-(data value) pairs.
192192
* @param {module:mysql-plus~queryCallback} cb - A callback that gets called with the results of the query.
193193
* @returns {void}
@@ -208,7 +208,7 @@ class MySQLTable {
208208
/**
209209
* Replaces a row in the table with new data.
210210
*
211-
* @deprecated since version 0.4.0 and will be removed in version 0.5.0.
211+
* @deprecated since version 0.4.0 and will be removed in version 0.6.0.
212212
* @param {Object} data - An object of (column name)-(data value) pairs.
213213
* @param {module:mysql-plus~queryCallback} cb - A callback that gets called with the results of the query.
214214
* @returns {void}
@@ -370,13 +370,13 @@ class MySQLTable {
370370

371371
MySQLTable.prototype.insertIgnore = util.deprecate(
372372
MySQLTable.prototype.insertIgnore,
373-
'The `mySQLTable.insertIgnore()` method has been deprecated and will be removed in version 0.5.0. ' +
373+
'The `mySQLTable.insertIgnore()` method has been deprecated and will be removed in version 0.6.0. ' +
374374
'Use `.insert()` with an `ON DUPLICATE KEY` clause instead.'
375375
);
376376

377377
MySQLTable.prototype.replace = util.deprecate(
378378
MySQLTable.prototype.replace,
379-
'The `mySQLTable.replace()` method has been deprecated and will be removed in version 0.5.0. ' +
379+
'The `mySQLTable.replace()` method has been deprecated and will be removed in version 0.6.0. ' +
380380
'Use `.delete()` then `.insert()` instead.'
381381
);
382382

@@ -385,7 +385,7 @@ Object.defineProperty(MySQLTable.prototype, 'tableName', {
385385
function() {
386386
return this.name;
387387
},
388-
'The `mySQLTable.tableName` property has been deprecated and will be removed in version 0.5.0. ' +
388+
'The `mySQLTable.tableName` property has been deprecated and will be removed in version 0.6.0. ' +
389389
'Please use the `name` property instead.'
390390
),
391391
});

lib/PoolPlus.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,7 @@ function operationsSorter(a, b) {
346346

347347
/**
348348
* A namespace that provides the column type methods used to define columns.
349-
* @deprecated since version 0.4.0 and will be removed in version 0.5.0.
349+
* @deprecated since version 0.4.0 and will be removed in version 0.6.0.
350350
* @member PoolPlus#Type
351351
* @see {@link PoolPlus#ColTypes|`poolPlus.ColTypes`}
352352
*/
@@ -355,7 +355,7 @@ Object.defineProperty(PoolPlus.prototype, 'Type', {
355355
function() {
356356
return this.ColTypes;
357357
},
358-
'The `pool.Type` property has been deprecated and will be removed in version 0.5.0. ' +
358+
'The `pool.Type` property has been deprecated and will be removed in version 0.6.0. ' +
359359
'Please use the `.ColTypes` property instead.'
360360
),
361361
});

test/unit/ColumnDefinitions.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,7 @@ describe('ColumnDefinitions', () => {
371371
cd = ColumnDefinitions.blob().notNull().default('1');
372372
cd.$toSQL().should.equal('blob NOT NULL DEFAULT \'1\'');
373373

374-
// TODO: Uncomment after v0.4.0 is released.
374+
// TODO: Uncomment after v0.5.0 is released.
375375
// cd = ColumnDefinitions.timestamp().default('CURRENT_TIMESTAMP');
376376
// cd.$toSQL().should.equal('timestamp DEFAULT \'CURRENT_TIMESTAMP\'');
377377

@@ -384,7 +384,7 @@ describe('ColumnDefinitions', () => {
384384
cd = ColumnDefinitions.tinyint().notNull().defaultRaw('1');
385385
cd.$toSQL().should.equal('tinyint NOT NULL DEFAULT 1');
386386

387-
// TODO: Remove after v0.4.0 is released.
387+
// TODO: Remove after v0.5.0 is released.
388388
// Special case for TIMESTAMP and DATETIME types when the default is CURRENT_TIMESTAMP
389389
cd = ColumnDefinitions.timestamp().default('CURRENT_TIMESTAMP');
390390
cd.$toSQL().should.equal('timestamp DEFAULT CURRENT_TIMESTAMP');

test/unit/MySQLPlus.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ describe('MySQLPlus', () => {
1919
});
2020

2121

22-
describe('.Type', () => { // TODO: Remove after v0.4.0 is released.
22+
describe('.Type', () => { // TODO: Remove after v0.5.0 is released.
2323

2424
it('should provide the ColumnDefinitions functions', () => {
2525
MySQLPlus.Type.should.equal(ColumnDefinitions);

test/unit/MySQLTable.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ describe('MySQLTable', () => {
3838
});
3939

4040

41-
describe('#tableName', () => { // TODO: Remove after v0.4.0 is released
41+
describe('#tableName', () => { // TODO: Remove after v0.5.0 is released
4242

4343
it('should be the name of the table', () => {
4444
testTable.tableName.should.equal('mysql_table_test_table');

test/unit/PoolPlus.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ describe('PoolPlus', () => {
2525
});
2626

2727

28-
describe('.Type', () => { // TODO: Remove after v0.4.0 is released.
28+
describe('.Type', () => { // TODO: Remove after v0.5.0 is released.
2929

3030
it('should provide the ColumnDefinitions functions', () => {
3131
pool.Type.should.equal(ColumnDefinitions);
@@ -78,7 +78,7 @@ describe('PoolPlus', () => {
7878
it('should return a MySQLTable instance', () => {
7979
const table = pool.defineTable(TEST_TABLE_NAME, TEST_TABLE_SCHEMA);
8080
table.should.be.an.instanceOf(MySQLTable);
81-
table.tableName.should.equal(TEST_TABLE_NAME); // TODO: Remove after v0.4.0 is released
81+
table.tableName.should.equal(TEST_TABLE_NAME); // TODO: Remove after v0.5.0 is released
8282
table.name.should.equal(TEST_TABLE_NAME);
8383
table.schema.should.equal(TEST_TABLE_SCHEMA);
8484
});

0 commit comments

Comments
 (0)