API-CHANGES.txt 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582
  1. 0.18.0:
  2. * Remove class RethrowErrorHandler (hack for cli before 0.12.3).
  3. 0.17.0:
  4. * Remove classes InterfacingObject, PlatformInterface.
  5. * Deprecate $boot.nil (use $boot.nilAsReceiver).
  6. + amber/boot api >>
  7. + nilAsReceiver
  8. - NativeFunction class >>
  9. - constructor:
  10. - constructor:value:
  11. - constructor:value:value:
  12. - constructor:value:value:value:
  13. 0.16.1:
  14. * Deprecate $boot.dnu (use $boot.nilAsClass).
  15. + amber/boot api >>
  16. + nilAsClass
  17. 0.16.0:
  18. * Deprecate ClassBuilder >> setupClass:
  19. * $core.initialize now returns a Promise
  20. * $core.addClass now returns the class
  21. + amber/boot api >>
  22. + send2
  23. + traverseClassTree
  24. + Promise class >>
  25. + new
  26. - amber/boot api >>
  27. - wrapClassName
  28. - send
  29. - allSubclasses
  30. - AbstractCodeGenerator
  31. - classNameFor:
  32. 0.15.1:
  33. * Thenable class added
  34. * Promise class added, wraps JS Promise, subclass of Thenable
  35. + Thenable >>
  36. + catch:
  37. + on:do:
  38. + on:do:catch:
  39. + then:
  40. + then:catch:
  41. + then:on:do:
  42. + then:on:do:catch:
  43. + JSObjectProxy >>
  44. + catch:
  45. + on:do:
  46. + on:do:catch:
  47. + then:
  48. + then:catch:
  49. + then:on:do:
  50. + then:on:do:catch:
  51. + amber/boot api
  52. + seamless
  53. + Promise class >>
  54. + new:
  55. + forBlock:
  56. + value:
  57. + signal:
  58. + all:
  59. + any:
  60. 0.14.18:
  61. * Some internal API changes in Compiler-*.
  62. 0.14.14:
  63. * InterfacingObject >> ajax: deprecated
  64. * PlatformInterface class deprecated
  65. * Class BrowserInterface removed
  66. * Class Terminal, BrowserTerminal added
  67. * Class Platform, BrowserPlatform added
  68. + Environment >>
  69. + renamePackage:to:
  70. + Platform class >>
  71. + globals
  72. + newXhr
  73. + Terminal class >>
  74. + alert:
  75. + confirm:
  76. + prompt:
  77. + prompt:default:
  78. SmalltalkImage >>
  79. + existsJsGlobal:
  80. - PlatformInterface class >>
  81. - initialize
  82. - setWorker:
  83. 0.14.12:
  84. + JSObjectProxy >>
  85. + putOn:
  86. + ProtoStream >>
  87. + nextPutJSObject:
  88. 0.14.11:
  89. * Basic streaming protocol extracted from Stream to ProtoStream
  90. + Object >>
  91. + in:
  92. + JSObjectProxy >>
  93. + in:
  94. 0.14.10:
  95. + JSObjectProxy class >>
  96. + addObjectVariablesTo:ofProxy:
  97. + compareJSObjectOfProxy:withProxy:
  98. + forwardMessage:withArguments:ofProxy:
  99. + jsObject:ofProxy:
  100. + lookupProperty:ofProxy:
  101. - JSObjectProxy >>
  102. - jsObject:
  103. - lookupProperty:
  104. - compareJSObjectWith:
  105. - addObjectVariablesTo:
  106. - forwardMessage:withArguments:
  107. 0.14.4:
  108. + AmdExporter >>
  109. + importsForOutput:
  110. + AbstractCodeGenerator >>
  111. + currentPackage
  112. + currentPackage:
  113. + Compiler >>
  114. + currentPackage
  115. + currentPackage:
  116. + compile:forClass:protocol:
  117. + compileNode:forClass:package:
  118. + SemanticAnalyzer >>
  119. + thePackage
  120. + thePackage:
  121. + isVariableUndefined:inPackage:
  122. - Compiler >>
  123. - compile:
  124. - compile:forClass:
  125. - compileExpression:
  126. - SemanticAnalyzer >>
  127. - isVariableGloabllyUndefined:
  128. - Behavior >>
  129. - compile:
  130. 0.14.3:
  131. * #heliosClass is now #classTag
  132. + Compiler >>
  133. + eval:forPackage:
  134. + Behavior >>
  135. + packageOfProtocol:
  136. + Exporter >>
  137. + exportPackageContextOf:on:
  138. + exportPackageImportsOf:on:
  139. + Package >>
  140. + basicImports
  141. + imports
  142. + imports:
  143. + importsDefinition
  144. + importsFromJson:
  145. + importsAsJson
  146. + sortedImportsAsArray
  147. + validateImports:
  148. + Package class >>
  149. + named:imports:transport:
  150. + Association >>
  151. + importsString
  152. + String >>
  153. + importsString
  154. + ProtoObject >>
  155. + ifNil:
  156. + ifNil:ifNotNil:
  157. + ifNotNil:
  158. + ifNotNil:ifNil:
  159. + isNil
  160. + notNil
  161. - Object >>
  162. - ifNil:
  163. - ifNil:ifNotNil:
  164. - ifNotNil:
  165. - ifNotNil:ifNil:
  166. - isNil
  167. - notNil
  168. 0.14.1:
  169. * NativeFunction class >> constructor:[value:...] deprecated
  170. + NativeFunction class >>
  171. + constructorNamed:
  172. + constructorNamed:value:
  173. + constructorNamed:value:value:
  174. + constructorNamed:value:value:value:
  175. + constructorOf:
  176. + constructorOf:value:
  177. + constructorOf:value:value:
  178. + constructorOf:value:value:value:
  179. + functionNamed:
  180. + functionNamed:value:
  181. + functionNamed:value:value:
  182. + functionNamed:value:value:value:
  183. + functionNamed:valueWithArgs:
  184. + functionOf:
  185. + functionOf:value:
  186. + functionOf:value:value:
  187. + functionOf:value:value:value:
  188. + functionOf:valueWithArgs:
  189. + methodOf:this:
  190. + methodOf:this:value:
  191. + methodOf:this:value:value:
  192. + methodOf:this:value:value:value:
  193. + methodOf:this:valueWithArgs:
  194. + SmalltalkImage >>
  195. + optOut:
  196. + cancelOptOut:
  197. 0.14.0:
  198. + Object >>
  199. + asJQuery
  200. + asJQueryInContext:
  201. + BlockClosure >>
  202. + asJQuery
  203. + asJQueryInContext:
  204. - AnnouncementSubscription >>
  205. - block
  206. - block:
  207. - Collection >>
  208. - contains:
  209. - String >>
  210. - asSelector
  211. - asJavaScriptSelector
  212. - SmalltalkImage >>
  213. - at:
  214. - at:ifAbsent:
  215. - at:put:
  216. - current
  217. - vm
  218. - createPackage:properties:
  219. - MethodContext >>
  220. - temps
  221. - Object >>
  222. - try:catch:
  223. 0.13.2:
  224. + SourceArea class >>
  225. + codeMirror
  226. 0.13.1:
  227. * String >> asSelector is now String >> asJavaScriptMethodName
  228. * String >> asJavaScriptSelector is now String >> asJavaScriptPropertyName
  229. * smalltalk.selector is now smalltalk.st2js
  230. * smalltalk.convertSelector is now smalltalk.js2st
  231. * Collection >> ifEmpty:ifNotEmpty: family passes self to ifNotEmpty: block
  232. * Smalltalk vm is now Smalltalk core
  233. * boot.js's .vm is now .api
  234. * amber load sets' .vm is now .api
  235. * Internal variables smalltalk/globals/_st are now $core/$globals/$recv
  236. + smalltalk.
  237. + accessJavaScript
  238. + Object >>
  239. + postMessageTo:
  240. + postMessageTo:origin:
  241. + Class >>
  242. + heliosClass
  243. + SmalltalkImage >>
  244. + core
  245. + amber/boot exports
  246. + api
  247. + amber/{devel,deploy,lang} exports
  248. + api
  249. - ProtoObject class >>
  250. - heliosClass
  251. - Object class >>
  252. - heliosClass
  253. 0.12.6:
  254. + String >>
  255. + value:
  256. + ProtocolAnnouncement >>
  257. + package
  258. + Behavior >>
  259. + isTestClass
  260. + Package >>
  261. + isTestPackage
  262. + amber/{devel,deploy,lang} exports
  263. + nil
  264. + amber/helpers exports
  265. + nil
  266. 0.12.4:
  267. * Package Canvas renamed to Web
  268. * Object >> try:catch: deprecated in favour of BlockClosure >> tryCatch:
  269. + Announcer >>
  270. + on:do:for:
  271. + Node >>
  272. + navigationNodeAt:ifAbsent:
  273. + BlockClosure >>
  274. + tryCatch:
  275. + Environment >>
  276. + evaluate:for:
  277. + AmberCli >>
  278. + version:
  279. + Object >>
  280. + deprecatedAPI:
  281. - Environment >>
  282. - eval:on:
  283. - evaluateString:on:
  284. 0.12.3:
  285. * Package Import-Export renamed to Kernel-ImportExport
  286. * A dozen of methods moved from Object to ProtoObject
  287. * HashedCollection >> at:ifAbsentPut: pushed up to SequenceableCollection
  288. * HashedCollection >> , is now allowed (removed shouldNotImplement)
  289. * HashedCollection and Dictionary both subclasses of AssociativeCollection
  290. * Smalltalk class moved to SmalltalkImage class, Smalltalk is now global var
  291. * Smalltalk current deprecated in favour of Smalltalk
  292. * Smalltalk at:[put:] deprecated in favour of Smalltalk globals at:[put:]
  293. * <smalltalk.ClassName> deprecated in favour of <globals.ClassName>
  294. + CompiledMethod >>
  295. + defaultProtocol
  296. + Behavior >>
  297. + compile:protocol:
  298. + removeProtocolIfEmpty:
  299. + Package >>
  300. + load
  301. + loadFromNamespace:
  302. + Package class >>
  303. + load:
  304. + load:fromNamespace:
  305. + PackageTransport >> load
  306. + PackageHandler >> load:
  307. + AmdPackageHandler >> load:
  308. + Set >> removeAll
  309. + AssociativeCollection class
  310. + BucketStore class
  311. + SmalltalkImage >>
  312. + globals
  313. + vm
  314. + settings
  315. + Setting class
  316. + String >>
  317. + asSetting
  318. + asSettingIfAbsent:
  319. + settingValue
  320. + settingValueIfAbsent:
  321. + settingValue:
  322. + Smalltalk global variable
  323. - CompiledMethod >>
  324. - category: (use #protocol:)
  325. - defaultCategory
  326. - Behavior >> compile:category:
  327. - HTMLCanvas class >>
  328. - browserVersion
  329. - isMSIE
  330. - isMozilla
  331. - isOpera
  332. - isWebkit
  333. 0.12.2:
  334. * Collection >> contains: is deprecated in favor of anySatisfy:
  335. + Announcer >> on:doOnce:
  336. + String >>
  337. + uriEncoded
  338. + uriDecoded
  339. + uriComponentEncoded
  340. + uriComponentDecoded
  341. + Collection >>
  342. + removeAll
  343. + ifEmpty:ifNotEmpty:
  344. + ifNotEmpty:ifEmpty:
  345. + anyOne
  346. + noneSatisfy:
  347. + anySatisfy:
  348. + allSatisfy:
  349. 0.12.0:
  350. * SmalltalkMethodContext.prototype.fillBlock() takes a third 'index' parameter
  351. * Existing classes moved to new KernelInfrastructure package
  352. * ImporterExporter
  353. * are now StreamExporters
  354. * aware of AMD namespaces
  355. * support transport types and commit channels
  356. + Node >>
  357. + nextChild
  358. + method
  359. + postCopy
  360. + isCascadeNode
  361. + isLastChild
  362. + BlockNode >>
  363. + nextNode:
  364. + nextChild
  365. + SendNode >>
  366. + isCascadeSendNode
  367. + shouldBeAliased
  368. + CompiledMethod >> sendTo:arguments:
  369. + Array >>
  370. + addFirst:
  371. + removeLast
  372. + Number >>
  373. + ceiling
  374. + floor
  375. + asNumber
  376. + //
  377. + cos
  378. + sin
  379. + tan
  380. + arcCos
  381. + arcSin
  382. + arcTan
  383. + log
  384. + log:
  385. + raisedTo:
  386. + sign
  387. + **
  388. + ln
  389. + e
  390. + String class >> esc
  391. + String >>
  392. + asMutator
  393. + capitalized
  394. + isCapitalized
  395. + JSProxy >> printString
  396. + Behavior >>
  397. + ownProtocols
  398. + ownMethods
  399. + JSStream >> nextPutSendIndexFor:
  400. + InterfacingObject class
  401. + Interpreter class
  402. + DocumentFragmentTag class
  403. + AbstractExporter class
  404. + PlatformInterface class
  405. - Node >> extent
  406. - JSStream >> nextPutStatement:with:
  407. - Smalltalk.installSuperclass()
  408. - ClassReferenceNode class (now handled via VariableNode)
  409. 0.11.0:
  410. * AnnouncementSubscription use #valuable: instead of #block: (deprecated)
  411. * AbstractCodeGenerator inherits from Object, not NodeVisitor
  412. * Object>>printString
  413. * replace >>printString with >>printOn:
  414. * replace >>storeString with >>printString
  415. * PackageLoader is now PackageHandler (>>commit: >>setupPackagenamed:prefix: >>ajaxPutAt:data:
  416. * Package>>fetch: is now Package>>load:
  417. * Package>>fetch:prefix: is now Package>>load:prefix:
  418. * Queue>>front replaced by Queue>>next
  419. * Queue>>frontIfAbsent: replaced by Queue>>nextIfAbsent:
  420. * Queue>>back: replaced by Queue>>nextPut:
  421. * smalltalk.addMethod() does not use explicit JS selector
  422. * JSObjectProxy>>canForwardMessage: replaced by use of JSObjectProxy>>lookupProperty: with asJavaScriptSelector
  423. * JSObjectProxy>>forwardMessage: replaced by explicit JSObjectProxy>>forwardMessage:withArguments:
  424. * String>>asJavaScriptSelector moved to Kernel-Objects package
  425. + Object>>asString
  426. + Object>>putOn:
  427. + String>>isVowel
  428. + Collection>>putOn:
  429. + CharacterArray>>putOn:
  430. + Stream>><<
  431. + Stream>>write
  432. + SequenceableCollection>>newStream
  433. + SequenceableCollection>>readStream
  434. + SequenceableCollection>>stream
  435. + SequenceableCollection>>streamClass
  436. + SequenceableCollection>>writeStream
  437. + Collection>>isImmutable
  438. + Stream>>nextPutString:
  439. + StringStream>>nextPutString:
  440. + JSStream>>nextPutClassRefFunction:
  441. + String>>crlfSanitized
  442. + inlined Block now also responds to >>value:
  443. + Parser: split literal into runtimeLiteral and parseTimeLiteral
  444. + Parser: write #(4 #(5 6 #()) 7) as #(4 (5 6 ()) 7)
  445. + Parser: write #(#on:do: #Object) as #(on:do: Object)
  446. + Parser: Symbols for binarie selectores
  447. + Package>>commit
  448. + AIContext>>initializeLocals
  449. + ASTInterpreter>>withBlockContext:
  450. + smalltalk.allSelectors()
  451. + Object>>isCompiledMethod
  452. + Object>>isPackage
  453. + Object>>isBehavior
  454. + ClassMoved Announcemen class
  455. + Behavior>>includesBehavior:
  456. + Environment>>classes
  457. + Environment>>allSelectors
  458. + Environment>>removeProtocol:
  459. + Environment>>renameProtocol:to:in:
  460. + CompiledMethod>>protocol:
  461. + Smalltalk>>globalJsVariables
  462. + Smalltalk>>addGlobalJsVariable:
  463. + Smalltalk>>deleteGlobalJsVariable:
  464. - Object>>storeOn:
  465. - Object>>log:block:
  466. - Object>>printNl
  467. - Compiler-IR.st >>javascriptSelector
  468. - Compiler-IR.st >>nextPutVar:
  469. - Kernel-Collections.st >>asSuperSelector
  470. - Collection>>readStream
  471. - Collection>>stream
  472. - Collection>>streamClass
  473. - Collection>>writeStream
  474. - Symbol class (replaced with String)
  475. - IRInlinedNonLocalReturn class
  476. - IRInlinedSend>>nonLocalReturnInliner
  477. - IRNonLocalReturnInliner class
  478. - Package>>dependencies
  479. - Package>>dependencies:
  480. - Package>>properties
  481. - Package>>jsProperties
  482. - Package>>jsProperties:
  483. - Package>>propertiesAsJSON
  484. - Package>>propertyAt:
  485. - Package>>propertyAt:ifAbsent:
  486. - Package>>propertyAt:put:
  487. - Browser>>ajaxPutAt:data: