No, there is no direct replacement for PRAGMA RESTRICT REFERENCES… WNDS, however, the feature has not been removed, only deprecated.
Looking further though, your question assumes that these developers can’t be trusted to not add write commands, but can be trusted not to remove the PRAGMA or create another package without it. Although your question is legitimate on a technical level, your real problem seems to be a code review and/or management issue. Here are some recommendations that could help with that.
- Make the read only purpose of these packages clear by creating a naming convention that indicates they are or as durette suggested, move them to a different schema. (I like the different schema approach).
- As part of the ongoing training of these junior developers, make it clear which packages should be treated as read only.
- Have code written by these developers reviewed by a more trusted developer. (This is a good idea for all code for all developers). The query durette suggested could be one tool used in the technical review process.
- Have management provide for increased code scrutiny and remediation when junior developers violate your development standards.