Wanted to post a link to a general post, because people here might have more info/interest:

https://drupal.org/node/2281427

Comments

markhalliwell’s picture

Status: Active » Closed (won't fix)

I doubt there will be a D8 version of this module. Core was significantly refactored to handle REST style requests much easier and faster. Most of what this module provides is likely antiquated and unnecessary in comparison.

markhalliwell’s picture

Title: D8: headless drupal / bootstrap to a lower level » [js] D8 Port
Priority: Minor » Normal
Status: Closed (won't fix) » Active

So I've been thinking about this.

Even if it doesn't actually implement the bootstrapping reduction (like is needed in 7.x), there's still a lot of "helpers" that were introduced in 7.x-2.x that allows easier creation/execute of JS callbacks.

I don't think it could hurt to try and port a watered down version?

markhalliwell’s picture

markhalliwell’s picture

Well this really puts a hamper on things :-/

Note: any work on D8 will need this related issue core patch.

markhalliwell’s picture

Version: 7.x-2.x-dev » 8.x-3.x-dev
Assigned: Unassigned » markhalliwell
Category: Feature request » Task
Status: Active » Needs work

Alright, I've gone ahead and done some initial port work: 2637e55.

As mentioned above, this won't enable unless that core patch is applied.

Things are probably about 80% of the way there. Everything is in the "right place", just need to hook up a few remaining bits.

RobKoberg’s picture

Would changing the name of this module solve the problem? I started doing that: renamed all files from js.* to bootstrap_levels.*, all references lower case "js" **other** than Drupal\js related stuff. The module now shows-up/is-available for install, but I get an error trying to install. So, a deeper, fuller rename is probably needed. First wondering if this is something worth doing?

It isn't really correct or descriptive anyway. Maybe call it jscallback, bootstrapper, bootstripper or bootstrap_levels or something.

RobKoberg’s picture

Oh, and there is no js.php to copy over (I would have renamed it to bootstrap_levels.php and have the path be /bootstrap_levels)

markhalliwell’s picture

I really, really, don't want to change the project name.

Nor would I name it anything like "bootstrap" since there's https://www.drupal.org/project/bootstrap and it would confuse people.

8.x also now has a kernal... not a "bootstrap" process like in prior versions.

RobKoberg’s picture

I don't care what the name is, but that is what is stopping this module from even being able to be available for install. It is almost too common/generic a name -- what about jshandler, jscb, or anything that avoids the conflict with "js". I do see your post from a couple of days ago at https://www.drupal.org/node/2839191 . Hopefully that leads to a solution, but does not seem to be coming anytime soon.

markhalliwell’s picture

I don't care what the name is

I know you don't, but I do.

I don't want to have to maintain two separate projects (7.x and 8.x) that do the same thing. Not to mention porting patches will be even more difficult.

andypost’s picture

Please keep the name, it will help a lot to mograte to 8

don't fork - colaborate

Joel MMCC’s picture

If you do eventually have to rename the project, may I suggest “jsch”? “JavaScript Callback Handler” is the full human-readable name, and “jsch” is a good abbreviation that wouldn’t conflict with file type extensions.

Joel MMCC’s picture

Also, I know of several instances where one module was superseded entirely by another with a different name. Since js 7.x-1.x is defunct and a security risk and people should move away from it ASAP anyway, why not let it keep that “js” name and make its page a defunct module page pointing to a new “jsch” (or “jscb” as @RobKoberg suggested) with the existing 7.x-2.x code (appropriately internally renamed, of course)? Then the 8.x branch could go there as well.

On a somewhat related question: why is the 8.x branch “8.x-3.x”? Does it implement things in a drastically different manner even compared to 7.x-2.x? Are you planning on a 7.x-3.x branch?

Joel MMCC’s picture

(Accidental duplicate comment.)

markhalliwell’s picture

Status: Needs work » Closed (won't fix)

I'm just going to close this. It's been years since I've opened it and a D8 port of this module is likely never to happen since D8 has rest and jsonapi now.