{"push_id":1424422696,"size":1,"distinct_size":1,"ref":"refs/heads/master","head":"969cb08c87eedc7d23155bdb9701d837837ff346","before":"22e704de50aac0fbd795258eb2dd413bde652237","commits":[{"sha":"969cb08c87eedc7d23155bdb9701d837837ff346","author":{"name":"Alan Pierce","email":"d34ec7139604a3b9d8ba8ff59e142f00e8205dd9@gmail.com"},"message":"fix: silence magic-string warnings and update usage (#571)\n\nmagic-string 0.17.0 deprecated insertLeft and insertRight in favor of more\r\nprecise prepend/append names. See this issue for a discussion on that:\r\nhttps://github.com/Rich-Harris/magic-string/issues/109\r\n\r\nTo silence that warning, this commit moves the code to the new API, which was\r\npretty easy because there are only a few call sites.\r\n\r\nI also cleaned up that part of `NodePatcher`, which didn't make a lot of sense.\r\nNow, instead of `NodePatcher.insert` calling `NodePatcher.insertRight` calling\r\n`MagicString.insertLeft` and `NodePatcher.insertLeft` being unused, we just\r\nhave `NodePatcher.insert` calling `MagicString.appendLeft`. At least for now, I\r\nthink it's best to always use the same insert method so that inserts go in\r\norder.\r\n\r\nI also changed insertRight to appendRight in one case because it probably makes\r\nmore sense anyway and the tests pass.","distinct":true,"url":"https://api.github.com/repos/alangpierce/decaffeinate/commits/969cb08c87eedc7d23155bdb9701d837837ff346"}]}
{"actor":{"display_login":"alangpierce"}}