Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-23185] TiAPI: Remove Ti.include and advertise workaround

GitHub Issuen/a
TypeImprovement
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2016-11-01T03:17:53.000+0000
Affected Version/sn/a
Fix Version/sRelease 6.0.0
ComponentsTiAPI
Labelsbreaking-change, notable
ReporterChee Kiat Ng
AssigneeChristopher Williams
Created2016-04-11T03:24:49.000+0000
Updated2018-08-06T17:49:10.000+0000

Description

Comments

  1. Ingo Muschenetz 2016-04-11

    Be very sure that is an acceptable workaround for people. The only reason we didn't remove it sooner is that people seemingly had legitimate uses for which this workaround was a PITA. But I could be mis-remembering.
  2. Chee Kiat Ng 2016-04-11

    [~fokkezb] any input on this too?
  3. Fokke Zandbergen 2016-04-11

    I really can't think of a good use case that justifies keeping this around any longer. People should just convert the files to CommonJS. And we've been deprecating this long enough now.
  4. Fokke Zandbergen 2016-04-11

    It will break our Alloy run-time tests, but we'll have to refactor that as part of [~cbarber]'s refactoring of Alloy anyway.
  5. Hans Knöchel 2016-06-29

    [~cng] It's about time...Things to do: - Remove method from iOS and Android - Add a link to the docs like: {quote} The method "Ti.include" was deprecated in 3.3.0 and removed in 6.0.0. Please use "require" instead and check the migration-guide at http://... {quote} - Validate the affect on Alloy ([~fmiao], can you help with that?) - Include the removal and migration wiki inside our blog-post - before beta, so people can already start migrating it, if they do not already done over the last 2.5 (!) years.
  6. Chee Kiat Ng 2016-06-30

    [~msamah] can start working on the android part.
  7. Christopher Williams 2016-10-11

    Posted a PR for master/6.1.0: https://github.com/appcelerator/titanium_mobile/pull/8499
  8. Chee Kiat Ng 2016-10-12

    oh man. I love this PR and wished it came earlier. I can't have it for 6.1.0 because it's a remove. and I'm a little reluctant to merge it now because it seems there are some other dependencies like alloy and our window to 6.0.0 is really small now. Can we retain this PR for the next major release?
  9. Christopher Williams 2016-10-12

    Yeah that's fine. My understanding is that Ti.include **never** worked with alloy, so removing it should not impact alloy.
  10. Christopher Williams 2016-10-31

    6_0_X: https://github.com/appcelerator/titanium_mobile/pull/8569 master/6.1.0: https://github.com/appcelerator/titanium_mobile/pull/8499
  11. Eric Merriman 2018-08-06

    Cleaning up older fixed issues. If this issue should not have been closed as fixed, please reopen.

JSON Source