{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,11,13]],"date-time":"2026-11-13T16:49:18Z","timestamp":1794588558306,"version":"4.9.1"},"reference-count":22,"publisher":"Association for Computing Machinery (ACM)","issue":"OOPSLA","license":[{"start":{"date-parts":[[2020,11,13]],"date-time":"2020-11-13T00:00:00Z","timestamp":1605225600000},"content-version":"vor","delay-in-days":0,"URL":"https:\/\/creativecommons.org\/licenses\/by-nc\/4.0\/"}],"funder":[{"DOI":"10.13039\/100011199","name":"European Research Council","doi-asserted-by":"publisher","award":["647544"],"award-info":[{"award-number":["647544"]}],"id":[{"id":"10.13039\/100011199","id-type":"DOI","asserted-by":"publisher"}]}],"content-domain":{"domain":["dl.acm.org"],"crossmark-restriction":true},"short-container-title":["Proc. ACM Program. Lang."],"published-print":{"date-parts":[[2020,11,13]]},"abstract":"<jats:p>JavaScript libraries are widely used and evolve rapidly. When adapting client code to non-backwards compatible changes in libraries, a major challenge is how to locate affected API uses in client code, which is currently a difficult manual task. In this paper we address this challenge by introducing a simple pattern language for expressing API access points and a pattern-matching tool based on lightweight static analysis.<\/jats:p>\n          <jats:p>Experimental evaluation on 15 popular npm packages shows that typical breaking changes are easy to express as patterns. Running the static analysis on 265 clients of these packages shows that it is accurate and efficient: it reveals usages of breaking APIs with only 14% false positives and no false negatives, and takes less than a second per client on average. In addition, the analysis is able to report its confidence, which makes it easier to identify the false positives. These results suggest that the approach, despite its simplicity, can reduce the manual effort of the client developers.<\/jats:p>","DOI":"10.1145\/3428255","type":"journal-article","created":{"date-parts":[[2020,11,24]],"date-time":"2020-11-24T23:36:06Z","timestamp":1606260966000},"page":"1-25","update-policy":"https:\/\/doi.org\/10.1145\/crossmark-policy","source":"Crossref","is-referenced-by-count":31,"title":["Detecting locations in JavaScript programs affected by breaking library changes"],"prefix":"10.1145","volume":"4","author":[{"ORCID":"https:\/\/orcid.org\/0000-0003-1333-2314","authenticated-orcid":false,"given":"Anders","family":"M\u00f8ller","sequence":"first","affiliation":[{"name":"Aarhus University, Denmark"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Benjamin Barslev","family":"Nielsen","sequence":"additional","affiliation":[{"name":"Aarhus University, Denmark"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Martin Toldam","family":"Torp","sequence":"additional","affiliation":[{"name":"Aarhus University, Denmark"}],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"320","published-online":{"date-parts":[[2020,11,13]]},"reference":[{"key":"e_1_2_2_1_1","doi-asserted-by":"publisher","DOI":"10.1109\/SANER.2018.8330214"},{"key":"e_1_2_2_2_1","doi-asserted-by":"publisher","DOI":"10.1109\/ICSM.1996.565039"},{"key":"e_1_2_2_3_1","doi-asserted-by":"publisher","DOI":"10.1145\/2000799.2000805"},{"key":"e_1_2_2_4_1","doi-asserted-by":"publisher","DOI":"10.1145\/3133956.3134059"},{"key":"e_1_2_2_5_1","article-title":"How do APIs evolve? A story of refactoring","volume":"18","author":"Dig Danny","year":"2006","unstructured":"Danny Dig and Ralph E. Johnson . 2006 . How do APIs evolve? A story of refactoring . Journal of Software Maintenance 18 , 2 ( 2006 ), 83-107. Danny Dig and Ralph E. Johnson. 2006. How do APIs evolve? A story of refactoring. Journal of Software Maintenance 18, 2 ( 2006 ), 83-107.","journal-title":"Journal of Software Maintenance"},{"key":"e_1_2_2_6_1","doi-asserted-by":"publisher","DOI":"10.1145\/3293882.3330571"},{"key":"e_1_2_2_7_1","doi-asserted-by":"publisher","DOI":"10.1145\/2509136.2509520"},{"key":"e_1_2_2_8_1","first-page":"752","volume-title":"35th International Conference on Software Engineering, ICSE ' 13","author":"Feldthaus Asger","year":"2013","unstructured":"Asger Feldthaus , Max Sch\u00e4fer , Manu Sridharan , Julian Dolby , and Frank Tip . 2013 . Eficient construction of approximate call graphs for JavaScript IDE services . In 35th International Conference on Software Engineering, ICSE ' 13 , San Francisco, CA, USA , May 18-26, 2013. IEEE Computer Society, 752 - 761 . Asger Feldthaus, Max Sch\u00e4fer, Manu Sridharan, Julian Dolby, and Frank Tip. 2013. Eficient construction of approximate call graphs for JavaScript IDE services. In 35th International Conference on Software Engineering, ICSE ' 13, San Francisco, CA, USA, May 18-26, 2013. IEEE Computer Society, 752-761."},{"key":"e_1_2_2_9_1","volume-title":"33rd European Conference on Object-Oriented Programming, ECOOP 2019","volume":"134","author":"Kang Hong Jin","year":"2019","unstructured":"Hong Jin Kang , Ferdian Thung , Julia Lawall , Gilles Muller , Lingxiao Jiang , and David Lo . 2019 . Semantic Patches for Java Program Transformation (Experience Report) . In 33rd European Conference on Object-Oriented Programming, ECOOP 2019 , July 15-19, 2019, London, United Kingdom. (LIPIcs) , Vol. 134 . Schloss Dagstuhl-Leibniz-Zentrum fuer Informatik, 22 : 1-22 : 27. Hong Jin Kang, Ferdian Thung, Julia Lawall, Gilles Muller, Lingxiao Jiang, and David Lo. 2019. Semantic Patches for Java Program Transformation (Experience Report). In 33rd European Conference on Object-Oriented Programming, ECOOP 2019, July 15-19, 2019, London, United Kingdom. (LIPIcs), Vol. 134. Schloss Dagstuhl-Leibniz-Zentrum fuer Informatik, 22 : 1-22 : 27."},{"key":"e_1_2_2_10_1","first-page":"243","volume-title":"Classification of Changes in API Evolution. In 23rd IEEE International Enterprise Distributed Object Computing Conference, EDOC 2019","author":"Ko\u00e7i Rediana","year":"2019","unstructured":"Rediana Ko\u00e7i , Xavier Franch , Petar Jovanovic , and Alberto Abell\u00f3 . 2019 . Classification of Changes in API Evolution. In 23rd IEEE International Enterprise Distributed Object Computing Conference, EDOC 2019 , Paris, France , October 28-31, 2019. IEEE, 243 - 249 . Rediana Ko\u00e7i, Xavier Franch, Petar Jovanovic, and Alberto Abell\u00f3. 2019. Classification of Changes in API Evolution. In 23rd IEEE International Enterprise Distributed Object Computing Conference, EDOC 2019, Paris, France, October 28-31, 2019. IEEE, 243-249."},{"key":"e_1_2_2_11_1","doi-asserted-by":"publisher","DOI":"10.1109\/ICSE.2019.00026"},{"key":"e_1_2_2_12_1","doi-asserted-by":"publisher","DOI":"10.1145\/3213846.3213857"},{"key":"e_1_2_2_13_1","volume-title":"32nd European Conference on Object-Oriented Programming, ECOOP 2018","volume":"109","author":"Mezzetti Gianluca","year":"2018","unstructured":"Gianluca Mezzetti , Anders M\u00f8ller , and Martin Toldam Torp . 2018 . Type Regression Testing to Detect Breaking Changes in Node.js Libraries . In 32nd European Conference on Object-Oriented Programming, ECOOP 2018 , July 16-21, 2018, Amsterdam, The Netherlands (LIPIcs) , Vol. 109 . Schloss Dagstuhl-Leibniz-Zentrum f\u00fcr Informatik, 7 : 1-7 : 24. Gianluca Mezzetti, Anders M\u00f8ller, and Martin Toldam Torp. 2018. Type Regression Testing to Detect Breaking Changes in Node.js Libraries. In 32nd European Conference on Object-Oriented Programming, ECOOP 2018, July 16-21, 2018, Amsterdam, The Netherlands (LIPIcs), Vol. 109. Schloss Dagstuhl-Leibniz-Zentrum f\u00fcr Informatik, 7 : 1-7 : 24."},{"key":"e_1_2_2_14_1","doi-asserted-by":"publisher","DOI":"10.1109\/MSR.2019.00029"},{"key":"e_1_2_2_15_1","doi-asserted-by":"publisher","DOI":"10.1145\/3338906.3338940"},{"key":"e_1_2_2_16_1","first-page":"302","volume-title":"Proceedings of the 25th Annual ACM SIGPLAN Conference on ObjectOriented Programming, Systems, Languages, and Applications, OOPSLA 2010","author":"Nguyen Hoan Anh","year":"2010","unstructured":"Hoan Anh Nguyen , Tung Thanh Nguyen , Gary Wilson Jr ., Anh Tuan Nguyen , Miryung Kim , and Tien N. Nguyen . 2010. A graph-based approach to API usage adaptation . In Proceedings of the 25th Annual ACM SIGPLAN Conference on ObjectOriented Programming, Systems, Languages, and Applications, OOPSLA 2010 , October 17-21, 2010 , Reno\/Tahoe, Nevada, USA. ACM , 302 - 321 . Hoan Anh Nguyen, Tung Thanh Nguyen, Gary Wilson Jr., Anh Tuan Nguyen, Miryung Kim, and Tien N. Nguyen. 2010. A graph-based approach to API usage adaptation. In Proceedings of the 25th Annual ACM SIGPLAN Conference on ObjectOriented Programming, Systems, Languages, and Applications, OOPSLA 2010, October 17-21, 2010, Reno\/Tahoe, Nevada, USA. ACM, 302-321."},{"key":"e_1_2_2_17_1","doi-asserted-by":"publisher","DOI":"10.1145\/1215995.1216005"},{"key":"e_1_2_2_18_1","doi-asserted-by":"publisher","DOI":"10.1145\/1352592.1352618"},{"key":"e_1_2_2_19_1","volume-title":"Bor-Yuh Evan Chang, and Anders M\u00f8ller.","author":"Stein Benno","year":"2019","unstructured":"Benno Stein , Benjamin Barslev Nielsen , Bor-Yuh Evan Chang, and Anders M\u00f8ller. 2019 . Static analysis with demand-driven value refinement. PACMPL 3, OOPSLA ( 2019 ), 140 : 1-140 : 29. Benno Stein, Benjamin Barslev Nielsen, Bor-Yuh Evan Chang, and Anders M\u00f8ller. 2019. Static analysis with demand-driven value refinement. PACMPL 3, OOPSLA ( 2019 ), 140 : 1-140 : 29."},{"key":"e_1_2_2_20_1","doi-asserted-by":"publisher","DOI":"10.1002\/smr.2157"},{"key":"e_1_2_2_21_1","first-page":"81","volume-title":"An Exploratory Study. In 27th IEEE International Conference on Software Analysis, Evolution and Reengineering, SANER London","author":"Zhang Zhaoxu","year":"2020","unstructured":"Zhaoxu Zhang , Hengcheng Zhu , Ming Wen , Yida Tao , Yepang Liu , and Yingfei Xiong . 2020 . How Do Python Framework APIs Evolve? An Exploratory Study. In 27th IEEE International Conference on Software Analysis, Evolution and Reengineering, SANER London , Ontario , February 18-21, 2020. IEEE, 81 - 92 . Zhaoxu Zhang, Hengcheng Zhu, Ming Wen, Yida Tao, Yepang Liu, and Yingfei Xiong. 2020. How Do Python Framework APIs Evolve? An Exploratory Study. In 27th IEEE International Conference on Software Analysis, Evolution and Reengineering, SANER London, Ontario, February 18-21, 2020. IEEE, 81-92."},{"key":"e_1_2_2_22_1","first-page":"995","volume-title":"28th USENIX Security Symposium, USENIX Security 2019","author":"Zimmermann Markus","year":"2019","unstructured":"Markus Zimmermann , Cristian-Alexandru Staicu , Cam Tenny , and Michael Pradel . 2019 . Small World with High Risks: A Study of Security Threats in the npm Ecosystem . In 28th USENIX Security Symposium, USENIX Security 2019 , Santa Clara, CA, USA , August 14-16, 2019. USENIX Association, 995 - 1010 . Markus Zimmermann, Cristian-Alexandru Staicu, Cam Tenny, and Michael Pradel. 2019. Small World with High Risks: A Study of Security Threats in the npm Ecosystem. In 28th USENIX Security Symposium, USENIX Security 2019, Santa Clara, CA, USA, August 14-16, 2019. USENIX Association, 995-1010."}],"container-title":["Proceedings of the ACM on Programming Languages"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/dl.acm.org\/doi\/10.1145\/3428255","content-type":"unspecified","content-version":"vor","intended-application":"text-mining"},{"URL":"https:\/\/dl.acm.org\/doi\/pdf\/10.1145\/3428255","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2025,6,17]],"date-time":"2025-06-17T22:02:57Z","timestamp":1750197777000},"score":1,"resource":{"primary":{"URL":"https:\/\/dl.acm.org\/doi\/10.1145\/3428255"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2020,11,13]]},"references-count":22,"journal-issue":{"issue":"OOPSLA","published-print":{"date-parts":[[2020,11,13]]}},"alternative-id":["10.1145\/3428255"],"URL":"https:\/\/doi.org\/10.1145\/3428255","relation":{},"ISSN":["2475-1421"],"issn-type":[{"value":"2475-1421","type":"electronic"}],"subject":[],"published":{"date-parts":[[2020,11,13]]},"assertion":[{"value":"2020-11-13","order":2,"name":"published","label":"Published","group":{"name":"publication_history","label":"Publication History"}}]}}