{ "id": "171720", "key": "ALOY-1620", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "11113", "key": "ALOY", "name": "Alloy", "projectCategory": { "id": "10400", "description": "Tools for developing applications", "name": "Tooling" } }, "fixVersions": [ { "id": "20404", "name": "CLI Release 7.0.8", "archived": false, "released": true } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2018-11-01T18:58:16.000+0000", "created": "2018-05-31T10:19:00.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [], "versions": [ { "id": "20171", "name": "Alloy 1.13.0", "archived": false, "released": true } ], "issuelinks": [], "assignee": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "updated": "2018-11-01T18:58:25.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "13604", "name": "Tooling", "description": "Items related to Alloy tooling and workflow" } ], "description": "h5.Description\r\n\r\nNode 10 produces a deprecation warning when the {{new Buffer}} constructor is used. See https://nodesource.com/blog/understanding-the-buffer-deprecation-in-node-js-10/ if you're curious\r\n\r\nIn most cases I believe the most appropriate swap for us to do is turn {{new Buffer}} into {{Buffer.from}}\r\n\r\nThere is one instance in the alloy code https://github.com/appcelerator/alloy/search?q=%22new+Buffer%22&unscoped_q=%22new+Buffer%22, it might not show up when alloy is ran however as code under {{node_modules}} will not throw the buffer deprecation warning\r\n\r\nWe might also wish to update eslint-config-axway to include the {{no-buffer-constructor}} rule\r\n\r\nSteps to reproduce to be added as replacement happens", "attachment": [], "flagged": false, "summary": "Fix new Buffer deprecation warnings", "creator": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "subtasks": [], "reporter": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "environment": "Ti SDK: 7.1.1.GA, 7.2.0.v20180528150435, 7.3.0.v20180530072516\r\nNode 10.3.0", "closedSprints": [ { "id": 1072, "state": "closed", "name": "2018 Sprint 19 Tooling", "startDate": "2018-09-09T21:06:36.074Z", "endDate": "2018-09-23T21:06:00.000Z", "completeDate": "2018-09-23T22:29:36.340Z", "originBoardId": 219 } ], "comment": { "comments": [ { "id": "441503", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "https://github.com/appcelerator/alloy/pull/906", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2018-09-12T12:30:26.000+0000", "updated": "2018-09-12T12:30:26.000+0000" }, { "id": "442536", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified the fix in 7.0.7-master.9.\r\nClosing.", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-10-11T18:45:00.000+0000", "updated": "2018-10-11T18:45:00.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }